Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

x-trello-webhook in PHP

Outright Systems Pvt. Ltd. November 16, 2019

Need to save all headers to database , when I using

getallheaders()

in php, getting this..

 

array (
'x-trello-webhook' => '**********=',
'Content-Type' => 'application/json',
'Content-Length' => '6568',
'Host' => '******',
'Via' => '1.1 proxy3 (squid/3.5.12)',
'Cache-Control' => 'max-age=259200',
'Connection' => 'keep-alive',
)

Need to know how to get exact webhook info. base64_decode of x-trello-webhook does not worked.

1 answer

1 accepted

0 votes
Answer accepted
matt
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 26, 2019

The `x-trello-webhook` header will contain a signature of the actual webhook payload that you can use to confirm that the webhook itself is legitimate and comes from Trello.

The actual contents of the webhook itself will be as json in the POST body, not a header.

We've got some more details on how to check the signature for a webhook and what you can expect the body to look like here: https://developers.trello.com/page/webhooks

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events