You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Albie edited this page Mar 21, 2020
·
12 revisions
Dragon6 API takes the complication of Ubisoft's stats system and strips it down into an easy to follow sequence of events:
Create your own Dragon6Client with an override for getting the token - this should be preserved as a single instance for the lifetime of the process (using it as a Singleton service is the best way to do this)
Use an instance of your Dragon6Client to lookup a user (by name, platform id or user id) through the extension methods provided
Use User's AccountInfo to lookup stats (via the client instance and the extension methods)
Token expires and this starts again
If the extension methods don't quite achieve what you want to do, you can create your own custom requests and pass them through the Dragon6Client