Skip to content

Instantly share code, notes, and snippets.

@qetzal
Forked from anonymous/gist:9286532
Created March 1, 2014 14:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qetzal/9290838 to your computer and use it in GitHub Desktop.
Save qetzal/9290838 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