Merge pull request #13 from Konard/patch-1

Typos fix.
This commit is contained in:
Alex Lushpai 2019-10-21 13:07:35 +03:00 committed by GitHub
commit 572a559422
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,8 +23,8 @@ using Retailcrm.Versions.V5;
Client api = new Client("https://demo.retailcrm.ru", "T9DMPvuNt7FQJMszHUdG8Fkt6xHsqngH");
Response response = api.OrdersGet("12345", "externalId");
if (response.isSuccessful()) {
Debug.WriteLine(Response.GetRawResponse());
if (response.IsSuccessful()) {
Debug.WriteLine(response.GetRawResponse());
} else {
Debug.WriteLine($"Ошибка: [Статус HTTP-ответа {response.GetStatusCode().ToString()}]");
}
@ -63,8 +63,8 @@ Response response = api.OrdersCreate(new Dictionary<string, object>
}}
});
if (response.isSuccessful()) {
Debug.WriteLine(Response.GetResponse()["externalId"].ToString());
if (response.IsSuccessful()) {
Debug.WriteLine(response.GetResponse()["externalId"].ToString());
} else {
Debug.WriteLine($"Ошибка: [Статус HTTP-ответа {response.GetStatusCode().ToString()}]");
}