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

Account/User Avatar #141

Open
A1Josh0 opened this issue Dec 1, 2023 · 8 comments
Open

Account/User Avatar #141

A1Josh0 opened this issue Dec 1, 2023 · 8 comments

Comments

@A1Josh0
Copy link

A1Josh0 commented Dec 1, 2023

Hello, i am creating a discord bot based on fortnite - coded in discord.py i have the authentication setup and what not, although im not too sure how to get the avatar of the user meaning the current skin/outfit they are wearing. Any help is appreciated

@2ir
Copy link

2ir commented Dec 2, 2023

@A1Josh0
Copy link
Author

A1Josh0 commented Dec 3, 2023

Hi, will this get the current skins so the skin the player is wearing currently because i used this and it displayed a skin i wasnt wearing

@Fynnstw
Copy link

Fynnstw commented Dec 7, 2023

I want to program a discord bot that has the same functionality and the bot should find out the epic id and the other platform names. Do you have a code for me?

@abdouchamkha
Copy link

abdouchamkha commented Feb 11, 2024

Hi, will this get the current skins so the skin the player is wearing currently because i used this and it displayed a skin i wasnt wearing

How you can get the account id for the user you wnat to check his avatar or skin are you using any type of auth ?, if yes what is it , and mybe that need the user to be authenticated

@HyperionCSharp
Copy link

The user most of the time will always have to be authenticated through EOS to have access to those abilities. You could use permission sets and try to pass the correct perms to access READ abilities without connecting to EOS directly.

This would use the OAuth2.0 API. I have a way to use the deprecated grant type password. The grant type has permissions for READ/WRITE/CREATE. Just simply passing the email:pass of the users account in return an access token is passed for all use on EOS including Athena profile endpoints which are needed to check skins on the target account.

Hope this helps this section a little!!

@Im2rnado
Copy link
Contributor

What is the “way” to use the grant type password?

@HyperionCSharp
Copy link

I am making a full checker on my page (not advertisement).

Since Epic banned its use on me public clients that means that private clients still have the same permissions for WRITE abilities.

Accessing private clients means having a dev API key which I was lucky to have an app that is trusted on the epic dev portal and can utilize these permissions with lower request rates and it's get timed out every 250 checks.

I know that if you play with CTFortniteGameClient you can make it work but it times out like a b**** and is practically not usable.

The other way would be going directly through the heart of the login and getting past hcaptcha. But risks are high for detection and patching.

@Jawschamp
Copy link

Jawschamp commented Oct 25, 2024

Hi, will this get the current skins so the skin the player is wearing currently because i used this and it displayed a skin i wasnt wearing

How you can get the account id for the user you wnat to check his avatar or skin are you using any type of auth ?, if yes what is it , and mybe that need the user to be authenticated

You could use this: get_account_by_display_name.md and from there you can make a GET request to https://avatar-service-prod.identity.live.on.epicgames.com/v1/avatar/fortnite/ids?accountIds=, use the endpoint (get_account_by_display_name.md) to get the account ID, you need to already be authenticated, with a valid access token.

NOTE:

You may need to be friends with the account to get information about their avatar (NOT SURE 100% THOUGH)
Sample output (I was just testing this when I saw this "issue")

[
    {
        "accountId": "account_id",
        "namespace": "fortnite", 
        "avatarId": "ATHENACHARACTER:CID_A_007_ATHENA_COMMANDO_F_STREETFASHIONECLIPSE"
    }
]

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

7 participants