We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Trying to use this code:
var slackToken = "blah"; var slackChannel = "blah"; try { Information("Sending message to Slack..."); var postMessageResult = Slack.Chat.PostMessage( token: slackToken, channel: slackChannel, text: "this is a test" ); if (postMessageResult.Ok) { Information("Message {0} successfully sent", postMessageResult.TimeStamp); } else { Error("Failed to send message: {0}", postMessageResult.Error); } } catch(Exception ex) { Error("{0}", ex); } });
results in:
Failed to send message: not_authed
Seems like there was a breaking change in Slack API, as the token is no longer passed in JSON payload, but rather as part of the URL.
The text was updated successfully, but these errors were encountered:
Any update on this? @gep13 @devlead
Sorry, something went wrong.
Please guys take a look at my PR #26.
When can we have a release for PR #26 ? @gep13 @devlead
Merge branch 'jzeferino-feature/fix_token_issue_#25'
7f8f8e7
* jzeferino-feature/fix_token_issue_#25: Fixes authorization issue posting to chat api. #25.
Fixed by #26
@devlead thanks for getting this pulled in.
devlead
No branches or pull requests
Trying to use this code:
results in:
Failed to send message: not_authed
Seems like there was a breaking change in Slack API, as the token is no longer passed in JSON payload, but rather as part of the URL.
The text was updated successfully, but these errors were encountered: