This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mutation { | |
deliveryProfileUpdate(id: "gid://shopify/DeliveryProfile/11477418006", profile: { | |
name: "My GQL Profile - Now with Zones and Rates!", | |
locationGroupsToCreate: { | |
locations: ["gid://shopify/Location/37086726"], | |
zonesToCreate: [{ | |
name: "My 1st GQL Zone - Canada", | |
countries: [{ | |
code: CA, | |
provinces: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'shopify_api' | |
require 'json' | |
require 'pry' | |
session = ShopifyAPI::Session.new(domain: SHOP, token: YOUR_ACCESS_TOKEN, api_version: '2019-07') | |
ShopifyAPI::Base.activate_session(session) | |
client = ShopifyAPI::GraphQL.new | |
tags_query_string = %( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
source "https://rubygems.org" | |
gem "sinatra" | |
gem "httparty" | |
gem "pry" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import PropTypes from 'prop-types'; | |
import {Card} from '@shopify/polaris'; | |
import {Redirect} from '@shopify/app-bridge/actions'; | |
/** | |
* Simple component that makes use of App Bridge. | |
* | |
* Ensure that this component is a child of your `<AppProvider>` component. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"log": { | |
"version": "1.2", | |
"creator": { | |
"name": "Firefox", | |
"version": "68.0.1" | |
}, | |
"browser": { | |
"name": "Firefox", | |
"version": "68.0.1" |