php-trello-api
php-trello-api copied to clipboard
how i can retrieve webhook data
$json = file_get_contents('php://input'); $action = json_decode($json, true);
\Storage::put('test.txt', $action);
$client = new Client();
$client->authenticate('my api key', 'my token', Client::AUTH_URL_CLIENT_ID);
$service = new Service($client);
// Check if the current request was made by a Trello webhook
// This will dispatch any Trello event to listeners defined above
//$service->handleWebhook();
\Storage::put('test2.txt', $service->handleWebhook());
what is the wrong
i try the same webhook with requestcatcher.com it's working .. but how i can catch to request in laravel