Skip to content

SHTCGClient.ClientService.Request

github-actions[bot] edited this page Mar 9, 2026 · 2 revisions

ClientService.Request Method

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

ClientService.Request(HttpMethod, string) Method

A helper method for sending a request to the API

public System.Threading.Tasks.Task<bool> Request(System.Net.Http.HttpMethod method, string url);

Parameters

method System.Net.Http.HttpMethod

Method to use

url System.String

The url, the API url /api/ is prepended already.

Returns

System.Threading.Tasks.Task<System.Boolean>
Success

ClientService.Request(HttpMethod, string, object) Method

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);

Parameters

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

Returns

System.Threading.Tasks.Task<System.Boolean>
Success

ClientService.Request<T>(HttpMethod, string) Method

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);

Type parameters

T

Parameters

method System.Net.Http.HttpMethod

Method to use

url System.String

The url, the API url /api/ is prepended already.

Returns

System.Threading.Tasks.Task<T>
The response object

ClientService.Request<T>(HttpMethod, string, object) Method

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);

Type parameters

T

Parameters

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

Returns

System.Threading.Tasks.Task<T>
The response object

Clone this wiki locally