php-trello-api icon indicating copy to clipboard operation
php-trello-api copied to clipboard

how i can retrieve webhook data

Open bassem-shoukry opened this issue 6 years ago • 0 comments

$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

bassem-shoukry avatar Oct 27 '18 14:10 bassem-shoukry