Property | Type | Description | |
---|---|---|---|
SecondsLimit | int |
Method | Description | |
---|---|---|
GetRequest ( |
Goes to make a Get requst to the specifed Uri, only if it hasn't exceeded the call limit
|
|
SetAPIToken ( string token ) : void |
Set the API Token Header in the HttpClient
|
|
SetRequestLimit ( int limit ) : void |
Recreates the Semaphore, and reassigns a Limit
|
|
SetSecondsLimit ( int limit ) : void |
Assigns a new seconds limit
|
Method | Description | |
---|---|---|
RequestRateHttpClient ( ) : System |
public static GetRequest ( |
||
endpoint | Endpoint to request | |
return | Task |
public static SetAPIToken ( string token ) : void | ||
token | string | Your Halo Developer API Token |
return | void |
public static SetRequestLimit ( int limit ) : void | ||
limit | int | Request limit |
return | void |
public static SetSecondsLimit ( int limit ) : void | ||
limit | int | Seconds limit |
return | void |