Property | Type | Description | |
---|---|---|---|
_log | log4net.ILog | ||
appToken | string | ||
batchQueue | List |
||
credentials | |||
httpBase | string |
Method | Description | |
---|---|---|
ApiBase ( ) : System | ||
sendBatchRequest ( ) : void |
Processess any batch requests saved up in the queue
|
Method | Description | |
---|---|---|
GetRequest ( String url ) : |
Performs a generic GET request on the API server
|
|
MapToJson ( string>.Dictionary |
||
PostRequest ( String url, String parameters ) : |
Performs a generice POST request on the API server
|
|
UploadFile ( String url, String file ) : |
For uploading a file and returning JSON response.
|
|
genericWebRequest ( String url, String parameters, String method ) : |
||
getAuthorization ( ) : string | ||
responseIsClean ( |
Checks response object to see if any errors are present
|
protected GetRequest ( String url ) : |
||
url | String | The URL to request from |
return |
protected static MapToJson ( string>.Dictionary |
||
data | string>.Dictionary | |
return | Newtonsoft.Json.Linq.JObject |
protected PostRequest ( String url, String parameters ) : |
||
url | String | Where to send the post request |
parameters | String | The data to accompany the post request |
return |
protected UploadFile ( String url, String file ) : |
||
url | String | Where to upload the file |
file | String | The file location on disk |
return |
protected genericWebRequest ( String url, String parameters, String method ) : |
||
url | String | |
parameters | String | |
method | String | |
return |
protected responseIsClean ( |
||
response | The JSON response returned from the server | |
return | bool |
protected NetworkCredential,System.Net credentials | ||
return |