Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Sync Shopify data to Google Spreadsheets

This example shows how to use AirCode to sync your shopify data to a shared google spreadsheet.

Before you started, make sure you have the following:

Quick Started

Step 1: seting up your google spreadsheet.

  1. Create a project in your google cloud account, then open the project's console:
  • Click the APIs & Services Card

  1. Click the Credentials in APIs & Services Page
  • Click the CREATE CREDENTIALS button and create a Service account.
  • When the new credentials created, copy the email show in the service accounts.

  1. Click the Edit button on the right side of the service account email.
  • At Service Edit Page, switch to the KEYS tab and click ADD KEY.

  • By default, use JSON key and click CREATE button.

  • When the KEY is created, the browser will automatically download a JSON file.

  • You should save the json file content, and use it later in the AirCode project.
  1. Go to the Google Sheets Page and create a new spreadsheet.
  1. Click the Share button of the spreadsheet you created.
  • Add your service accounts email just created before.

These are all the steps for setting up Google API.

Step 2: seting up your shopify store.

  1. Go to the dashboard of your Shopify Partners account, create a new store, or use an existing one.

  2. Go to the admin console of your store.

  • Click the Settings > Apps and sales channels
  • Then click the Develop apps button.

  1. Setting up your shopify app:
  • Switch to Configuration Tab, add access permission of read_orders, read_products and read_customers.

  • Switch to API Crendentials Page

  • Create and copy the Admin API access Token. NOTE that you can only view and copy the token once.
  • Please keep your token safe; we will need it in the upcoming Aircode project.

Step 3: Setting up your AirCode Project.

  1. Get a copy of the sample project:
  • You can easily get a copy and launch your app on AirCode by clicking the button below.

Deploy with AirCode

  1. Open the project and set two Environments:
  • SHOPIFY_TOKEN: The shopify admin api access token you just created.
  • SPREAD_SHEET_ID: The google spreadsheet ID.

  1. Open the credentials.json file, now it's a empty json.
  • Copy the content of the google cloud api credentials file you just download.

  1. Create a schedule job that runs every miniute.

  1. Click the Deploy button to deploy your project online.

🎉 Now you successfully get your shopify store data sync to the google spreadsheet you shared.