Yes! We have an example of a GET Webhook by Zapier.
Zapier is a workflow streamlining tool that allows you to connect different web applications for automation.
This example assumes that you are familiar with the authorization of APIs, and have a Zapier account.
You will need your access token (see the Authorization article to find it), and ensure that the redirect URL http://api.nexar.com/graphql is available for use with your application (found under Apps > the application of your selection > Authorization > Redirect URLs). That redirect URL should be there by default, but if it is not you can add it with the Add URL button.
In Zapier, once you have created a new Zap, you can add an action by pressing "+" underneath Trigger. This will open up a selection menu to Change Action. Click on "Webhooks by Zapier"
A panel will open on the right for App & Event customisation.
In Event, select "GET" and click continue.
The following entries will need to be made. Note that the query is an example query, that will use up 1 of your part limits. :
URL: https://api.nexar.com/graphql
Query: query q2 { supSearch(q: "500R14N220JV4T", limit: 1) { results { part { mpn manufacturer { name } } } } }
Send As JSON: No
JSON key: json
Unflatten: Yes
Basic Auth: <<YOUR ACCESS TOKEN >>
Next you will need to enter Headers and their contents, as follows:
Content-Type: application/json
Authorization: Bearer <<YOUR ACCESS TOKEN>>
Don't forget the word Bearer that is included before your access token!
Click Continue, and you should be able to test your API query. If it is successful, you will see the response as below:
Congratulations! You have successfully run a query in Zapier.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article