We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 6.
This file contains 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
This file contains 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
Inbenta API - Google Apps Script Examples (~JavaScript)
Check out the official documentation of the Inbenta API at Getting Started.
This gist is done for API version v1. To check out SDK examples in JavaScript, check this out
Overview
All the API access is over HTTPS.
The response format for all requests is a JSON object.
Whether a request succeeded is indicated by the HTTP status code. A 2xx status code indicates success, otherwise failure. When a request fails, the response body is still JSON.
Authentication
Authentication is done via HTTP headers, more information in the Authorization section.
The calls in this gist all authenticate doing a call to getApiData(), which retrieves a token from POST /auth, and the list of api endpoints from GET /apis.
Simple examples of calls to the Shopify API using Google Apps Script (.gs). So far:
ssCatalogPublicationStatus.gs - Meant as an addon for Google Sheets to check the publication status of items.
getCatalogJSON() - Returns complete JSON catalog for an instance.
checkPublicationStatus() - Checks a list of handle-ids in Google Sheets against a JSON catalog
Compares the first column of a google spreadsheet to the JSON Shopify catalog. Adds published date to third column, and verifies date to published status.