Skip to content

Instantly share code, notes, and snippets.

Created March 1, 2014 07:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/9286532 to your computer and use it in GitHub Desktop.
Save anonymous/9286532 to your computer and use it in GitHub Desktop.
Тело = "[{""sku"": ""S0000060326"", ""name"": ""Товар1""} , {""sku"": ""S0000053458"", ""name"": ""Товар2""} ]";
ssl = Новый ЗащищенноеСоединениеOpenSSL();
Сервер = "app.ecwid.com";
Ресурс = "api/v1/XXXXXXX/products?secure_auth_key=XXXXXXX";
HTTP = Новый HTTPСоединение(Сервер,,,,,,ssl);
HTTPЗапрос = Новый HTTPЗапрос(Ресурс);
HTTPЗапрос.УстановитьТелоИзСтроки(Тело, "CESU-8");
HTTPОтвет = HTTP.Записать(HTTPЗапрос);
Ответ = HTTPОтвет.ПолучитьТелоКакСтроку("CESU-8");
Сообщить(Ответ);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment