Class ClientBase
Class containing the fundamental pieces for an API client that talks to the Halo APIs.
Namespace: Den.Dev.Grunt.Core.Foundation
Assembly: Den.Dev.Grunt.dll
Syntax
[[System.Runtime.CompilerServices.Nullable(0)]]
[[System.Runtime.CompilerServices.NullableContext(1)]]
public abstract class ClientBase
Constructors
Name | Description |
---|---|
ClientBase() |
Properties
Name | Description |
---|---|
ClearanceToken | Gets or sets the ID of the flight/clearance currently active for the player. |
Client | Gets or sets the instance of the HTTP client that handles processing of API requests and responses. |
IncludeRawResponses | Gets or sets a value indicating whether to include the raw JSON responses with each function call. |
SpartanToken | Gets or sets the Spartan token used to authenticate against the Halo Infinite API. |
Xuid | Gets or sets the player identifier in the format "xuid(XUID_VALUE)". |
Methods
Name | Description |
---|---|
ExecuteAPIRequest<T>(String, HttpMethod, Boolean, Boolean, String, Byte[], APIContentType, Boolean, List<KeyValuePair<String,String>>, Boolean) | Executes an API request in a standard way against a given API endpoint. This is a helper method that's put in place to simplify how the API calls are made because most requests against the Halo Infinite API are pretty repetitive. |