Table of Contents |
---|
...
Go to https://gql.doo.net
Under the section HTTP Headers, put the Api_Key and Access Token in this format:
Code Block { "x-api-key":"<api_key>", "Authorization":"Bearer <access_token>" }
Provide Query Variables. Example:
Code Block {"id": <event_id>}
Provide the body. Example:
Code Block query EventShort($id: ID!){ event(id: $id) { title, startDate, endDate } }
to construct a body, one can use the Schema (green button on the right). There you pick the desired entities and then use the detailed variables to construct the payload.
Verify the payload. To do that, simply click on the Play button and you will get a complete payload in json and potentially discover mistakes in your body query.
Once you are satisfied and want to create a webhook configuration with your GraphQL query, don't forget to escape the query before pasting it to the AddWebhook object.