mirror of
https://github.com/retailcrm/api-client-dotnet.git
synced 2024-11-22 04:46:02 +03:00
commit
bdff2ffabe
@ -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"]
|
||||||
);
|
);
|
||||||
|
@ -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"]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user