Merge pull request #5 from gwinn/master

update readme
This commit is contained in:
Alex Lushpai 2016-11-28 20:59:11 +03:00 committed by GitHub
commit bdff2ffabe
2 changed files with 5 additions and 5 deletions

View File

@ -54,7 +54,7 @@ if (response.isSuccessful()) {
} else { } else {
System.Console.WriteLine( System.Console.WriteLine(
"Error: [HTTP-code " + "Error: [HTTP-code " +
response["statusCosde"] + "] " + response["statusCode"] + "] " +
response["errorMsg"] response["errorMsg"]
); );
} }
@ -127,7 +127,7 @@ catch (WebException e)
System.Console.WriteLine(e.ToString()); System.Console.WriteLine(e.ToString());
} }
if (response.isSuccessful() && 201 == response["statusCosde"]) { if (response.isSuccessful() && 201 == response["statusCode"]) {
System.Console.WriteLine( System.Console.WriteLine(
"Order created. Order ID is " + response["id"] "Order created. Order ID is " + response["id"]
); );

View File

@ -54,7 +54,7 @@ if (response.isSuccessful()) {
} else { } else {
System.Console.WriteLine( System.Console.WriteLine(
"Ошибка получения информации о заказа: [Статус HTTP-ответа " + "Ошибка получения информации о заказа: [Статус HTTP-ответа " +
response["statusCosde"] + "] " + response["statusCode"] + "] " +
response["errorMsg"] response["errorMsg"]
); );
} }
@ -127,14 +127,14 @@ catch (WebException e)
System.Console.WriteLine(e.ToString()); System.Console.WriteLine(e.ToString());
} }
if (response.isSuccessful() && 201 == response["statusCosde"]) { if (response.isSuccessful() && 201 == response["statusCode"]) {
System.Console.WriteLine( System.Console.WriteLine(
"Заказ успешно создан. ID заказа в retailCRM = " + response["id"] "Заказ успешно создан. ID заказа в retailCRM = " + response["id"]
); );
} else { } else {
System.Console.WriteLine( System.Console.WriteLine(
"Ошибка создания заказа: [Статус HTTP-ответа " + "Ошибка создания заказа: [Статус HTTP-ответа " +
response["statusCosde"] + "] " + response["statusCode"] + "] " +
response["errorMsg"] response["errorMsg"]
); );
} }