Skip to content
This repository was archived by the owner on Apr 8, 2024. It is now read-only.
Albie edited this page Jul 30, 2020 · 12 revisions

I want to get started. How do I go about it?

See the getting started page here

What does Dragon6 do? Give me a minimal description of what to do

Dragon6 API takes the complication of Ubisoft's stats system and strips it down into an easy to follow sequence of events

  1. Create your own inheritance of Dragon6Client with an override for getting the token (see StatsClient.cs) - this should be preserved as a single instance for the lifetime of the process (using it as a Singleton service in dependency injection or as a static variable is the best way to do this)
  2. Use said instance of your Dragon6Client to lookup a user (by name, platform id or user id) through the extension methods GetUser() or GetUsers()
  3. Use User's AccountInfo to lookup stats (via the client instance and the extension methods GetStats, GetOperatorStats, GetWeaponStats, GetSeasonStats)

The Get*() methods require a using DragonFruit.Six.API.Data.Extensions statement added to each .cs file you use them in

When the token expires the Dragon6Client will auto-renew it when the next request after the token expired is made.

If the extension methods don't quite achieve what you want to do, you can create your own custom requests (see possible inheritances) and pass them through the Dragon6Client.Perform<Result>(reuqest)

Clone this wiki locally