Articles in this section

Test an export via My API HTTP request

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

  1. In integrator.io, return to Resources > My APIs
  2. Open the custom endpoint (ex. Demo – export).
  3. Copy the URL shown in the Invoke field.
  4. Close the My API without saving any changes.
  5. In your Postman request, select POST for the type and paste the URL into the Request URL field.

B. Retrieve the API token

  1. In integrator.io, navigate to Resources > API token
  2. On the line that contains the API token (ex. Postman My API), click Show token.
  3. Click the copy icon (  ) next to the unmasked access token to copy it to your clipboard.
  4. In Postman, open the Authorization tab. 
  5. For the Type, select Bearer token
  6. Paste the token into the Token field. 

C. Submit the request

  1. In Postman, open the Headers tab.
  2. For the header Content-Type, select application/json.
  3. Click Send.
  4. Verify the export (Shopify records shown).

See full example

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.