Reputation: 1
I am supporting an app that gets player game statistics. We have for example playstation or xbox nickname and need to find bungie membershipId.
I look code - we missuse "Destiny2/SearchDestinyPlayer" API, as it requires not playstation nickname (or xbox nickname) but full bungie name including #xxxx (# id) https://bungie-net.github.io/#Destiny2.SearchDestinyPlayer
Looks like before in Destiny2 appeared cross-save function it was the same nickname and #id was not mandatory.
Could someone suggest another API that accepts platform (xbox or playstation) nickname? Also maybe suggest forum dedicated to bungie API?
PS: I searched alternative sites, for example on "https://destinytracker.com/" I am able to select platform "Playstation" and enter nickname "T-rex_on_point" - it finds bungie name Brontosaurus881#6169 and also membershipId inside URL. How it does it? What API it uses? I finally need "membershipId" id, but if I will find full bungie display name - then I am able to find "membershipId" with Destiny2/SearchDestinyPlayer" API mentioned above
Upvotes: -1
Views: 931
Reputation: 1
There is no "Other API". All applications uses one API which's Bungie's.
I'm assuming you're making the request using #
in the URL which's not UTF-8 URL encoded.
You'll need to encode the URL specifically the #
which will be encoded to %23
. So instead of making the request with this name Brontosaurus881#6169
it should be like this Brontosaurus881%236169
.
Also what language are you using? if Python then use urllib.parse.quote("Brontosaurus881#6169")
.
If not then i suggest you looking up how to encode a URL in x
language.
Also if you're using Python, There's a wrapper around the API that already does that for you if you're interested and using Python.
Upvotes: 0