Загрузка данных


curl -X POST  -H "content-type:application/json" -H "authorization:Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NDIxNywiZW1haWwiOiJidDVzOXoyN241QHByaXZhdGVyZWxheS5hcHBsZWlkLmNvbSIsImlhdCI6MTc4MjM3MjM1MywiZXhwIjoxNzgyNDU4NzUzLCJhdWQiOiJteS13aW5lIiwic3ViIjoiNDIxNyJ9.9ywhk4hrVn8mIAfamdwfKf6mI4kOUvieOjijqPxwpfg" https://worldwinelist.com/api/graphql -d '{"variables":{"localeId":1,"query":"dry red","limit":20,"filter":{"facetsInputs":[{"listInput":{"key":"activeTradeOfferLots.merchant.country","byName":["United Kingdom"]}},{"listInput":{"key":"activeTradeOfferLots.merchant.name","byName":["Waitrose Cellar (8)","Waitrose (1417)"]}},{"complexInput":{"key":"activeTradeOfferLots.pricePerBottle","childrenInputs":[{"listInput":{"key":"activeTradeOfferLots.pricePerBottle.currency","byName":["GBP"]}},{"rangeInput":{"key":"activeTradeOfferLots.pricePerBottle.value","minValue":0.01,"maxValue":100000}}]}}]},"currencyCode":"GBP","countryId":37},"query":"\n      query searchProducts(\n        $localeId: Int!\n        $query: String!\n        $limit: Int! = 20\n        $filter: ProductsPaginationFilter\n        $currencyCode: String\n        $countryId: Int\n      ) {\n        productsPagination(\n          localeId: $localeId\n          limit: $limit\n          query: $query\n          filter: $filter\n          debug: true\n        ) {\n          items {\n            id\n            slug\n            bottleSize {\n              volumeML\n            }\n            bottleImage {\n              imageUrl\n            }\n            wine {\n              tradeName {\n                tradeName\n              }\n              brand {\n                name\n              }\n              nationalGIType {\n                localizedShortName(localeId: $localeId)\n              }\n              geoIndications {\n                localizedName(localeId: $localeId)\n              }\n              vintageText\n              wineType {\n                localizedName(localeId: $localeId)\n              }\n              wineColor {\n                localizedName(localeId: $localeId)\n              }\n              sweetnessLevel {\n                localizedName(localeId: $localeId)\n              }\n              keyWords\n              specialClassifications {\n                name\n              }\n              country {\n                localizedName(localeId: $localeId)\n                codeISO\n              }\n              rating\n            }\n            minimalRecommendedRetailPrice {\n              price(currencyCode: $currencyCode)\n            }\n            tradeOfferLotCount(filter: { countryId: $countryId })\n            minimalTradeOfferLot(filter: { countryId: $countryId }) {\n              pricePerBottle: price(wineLotId: 1, currencyCode: $currencyCode)\n              price(currencyCode: $currencyCode)\n              lot {\n                bottleQuantity\n              }\n              retailCoef\n            }\n            maximumTradeOfferLot(filter: { countryId: $countryId }) {\n              pricePerBottle: price(wineLotId: 1, currencyCode: $currencyCode)\n              price(currencyCode: $currencyCode)\n              lot {\n                bottleQuantity\n              }\n              retailCoef\n            }\n          }\n        }\n      }\n    "}'