Skip to content

MBamb/Ubisoft-Rainbow-Six-Api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ubisoft Rainbow Six Siege API

A Java API to handle authorization and requests regarding the Rainbow Six Siege API. Providing a clean and easy way to use the Rainbow Six Siege API.

MIT License

Authors

Features

  • Season stats (Ranked 2.0)
  • Overall stats
  • Operator stats
  • Map stats
  • Bombsite stats

Features to be implemented

  • Season stats (Ranked 1.0)
  • Weapon stats
  • Support for non PC platforms

Quickstart

To set up a UbisoftRainbowSixApi instance you have to create a UbisoftRainbowSixApiConfig

 final var config = new UbisoftRainbowSixApiConfig()
    	.setUbiAppId("---") //<--- Your UbiAppId for requests after Ranked 2.0
    	.setUbiAppIdOld("---") //<--- Your UbiAppId for requests before Ranked 2.0
    	.setAuthorizationToken("---") //<--- Your authorization token
    	.setRetriesOnError(0);

Create your UbisoftRainbowSixApi instance and set your UbisoftRainbowSixApiConfig

final var api = new UbisoftRainbowSixApi()
	.setConfig(ubiApiConfig);

You can now use the api to request a UbisoftTicket which you need for requesting data

final var oldTicket = api.getOldUbisoftTicket(); //<---Ticket for requests before Ranked 2.0
final var newTicket = api.getUbisoftTicket(); //<--- Ticket for requests after Ranked 2.0