moshkit

NO_IMAGE

Jan 26th, 2021
647
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     curl --compressed -X POST -H "Content-Type: application/json" -H "X-APOLLO-OPERATION-ID: 92248a5380c2187f3f8e1afd3fe4ff23870470614bfbcb4e1408330aba1efb41" -H "X-APOLLO-OPERATION-NAME: searchRecipesByName" -H "X-APOLLO-CACHE-KEY: ed524dd81d938068ec7ed13a3e92c537" -H "X-APOLLO-CACHE-FETCH-STRATEGY: NETWORK_ONLY" -H "X-APOLLO-EXPIRE-TIMEOUT: 0" -H "X-APOLLO-EXPIRE-AFTER-READ: false" -H "X-APOLLO-PREFETCH: false" -H "X-APOLLO-CACHE-DO-NOT-STORE: false" -H "Accept: application/json" -H "Accept-Language: RU" -H "User-Agent: com.redmond 2.1.6-dev 1120 (Android 28)"  -d '{"operationName":"searchRecipesByName","variables":{"vendors":[1],"searchString":"%осьми%","locale":"ru","limit":10,"offset":0},"query":"query searchRecipesByName($deviceId: Int, $vendors: [Int!], $searchString: String!, $locale: String!, $limit: Int!, $offset: Int!) { recipe(order_by: [{view_count: desc}], where: {state: {_eq: \"available\"}, translatable_fields: {locale: {_eq: $locale}, name: {_ilike: $searchString}}, recipe_descriptions: {state: {_eq: \"available\"}, translatable_fields: {locale: {_eq: $locale}}, vendor_id: {_in: $vendors}, devices: {device_id: {_eq: $deviceId}}}}, offset: $offset, limit: $limit) { __typename ...recipe recipe_descriptions(limit: 1, where: {state: {_eq: \"available\"}, translatable_fields: {locale: {_eq: $locale}}, vendor_id: {_in: $vendors}, devices: {device_id: {_eq: $deviceId}}}) { __typename ...recipeDescriptionShort } } } fragment recipe on recipe { __typename id image_id view_count translatable_fields(where: {locale: {_eq: $locale}}) { __typename name } } fragment recipeDescriptionShort on recipe_description { __typename id servings_num energy cooktime }"}' "https://content.dev.readyforsky.com/v1/graphql" -L -g -k -v  | python3 -m json.tool
  2.  
  3.  
  4. {
  5.     "data": {
  6.         "recipe": [
  7.             {
  8.                 "__typename": "recipe",
  9.                 "id": 21900,
  10.                 "image_id": "5ZqlkxLIxX275luaFu0vNKWHV8iwA3At",
  11.                 "view_count": 0,
  12.                 "translatable_fields": [
  13.                     {
  14.                         "__typename": "translate_recipe",
  15.                         "name": "\u041e\u0441\u044c\u043c\u0438\u043d\u043e\u0433\u0438 \u043d\u0430 \u0433\u0440\u0438\u043b\u0435"
  16.                     }
  17.                 ],
  18.                 "recipe_descriptions": [
  19.                     {
  20.                         "__typename": "recipe_description",
  21.                         "id": 50423,
  22.                         "servings_num": 2,
  23.                         "energy": 268,
  24.                         "cooktime": 480
  25.                     }
  26.                 ]
  27.             }
  28.         ]
  29.     }
  30. }
  31.  
  32.  
  33. https://image.readyforsky.com/i/5ZqlkxLIxX275luaFu0vNKWHV8iwA3At/50x50.webp
RAW Paste Data