Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how i can retrieve webhook data #72

Open
bassem-shoukry opened this issue Oct 27, 2018 · 0 comments
Open

how i can retrieve webhook data #72

bassem-shoukry opened this issue Oct 27, 2018 · 0 comments

Comments

@bassem-shoukry
Copy link

bassem-shoukry commented Oct 27, 2018

$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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant