Windows Live OAuth access XBox Live Info

为君一笑 提交于 2019-12-22 06:35:25

问题


So, I'm working on a website, and I want users to be able to log in with their xbox account to link their gamer tag to my site. I can use oauth like this:

But, I can't figure out how to get xbox live permissions. Other sites that do this have permissions like this:

How do I get this permissions which allow me to get info from an xbox account, like the gamertag? On the permissions page I don't see xbox anywhere.


回答1:


You can do this pretty easily by using Xbox Live API, Sign up for the Xbox Live Creators Program and then you can call the Xbox Live REST endpoints directly to ask the user to authorize your application.

The official API documentation provides excellent examples to help you progress at a quick pace. Also you can refer to Windows UWP for Xbox Live Services for some detailed info.


Sources: Xbox Live Creators Program Github Repo of Xbox Live API



来源:https://stackoverflow.com/questions/46758250/windows-live-oauth-access-xbox-live-info

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!