Skip to content

Instantly share code, notes, and snippets.

View richter-alex's full-sized avatar

Alex Richter richter-alex

  • Shopify
  • Canada
View GitHub Profile
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: {
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 = %(
# frozen_string_literal: true
source "https://rubygems.org"
gem "sinatra"
gem "httparty"
gem "pry"
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.
*/
{
"log": {
"version": "1.2",
"creator": {
"name": "Firefox",
"version": "68.0.1"
},
"browser": {
"name": "Firefox",
"version": "68.0.1"