Skip to content

kirpalsingh17/Shopify-Genric--API-Using-GraphQL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Shopify Genric API Using GraphQL

Please install insomnia for using GraphQL api testing

GraphQL Query

"query":"query getFileUrl($id: ID!) {
			node(id: $id) {
				... on GenericFile {
							id
							url
							}
					}
			}	

GraphQL Query Variable

"variables":{
		"id":"gid://shopify/GenericFile/25822065655964"
		}

Header request for Shopify Access token

headers = {
  'X-Shopify-Access-Token': 'add you key',
  'Content-Type': 'application/json'
}

GraphQL POST request

conn.request("POST", "/admin/api/2022-01/graphql.json", payload, headers)

Releases

No releases published

Packages

No packages published

Languages