tiki-deprecated / integrations

A collection of example implementations
MIT License
1 stars 1 forks source link

Save TIKI keys to Shopify app metafields #79

Closed ricardobrg closed 1 year ago

ricardobrg commented 1 year ago

Fix the GraphQL call in TIKI app installation to save the keys to meta fields.

After that is done, replace the hardcoded keys with the saved ones.

Current API call status: (log) { query: 'query {currentAppInstallation{id}}' } -> query (log) 400 -> HTTP error (log) {"errors":{"query":"Required parameter missing or invalid"}} -> error description

ricardobrg commented 1 year ago

GraphQL works now

  (log) {
  data: {
    currentAppInstallation: { id: 'gid://shopify/AppInstallation/534079504701' }
  },
  extensions: {
    cost: {
      requestedQueryCost: 1,
      actualQueryCost: 1,
      throttleStatus: [Object]
    }
  }
}