выполняю запрос через программу git-bash.exe curl -k -H "X-Authorization:мой_токен" https://api.evotor.ru/api/v1/inventories/stores/код_магазина/products в ответ получаю всё без разделения на строки
[{"uuid":"caa34b03-1498-430c-9b13-1765ebc2163d","group":true,"hasVariants":null,"type":null,"name":"Канцтовары","code":"","barCodes":null,"price":null,"costPrice":null,"quantity":0,"measureName":null,"tax":null,"allowToSell":null,"description":null,"articleNumber":null,"parentUuid":null,"alcoCodes":null,"alcoholByVolume":null,"alcoholProductKindCode":null,"tareVolume":null},{"uuid":"e105dd79-ef55-44ba-af78-497d3e8592e5","group":true,"hasVariants":null,"type":null,"name":"Услуги","code":"","barCodes":null,"price":null,"costPrice":null,"quantity":0,"measureName":null,"tax":null,"allowToSell":null,"description":null,"articleNumber":null,"parentUuid":null,"alcoCodes":null,"alcoholByVolume":null,"alcoholProductKindCode":null,"tareVolume":null}]
а необходимо получить в формате:
[{
"uuid": "caa34b03-1498-430c-9b13-1765ebc2163d",
"group": true,
"hasVariants": null,
"type": null,
"name": "Канцтовары",
"code": "",
"barCodes": null,
"price": null,
"costPrice": null,
"quantity": 0,
"measureName": null,
"tax": null,
"allowToSell": null,
"description": null,
"articleNumber": null,
"parentUuid": null,
"alcoCodes": null,
"alcoholByVolume": null,
"alcoholProductKindCode": null,
"tareVolume": null
}, {
"uuid": "e105dd79-ef55-44ba-af78-497d3e8592e5",
"group": true,
"hasVariants": null,
"type": null,
"name": "Услуги",
"code": "",
"barCodes": null,
"price": null,
"costPrice": null,
"quantity": 0,
"measureName": null,
"tax": null,
"allowToSell": null,
"description": null,
"articleNumber": null,
"parentUuid": null,
"alcoCodes": null,
"alcoholByVolume": null,
"alcoholProductKindCode": null,
"tareVolume": null
}, {
"uuid": "851d4955-4026-4a46-a770-e2946d22baa6",
"group": false,
"hasVariants": null,
"type": "NORMAL",
"name": "Тетрадь 48л кл. БиДжи выбор.лак ассорти",
"code": "",
"barCodes": ["2469032621510;\n4690326171001;\n4690326171155;\n4690326173654;\n4690326184469;\n4690326187484;\n4690326197360;\n4690326204037;\n4690326214876;\n4690326215101"],
"price": 4690326208578,
"costPrice": 27.5,
"quantity": 5,
"measureName": "шт",
"tax": "NO_VAT",
"allowToSell": false,
"description": "тетради",
"articleNumber": "",
"parentUuid": "caa34b03-1498-430c-9b13-1765ebc2163d",
"alcoCodes": [],
"alcoholByVolume": null,
"alcoholProductKindCode": null,
"tareVolume": null
}, {
"uuid": "002d84bc-f7be-4287-ac36-eadc768c60b5",
"group": false,
"hasVariants": null,
"type": "NORMAL",
"name": "Русский Стиль Вышивка крестиком с пяльцами.Розочка",
"code": "",
"barCodes": ["4602933048058"],
"price": 280.0,
"costPrice": 178.87,
"quantity": 1.0,
"measureName": "шт",
"tax": "NO_VAT",
"allowToSell": true,
"description": "",
"articleNumber": "",
"parentUuid": "caa34b03-1498-430c-9b13-1765ebc2163d",
"alcoCodes": [],
"alcoholByVolume": null,
"alcoholProductKindCode": null,
"tareVolume": null
}
как выполнить данный запрос через hph или c# (в особенности как правильно указать мой токен), чтобы получить в ответ информацию разделённую на строки? писал в поддержку на мой вопрос ответили "В Вашем примере ответ представлен в формате текста, разделённого запятой. В формате json будет выглядеть так(из примера взял первую пятерку товаров)", то есть api поддерживает json.
без разделения на строки? Это JSON, какое вам в нем надо разделение? – tym32167 May 21 '20 at 01:33