For testing purposes, you can use an API tool to invoke a JavaScript API, simulating the request that an app will make in a production environment. This example uses Postman to make a request to the JavaScript API that we built in Example 1a: Set up JavaScript API to run an export.
-
In integrator.io, return to
→ → . -
Open the custom endpoint (ex. Demo – export).
-
Copy the URL shown in the Invoke field.
-
Close the JavaScript API without saving any changes.
-
In your Postman request, select POST for the type and paste the URL into the Request URL field.
-
In integrator.io, navigate to
→ . -
On the line that contains the API token (ex. Postman JavaScript API), click Show token.
-
Click the copy icon
next to the unmasked access token to copy it to your clipboard.
-
In Postman, open the Authorization tab.
-
For the Type, select Bearer token.
-
Paste the token into the Token field.
-
In Postman, open the Headers tab.
-
For the header Content-Type, select application/json.
-
Click Send.
-
Verify the export (Shopify records shown).