Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting friends does not work anymore #19

Open
jeremyjohn opened this issue Oct 25, 2018 · 2 comments
Open

Getting friends does not work anymore #19

jeremyjohn opened this issue Oct 25, 2018 · 2 comments

Comments

@jeremyjohn
Copy link

jeremyjohn commented Oct 25, 2018

I get a 403 error

Traceback (most recent call last):
  File "test.py", line 9, in <module>
    smittys_pals = fortnite.friends(username='Smitty Werbenjagermanjensen')
  File "/home/fn/.local/lib/python3.5/site-packages/pfaw/core.py", line 41,in friends
    response = self.session.get(constants.friends.format(player_id))
  File "/home/fn/.local/lib/python3.5/site-packages/pfaw/core.py", line 120,in get
    response.raise_for_status()
  File "/usr/lib/python3/dist-packages/requests/models.py", line 840, in raise_f or_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://friends-public-service-prod06.ol.epicgames.com/friends/api/public/friends/9c9212603304472d831c03d0978d2bc1
@nicolaskenner
Copy link
Owner

I tested this method and it works correctly. The friends method is very limited as it only works for getting the friends of the authenticated account. You can't get the friend list of some random player.

@jeremyjohn
Copy link
Author

What information can we get from that?
Can we see their game status like kills and status and can we send them a DM?
or does it just show the friends and their IDs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants