Class ApiRequest
A helper class which is used to create a new API request
Inheritance
ApiRequest
Namespace: ColizeumSDK.API
Assembly: cs.temp.dll.dll
Syntax
public class ApiRequest
Fields
UseAuthorization
Defines if the API request should automatically attach the "Authorization" header
Declaration
public bool UseAuthorization
Field Value
| Type | Description |
|---|---|
| Boolean |
Properties
Body
Data to send to the API using generic object which will be serialized
Declaration
public object Body { get; set; }
Property Value
| Type | Description |
|---|---|
| Object |
FormData
Data to send to the API using a WWWForm
Declaration
public WWWForm FormData { get; set; }
Property Value
| Type | Description |
|---|---|
| WWWForm |
Headers
The HTTP headers added manually to send with the request
Declaration
public Dictionary<string, string> Headers { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<String, String> |
Method
Defines the HTTP method, either GET, HEAD, POST, PUT, DELETE
Declaration
public string Method { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
Params
The HTTP query string params to send with the request
Declaration
public Dictionary<string, string> Params { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<String, String> |
SimpleForm
Data to send to the API using a Dictionary
Declaration
public Dictionary<string, string> SimpleForm { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<String, String> |
Uri
API Uri to which the request will be sent
Declaration
public string Uri { get; set; }
Property Value
| Type | Description |
|---|---|
| String |