xboxapi / Python-Wrapper

Python wrapper for https://xapi.us
MIT License
39 stars 16 forks source link

Gamertag availablility #32

Closed pyronlaboratory closed 5 years ago

pyronlaboratory commented 5 years ago

Hi Alan/XboxTeam,

Thanks for your reply on my previous post.

I'm creating a new issue, since last one was closed.

Could you possibly share a small snippet demonstrating how to check if a gamertag is available?

I would really appreciate your help.

Thanks, Ronnie

On Fri, May 10, 2019 at 7:48 PM Alan Wynn notifications@github.com wrote:

Closed #31 https://github.com/xboxapi/Python-Wrapper/issues/31.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/xboxapi/Python-Wrapper/issues/31#event-2333259106, or mute the thread https://github.com/notifications/unsubscribe-auth/ADBTGMSUNCJVLSVVEW4V53DPUV72RANCNFSM4HMCB7EA .

Originally posted by @ronnielivingsince1994 in https://github.com/xboxapi/Python-Wrapper/issues/31#issuecomment-491333947

djekl commented 5 years ago

If you want to check if a gamertag is valid, you just make a request against it. If its a valid taken gamertag, you will get the XUID. However if its available then you will get a 404. I didn't write the Python wrapper, so the maintainer will have to explain what (if any) exception is thrown against a bad gamertag when requesting the XUID.

pyronlaboratory commented 5 years ago

I know how to proceed now. Thanks Alan.

This issue can be closed now.

Pretty sweet website you got there btw.