update readme

This commit is contained in:
Alex Lushpai 2016-11-28 20:58:08 +03:00
parent 5c5a26ae6c
commit c7e7664f30
2 changed files with 5 additions and 5 deletions

View File

@ -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"]
);

View File

@ -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"]
);
}