-
Notifications
You must be signed in to change notification settings - Fork 0
SHTCGClient.ClientService.Request
| Overloads | |
|---|---|
| Request(HttpMethod, string) | A helper method for sending a request to the API |
| Request(HttpMethod, string, object) | A helper method for sending a request to the API |
| Request<T>(HttpMethod, string) | A helper method for sending a request to the API |
| Request<T>(HttpMethod, string, object) | A helper method for sending a request to the API |
A helper method for sending a request to the API
public System.Threading.Tasks.Task<bool> Request(System.Net.Http.HttpMethod method, string url);method System.Net.Http.HttpMethod
Method to use
url System.String
The url, the API url /api/ is prepended already.
System.Threading.Tasks.Task<System.Boolean>
Success
A helper method for sending a request to the API
public System.Threading.Tasks.Task<bool> Request(System.Net.Http.HttpMethod method, string url, object data);method System.Net.Http.HttpMethod
Method to use
url System.String
The url, the API url /api/ is prepended already.
data System.Object
The data do send
System.Threading.Tasks.Task<System.Boolean>
Success
A helper method for sending a request to the API
public System.Threading.Tasks.Task<T?> Request<T>(System.Net.Http.HttpMethod method, string url);T
method System.Net.Http.HttpMethod
Method to use
url System.String
The url, the API url /api/ is prepended already.
System.Threading.Tasks.Task<T>
The response object
A helper method for sending a request to the API
public System.Threading.Tasks.Task<T?> Request<T>(System.Net.Http.HttpMethod method, string url, object data);T
method System.Net.Http.HttpMethod
Method to use
url System.String
The url, the API url /api/ is prepended already.
data System.Object
The data do send
System.Threading.Tasks.Task<T>
The response object