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

Request for Slack Badge #536

Closed
balupton opened this issue Sep 16, 2015 · 3 comments
Closed

Request for Slack Badge #536

balupton opened this issue Sep 16, 2015 · 3 comments

Comments

@balupton
Copy link

Currently there is https://github.com/rauchg/slackin/blob/master/lib/badge.js via https://github.com/rauchg/slackin however it doesn't work via safari rauchg/slackin#55 - perhaps slackin could be updated to use shields, or perhaps shields could be updated to use slackin

@espadrine
Copy link
Member

The juicy bit is here: https://github.com/rauchg/slackin/blob/master/lib/slack.js#L20. A token is needed, however. We could imagine /slack/users/TOKEN.svg calling curl 'https://slack.com/api/rtm.start?token=TOKEN (but the token must correspond to someone on the socketio team).

You can find your API token at api.slack.com/web – note that the user you use to generate the token must be an admin.

It isn't really safe to send the token to the shields servers, though. However, having it implemented would make it easier to run your own shields server which would be able to serve badges in the social style (similar to the one displayed by default by rauchg) or in the flat style (the one we designed for shields) without issue 55.

@balupton
Copy link
Author

@espadrine that's very informative thanks, the need for a custom secret token rules that out for shields.io implementing a slack badge directly.

What if slackin worked by having the URL to badge - handled by this, simply redirect to a manually generated shields.io badge, like https://img.shields.io/badge/slack-3/8-pink.svg

@balupton
Copy link
Author

Going to close, as an issue for slackin directly.

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

2 participants