slackhq / slack-api-docs

API Docs for Slack.com
https://api.slack.com/
426 stars 85 forks source link

Document emoji add endpoint #94

Open G-Rath opened 5 years ago

G-Rath commented 5 years ago

According to the comments of #28, /api/emoji.add is an endpoint that can be used for adding emojis.

However, this endpoint isn't documented anywhere!

ErikKalkoken commented 5 years ago

This is an internal endpoint that only works with Slack internal tokens (xoxs...), but not with any normal token (user, bot. legacy). You can fetch internal tokens from the browser, but that's a hack and not recommended. So since it can not really be used by any Slack app there is not much point in documenting it, unless Slack opened this endpoint up for normal tokens.

jonmcoe commented 5 years ago

Agreed. No sense in this (at least for me) until an approach with different auth is added, as suggested in #95

davidbitton commented 4 years ago

It would be nice to be able to bulk load emojis, That's how I plan on using it.

jonmcoe commented 4 years ago

@davidbitton something like the project below can help you for isolated bulk uploads.

https://github.com/smashwilson/slack-emojinator/blob/master/upload.py

It works well. The downside is you have to take short lived personal authentication (xoxs) from you browser session. So you couldn't really make a chatbot, a web app that does image resizing for joy x etc

davidbitton commented 4 years ago

@jonmcoe i'll check it out. thanks