I'm trying to make API calls, but I cannot seem to get certain calls to work when I need to use a membershipID. Here's where I'm at:
https://www.bungie.net/Platform/Destiny2/SearchDestinyPlayer/2/UkeNuttzy/
tells me "membershipType":2,"membershipId":"4611686018429479253". I'm fairly certain that these are the membershipType and destinyMembershipId required for Destiny2.GetProfile, but when I pass those values in it does not work.
https://www.bungie.net/Platform/Destiny2/2/Profile/4611686018429479253/
is returning this:
{"ErrorCode":18,"ThrottleSeconds":0,"ErrorStatus":"InvalidParameters","Message":"The input parameters were invalid, please enter valid input, and try again.","MessageData":{}}
I checked against the thread over at https://github.com/Bungie-net/api/issues/147 where the poster was not using the correct membershipType and was using a Bungie.net membership ID instead of a Destiny Membership ID. I believe I'm using the correct values -- 2 for PSN membershipType and 4611686018429479253 as my Destiny Membership ID instead of 6257471 as my Bungie.net membership ID.
Am I missing something?
Lol, I'm a noob. Just learned how to do API stuff today so I figured I'd try it out. Here's the solution for anyone else like me who is just starting out and might not realize what's going wrong:
GetProfile has some Querystring Parameters that must be included. The call works fine once you include them. For example, to get info about the characters in the profile you would do https://www.bungie.net/Platform/Destiny2/2/Profile/4611686018429479253/?components=200
Most helpful comment
Lol, I'm a noob. Just learned how to do API stuff today so I figured I'd try it out. Here's the solution for anyone else like me who is just starting out and might not realize what's going wrong:
GetProfile has some Querystring Parameters that must be included. The call works fine once you include them. For example, to get info about the characters in the profile you would do https://www.bungie.net/Platform/Destiny2/2/Profile/4611686018429479253/?components=200