jolicode / jolicode/slack-php-api

authRevoke should be POST not GET?

Open
#165 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
255
Forks
62
Avg merge
1h 45m
Merged PRs (30d)
1

Description

The Slack API [documentation ](https://api.slack.com/methods/auth.revoke)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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.