mirror of
https://github.com/retailcrm/api-client-dotnet.git
synced 2024-11-21 20:36:02 +03:00
884 B
884 B
RetailCRM REST API client for .NET
Java Client for RetailCRM REST API. version: 3.0.0
Requirements
Usage
Create API client class
using RetailCrm;
...
RestApi api = new RestApi(
"https://demo.intarocrm.ru",
"T9DMPvuNt7FQJMszHUdG8Fkt6xHsqngH"
);
Constructor arguments are:
- Your IntaroCRM acount URL-address
- Your site API Token
Example: get order types list
string url, key;
Dictionary<string, object> orderTypes = new Dictionary<string, object>();
RestApi api = new RestApi(url, key);
try {
orderTypes = api.orderTypesList();
} catch (ApiException e) {
Console.WriteLine(ex.Message);
} catch (CurlException e) {
Console.WriteLine(ex.Message);
}