diff --git a/README.md b/README.md index 61a8b7e..9ef9ec2 100644 --- a/README.md +++ b/README.md @@ -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"] ); diff --git a/README.ru.md b/README.ru.md index 680e7ad..a4e58f1 100644 --- a/README.ru.md +++ b/README.ru.md @@ -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"] ); }