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:
- Create a project in your google cloud account, then open the project's console:
- Click the APIs & Services Card
- Click the Credentials in APIs & Services Page
- Click the
CREATE CREDENTIALSbutton and create aService account. - When the new credentials created, copy the email show in the service accounts.
- Click the
Editbutton on the right side of the service account email.
- At Service Edit Page, switch to the
KEYStab and clickADD KEY.
- By default, use JSON key and click
CREATEbutton.
- When the
KEYis created, the browser will automatically download a JSON file.
- You should save the json file content, and use it later in the AirCode project.
- Go to the Google Sheets Page and create a new spreadsheet.
- You can copy the header of the sheets from this template file.
- Click the
Sharebutton of the spreadsheet you created.
- Add your service accounts email just created before.
These are all the steps for setting up Google API.
-
Go to the dashboard of your Shopify Partners account, create a new store, or use an existing one.
-
Go to the admin console of your store.
- Click the
Settings > Apps and sales channels - Then click the
Develop appsbutton.
- Setting up your shopify app:
- Switch to
Configuration Tab, add access permission ofread_orders,read_productsandread_customers.
- Switch to
API CrendentialsPage
- 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.
- Get a copy of the sample project:
- You can easily get a copy and launch your app on AirCode by clicking the button below.
- 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.
- Open the
credentials.jsonfile, now it's a empty json.
- Copy the content of the google cloud api credentials file you just download.
- Create a schedule job that runs every miniute.
- Click the
Deploybutton to deploy your project online.
🎉 Now you successfully get your shopify store data sync to the google spreadsheet you shared.












