프로퍼티 | 타입 | 설명 | |
---|---|---|---|
_log | log4net.ILog | ||
appToken | string | ||
batchQueue | List |
||
credentials | |||
httpBase | string |
메소드 | 설명 | |
---|---|---|
ApiBase ( ) : System | ||
sendBatchRequest ( ) : void |
Processess any batch requests saved up in the queue
|
메소드 | 설명 | |
---|---|---|
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 |
리턴 |
protected static MapToJson ( string>.Dictionary |
||
data | string>.Dictionary | |
리턴 | 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 |
리턴 |
protected UploadFile ( String url, String file ) : |
||
url | String | Where to upload the file |
file | String | The file location on disk |
리턴 |
protected genericWebRequest ( String url, String parameters, String method ) : |
||
url | String | |
parameters | String | |
method | String | |
리턴 |
protected responseIsClean ( |
||
response | The JSON response returned from the server | |
리턴 | bool |
protected NetworkCredential,System.Net credentials | ||
리턴 |