Hi,
Im hoping someone can help me. Im building an application that will use the Webhook API. I have followed the documentation to the letter and as of a few days ago had everything working correctly but for some reason something has changed and I cant understand what/why.
So My application is designed to check for the existence of a local reference of a Project and where there isn’t one, create one and then create a Webhook for that project with Asana. the application makes the request to Asana as per the documentation and my application authenticates the request for a Webhook by returning the secret header… Asana then responds with the expected response, showing a unique Webhook ID and the creation date, plus a few other properties… exactly like the docs.
However… If i then use postman to request all Webhooks created for projects in a given workspace…nothing is found. If i try and find the webhook directly using the ID that was returned from Asana, nothing is found.
Its as if the Webhook API is accepting the request, authorising the request and then failing to setup the Webhook?
Any pointers or help on this would be great, Im really stuck and its halted progress on my project unfortunately.
Example of the return from Webhook create request formatted as per the documentation:
{
"data": {
"id": 112233445566778899,
"target": "https://PROJECT TARGET URL AS PASSED IN",
"active": true,
"created_at": "2017-05-09T08:38:39.503Z",
"last_failure_at": null,
"last_failure_content": "",
"last_success_at": null,
"resource": {
"id": 282152651586423,
"name": "Asana Test"
}
}
}
Example Message when looking for the Webhook Directly
https://app.asana.com/api/1.0/webhooks/112233445566778899
{
"errors": [
{
"message": "webhook: Unknown object: 112233445566778899",
"help": "For more information on API status codes and how to handle them, read the docs on errors: https://asana.com/developers/documentation/getting-started/errors"
}
]
}
What am I missing?
Thanks in advance,