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

authRevoke should be POST not GET? #165

Open
priit-matiisen-scoro opened this issue Jan 29, 2024 · 0 comments
Open

authRevoke should be POST not GET? #165

priit-matiisen-scoro opened this issue Jan 29, 2024 · 0 comments

Comments

@priit-matiisen-scoro
Copy link

The Slack API documentation states GET is the preferred way, but

$client->authRevoke([ 'token' => $token, ]);

will result in "invalid_auth"

I tried with curl and the POST request works fine

curl https://slack.com/api/auth.revoke -X POST --header "Authorization: Bearer xxx-xxxx-xxxxxxx"

Can someone confirm the issue?

@priit-matiisen-scoro priit-matiisen-scoro changed the title authRevoke should be POST not GET authRevoke should be POST not GET? Jan 29, 2024
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