Method | Description | |
---|---|---|
AddDefaultHeader ( string key, string value ) : void |
Add default header
|
|
ApiClient ( String basePath = "https://api-sandbox.netshoes.com.br/api/v1" ) : System |
Initializes a new instance of the ApiClient class.
|
|
Base64Encode ( string text ) : string |
Encode string in base64 format
|
|
CallApi ( String Path, RestSharp Method, String>.Dictionary |
||
CallApiAsync ( String Path, RestSharp Method, String>.Dictionary |
||
Deserialize ( string content, |
Deserialize the JSON string into a proper object
|
|
EscapeString ( string str ) : string |
escape string (url-encoded)
|
|
GetApiKeyWithPrefix ( string apiKey ) : string |
Get the API key with prefix
|
|
GetDefaultHeader ( ) : String>.Dictionary |
Get default header
|
|
ParameterToString ( object obj ) : string |
if parameter is DateTime, output in ISO8601 format if parameter is a list of string, join the list with "," otherwise just return the string
|
|
Serialize ( object obj ) : string |
Serialize an object into JSON string
|
|
UpdateParamsForAuth ( String>.Dictionary |
Update parameters based on authentication
|
public AddDefaultHeader ( string key, string value ) : void | ||
key | string | |
value | string | |
return | void |
public ApiClient ( String basePath = "https://api-sandbox.netshoes.com.br/api/v1" ) : System | ||
basePath | String | The base path. |
return | System |
public static Base64Encode ( string text ) : string | ||
text | string | String to be encoded |
return | string |
public CallApi ( String Path, RestSharp Method, String>.Dictionary |
||
Path | String | |
Method | RestSharp | |
QueryParams | String>.Dictionary | |
PostBody | String | |
HeaderParams | String>.Dictionary | |
FormParams | String>.Dictionary | |
FileParams | String>.Dictionary | |
AuthSettings | String | |
return | Object |
public CallApiAsync ( String Path, RestSharp Method, String>.Dictionary |
||
Path | String | |
Method | RestSharp | |
QueryParams | String>.Dictionary | |
PostBody | String | |
HeaderParams | String>.Dictionary | |
FormParams | String>.Dictionary | |
FileParams | String>.Dictionary | |
AuthSettings | String | |
return | Task |
public Deserialize ( string content, |
||
content | string | |
type | ||
return | object |
public GetApiKeyWithPrefix ( string apiKey ) : string | ||
apiKey | string | |
return | string |
public GetDefaultHeader ( ) : String>.Dictionary |
||
return | String>.Dictionary |
public ParameterToString ( object obj ) : string | ||
obj | object | |
return | string |
public UpdateParamsForAuth ( String>.Dictionary |
||
QueryParams | String>.Dictionary | Query parameters |
HeaderParams | String>.Dictionary | Header parameters |
AuthSettings | string | Authentication settings |
return | void |