mirror of
https://github.com/retailcrm/api-client-dotnet.git
synced 2024-11-21 20:36:02 +03:00
Typos fix.
This commit is contained in:
parent
b5cbd87afe
commit
3e2a958639
@ -23,8 +23,8 @@ using Retailcrm.Versions.V5;
|
|||||||
Client api = new Client("https://demo.retailcrm.ru", "T9DMPvuNt7FQJMszHUdG8Fkt6xHsqngH");
|
Client api = new Client("https://demo.retailcrm.ru", "T9DMPvuNt7FQJMszHUdG8Fkt6xHsqngH");
|
||||||
Response response = api.OrdersGet("12345", "externalId");
|
Response response = api.OrdersGet("12345", "externalId");
|
||||||
|
|
||||||
if (response.isSuccessful()) {
|
if (response.IsSuccessful()) {
|
||||||
Debug.WriteLine(Response.GetRawResponse());
|
Debug.WriteLine(response.GetRawResponse());
|
||||||
} else {
|
} else {
|
||||||
Debug.WriteLine($"Ошибка: [Статус HTTP-ответа {response.GetStatusCode().ToString()}]");
|
Debug.WriteLine($"Ошибка: [Статус HTTP-ответа {response.GetStatusCode().ToString()}]");
|
||||||
}
|
}
|
||||||
@ -63,8 +63,8 @@ Response response = api.OrdersCreate(new Dictionary<string, object>
|
|||||||
}}
|
}}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (response.isSuccessful()) {
|
if (response.IsSuccessful()) {
|
||||||
Debug.WriteLine(Response.GetResponse()["externalId"].ToString());
|
Debug.WriteLine(response.GetResponse()["externalId"].ToString());
|
||||||
} else {
|
} else {
|
||||||
Debug.WriteLine($"Ошибка: [Статус HTTP-ответа {response.GetStatusCode().ToString()}]");
|
Debug.WriteLine($"Ошибка: [Статус HTTP-ответа {response.GetStatusCode().ToString()}]");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user