For testing purposes, you can use an API tool to invoke a My API, simulating the request that an app will make in a production environment. This example uses Postman to make a request to the My API that we built in Example 1a: Set up My API to run an export.
A. Provide the URL to the My API endpoint
- In integrator.io, return to Resources > My APIs.
- Open the custom endpoint (ex. Demo – export).
- Copy the URL shown in the Invoke field.
- Close the My API without saving any changes.
- In your Postman request, select POST for the type and paste the URL into the Request URL field.
B. Retrieve the API token
- In integrator.io, navigate to Resources > API token.
- On the line that contains the API token (ex. Postman My 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.
C. Submit the request
- In Postman, open the Headers tab.
- For the header Content-Type, select application/json.
- Click Send.
- Verify the export (Shopify records shown).
See full example
Comments
Please sign in to leave a comment.