-
Notifications
You must be signed in to change notification settings - Fork 90
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
[Question] How to use SearchDestinyPlayer for PC? #258
Comments
Try altering that URL from 'Asal#1502' to 'Asal%231502'. URL fragments use
the reserved symbol '#', so everything after the # is not sent to the
server, likely causing problems for you.
…On Tue, Oct 24, 2017 at 10:48 AM, James Gayfer ***@***.***> wrote:
I've been trying to retrieve Battle.net accounts, but have been
unsuccessful. This is the endpoint I'm hitting.
https://www.bungie.net/Platform/Destiny2/SearchDestinyPlayer/4/Asal#1502
Where Asal#1502 is my Battle.net ID
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#258>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAFqDPrZtj4xh6GmMkoI7AcwCMWLkoMZks5sviL6gaJpZM4QE1LH>
.
|
Perfect, thank you! |
I have the same problem and encoding the '#' to '%23' doesn't work either. I always get an HTTP error 400 - Bad request. Is there anything else I need to watch out for? The X-API-Key header is set of course. So far, the only API endpoint I can use is "User.GetBungieNetUserById". Every other endpoint throws errors etc. |
Sounds like it may be a different issue than OP had, but if you can post a sample of your code then the hive mind may be able to assist! |
Sure, thank you. Well the only request I can make is: https://www.bungie.net/Platform/User/GetBungieNetUserById/MY_USER_ID/. With the X-API-Key set I get a result like the following:
I play on PC, so that should be the MemberShipType 4. But I for example call:
I also tried replacing the MemberShipId in the URL with my Blizzard Display Name ('#' encoded) and still nothing. If I perform a search via https://www.bungie.net/Platform/Destiny2/SearchDestinyPlayer/-1/MY_USERNAME/ I get one result which is an account for XBOX (not me) and that's it. I don't even get listed in the search results. Is there something wrong when the person is playing on PC? |
Ah, if you're trying to use your Bungie |
@abcpremium be sure to provide a component type (eg. query along with that request, not providing one will return an invalidParameters error like you posted |
Thank you, I finally found a way. I can't search for my battle.net account, however I can extract my membershipId on the bungie website through a link on my profile page. Weird though that you can't search for players with a battle.net id. |
I agree with @abcpremium we should be able to search no matter what kind of membership type the player has. Even using membership type -1 ("all") only returns my XBL account. I can't search for my pc account. |
I've been trying to retrieve Battle.net accounts, but have been unsuccessful. This is the endpoint I'm hitting.
Where
Asal#1502
is my Battle.net IDThe text was updated successfully, but these errors were encountered: