You can list the Webhooks via api and extract the idModel.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't work with Rest API directly since I am using py-trello. Looking at the library and comparing with Trello API documentation it should be
https://developer.atlassian.com/cloud/trello/rest/api-group-tokens/#api-tokens-token-webhooks-get
url = "/tokens/%s/webhooks" % token
return self._existing_hook_objs(self.fetch_json(url), token)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @milynnus
Thanks for replying. What is the token in this scenario?
Is the token mentioned in this API reference documentation different to the token for authentication (i.e. secret & user token)?
https://developer.atlassian.com/cloud/trello/rest/api-group-tokens/#api-tokens-token-get
Thanks for your help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Tried my hand on using REST API "as is". With the documented API example I got a 401. I supplied the key and it returned the list I wanted.
url = "https://api.trello.com/1/tokens/{}/webhooks".format(client.resource_owner_key)
headers = {
"Accept": "application/json"
}
query = {
'key': client.api_key,
'token': client.resource_owner_key
}
response = requests.request(
"GET",
url,
headers=headers,
params=query
)
print(response.text)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Because I am using BenkoBoard , there were webhooks registered with the token I used for that application. It is also the one I used for my application development hence I have a client - hence client.resource_owner_key...etc
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.