Skip to content

Instantly share code, notes, and snippets.

@Longlius
Created May 3, 2017 21:04
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 Longlius/0af22955e0eb11f0eaa5089719141d09 to your computer and use it in GitHub Desktop.
Save Longlius/0af22955e0eb11f0eaa5089719141d09 to your computer and use it in GitHub Desktop.
Curl request for getting Kroger locations
curl -XPOST -H "Content-Type:application/json" -d '{"query":"query storeSearch($searchText: String!, $filters: [String]!) {\n storeSearch(searchText: $searchText, filters: $filters) {\n stores {\n ...storeSearchResult\n }\n fuel {\n ...storeSearchResult\n }\n shouldShowFuelMessage\n }\n}\n\nfragment storeSearchResult on Store {\n banner\n vanityName\n divisionNumber\n storeNumber\n phoneNumber\n showWeeklyAd\n showShopThisStoreAndPreferredStoreButtons\n distance\n latitude\n longitude\n address {\n addressLine1\n addressLine2\n city\n countryCode\n stateCode\n zip\n }\n pharmacy {\n phoneNumber\n }\n}\n","variables":{"searchText":"38053","filters":[]},"operationName":"storeSearch"}' https://www.kroger.com/stores/api/graphql | jshon | less
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment