mirror of
https://github.com/retailcrm/api-client-dotnet.git
synced 2024-11-22 04:46:02 +03:00
update readme
This commit is contained in:
parent
5c5a26ae6c
commit
c7e7664f30
@ -54,7 +54,7 @@ if (response.isSuccessful()) {
|
||||
} else {
|
||||
System.Console.WriteLine(
|
||||
"Error: [HTTP-code " +
|
||||
response["statusCosde"] + "] " +
|
||||
response["statusCode"] + "] " +
|
||||
response["errorMsg"]
|
||||
);
|
||||
}
|
||||
@ -127,7 +127,7 @@ catch (WebException e)
|
||||
System.Console.WriteLine(e.ToString());
|
||||
}
|
||||
|
||||
if (response.isSuccessful() && 201 == response["statusCosde"]) {
|
||||
if (response.isSuccessful() && 201 == response["statusCode"]) {
|
||||
System.Console.WriteLine(
|
||||
"Order created. Order ID is " + response["id"]
|
||||
);
|
||||
|
@ -54,7 +54,7 @@ if (response.isSuccessful()) {
|
||||
} else {
|
||||
System.Console.WriteLine(
|
||||
"Ошибка получения информации о заказа: [Статус HTTP-ответа " +
|
||||
response["statusCosde"] + "] " +
|
||||
response["statusCode"] + "] " +
|
||||
response["errorMsg"]
|
||||
);
|
||||
}
|
||||
@ -127,14 +127,14 @@ catch (WebException e)
|
||||
System.Console.WriteLine(e.ToString());
|
||||
}
|
||||
|
||||
if (response.isSuccessful() && 201 == response["statusCosde"]) {
|
||||
if (response.isSuccessful() && 201 == response["statusCode"]) {
|
||||
System.Console.WriteLine(
|
||||
"Заказ успешно создан. ID заказа в retailCRM = " + response["id"]
|
||||
);
|
||||
} else {
|
||||
System.Console.WriteLine(
|
||||
"Ошибка создания заказа: [Статус HTTP-ответа " +
|
||||
response["statusCosde"] + "] " +
|
||||
response["statusCode"] + "] " +
|
||||
response["errorMsg"]
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user