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

What happened to crcHash method? #368

Closed
beitomartinez opened this issue Jul 3, 2021 · 5 comments
Closed

What happened to crcHash method? #368

beitomartinez opened this issue Jul 3, 2021 · 5 comments
Assignees

Comments

@beitomartinez
Copy link

Hi there!
On version 2.x the Facade used to have to crcHash method for weebhook requests, but on version 3, I can't seem to find it.
Is there another way to generate the response token for these requests?

Thanks in advance!

@atymic
Copy link
Owner

atymic commented Jul 7, 2021

cc @reliq

@reliq
Copy link
Collaborator

reliq commented Jul 13, 2021

Hi @beitomartinez,

Could you please provide a snippet showing how you usually use this method with this package?

@beitomartinez
Copy link
Author

Hi!
Sure thing.

I use it for the CRC token check that Twitter does when you use webhooks.
For instance, I would do something like this:

// Inside the method that handles Twitter CRC request
$response = Twitter::crcHash($request->crc_token);
return new JsonResponse(['response_token' => $response]);

@reliq
Copy link
Collaborator

reliq commented Jul 19, 2021

@beitomartinez, thank you.

#372 should fix this.

@reliq reliq self-assigned this Jul 19, 2021
@beitomartinez
Copy link
Author

Thanks!

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

3 participants