billy-yoyo / RainbowSixSiege-Python-API

Asynchronous python api for rainbow six siege (r6sapi)
MIT License
130 stars 31 forks source link

How to gain access to ubi services? #39

Closed Gibbo3771 closed 4 years ago

Gibbo3771 commented 4 years ago

Hi, I can't find anywhere else to ask this so hopefully you can help.

I am currently writing an app that needs access to the ubi api. I noticed you are hitting this endpoint for the authentication:

https://connect.ubi.com/ubiservices/v2/profiles/sessions.

I also see a bunch of other end points prefixed with public, such as FETCH_STATISTIC = "https://public-ubiservices.ubi.com/v1/spaces/%s/sandboxes/%s/playerstats2/statistics?populations=%s&statistics=%s".

I am writing the app in in Node, so will need to make a small wrapper to handle all of this.

Any advice?

billy-yoyo commented 4 years ago

I wrote a short bit the documentation about how the authentication works

https://rainbowsixsiege-python-api.readthedocs.io/en/latest/how.html#generating-the-token

For the requests, that fetch_statistic variable is the generic URL format for statistic requests, I'm not a home right now but can explain that bit later. Hopefully this helps, feel free to send me more questions :)

billy-yoyo commented 4 years ago

no further comment from poster for over a month, so closing