Constructor HaloInfiniteClient
HaloInfiniteClient()
Initializes a new instance of the HaloInfiniteClient class, used to access the Halo Infinite API.
Declaration
public HaloInfiniteClient ();
HaloInfiniteClient(String, String, String, Boolean, String)
Initializes a new instance of the HaloInfiniteClient class, used to access the Halo Infinite API.
Declaration
public HaloInfiniteClient (string spartanToken, string xuid = "", string clearanceToken = "", bool includeRawResponses = false, string userAgent = "");
Parameters
Type | Name | Description |
---|---|---|
System.String | spartanToken | The Spartan token used to authenticate against the Halo Infinite API. |
System.String | xuid | The player identifier in the format "xuid(XUID_VALUE)". |
System.String | clearanceToken | ID of the flight/clearance currently active for the player. Optional when first instantiating the client. |
System.Boolean | includeRawResponses | Determines whether the raw content responses are returned with each request. |
System.String | userAgent | User agent to be used with requests. |