LeleDerGrasshalmi / FortniteEndpointsDocumentation

Fortnite & Epic Games Unofficial API Documentation
270 stars 72 forks source link

Global Service - Profile: Get Profiles #293

Closed Ch1lly5 closed 3 months ago

Ch1lly5 commented 3 months ago

Issue Checklist

What is the Request Method?

PUT

What is the Request URL?

https://global-profile-service.game-social.epicgames.com/profiles

What are your Request Headers (if applicable)?

headers = { "Authorization": "Bearer token (deivce_auth)", "Content-Type": "application/json" }

What are your Request Payload/Body (if applicable)?

payload = { "namespace": "Fortnite", "accountIds": [ "accid"
] }

What is the Response Status Code?

Error: 401 - {"message":"authentication failed","type":"Unauthorized","stackTrace":[],"causes":[],"code":0}

What are the Response Headers (if applicable)?

No response

What is the Response Content? (if applicable)

No response

Additional Context (if applicable)

Unsure why its failing, token works for everything else ive tried ecept this endpoint, help appreciated. (Maybe im using a broken client or something? fortniteNewSwitchGameClient)

entraptaa commented 3 months ago

Use an EG1 Token instead of the normal switch account token. Account Service - Auth: Token

LeleDerGrasshalmi commented 3 months ago

what entra said