⭐Spread Sheet interface slack emoji counter.
↓ Run
↓ Record
↓ Post(Example: Top 3)
- (Set Reacji Channeler)
- Get Slack token(enable conversation scope)
- Set GAS properties(
SLACK_TOKEN
,POST_URL
(post_url can fill dummy)) - Run
init()
- initialize option/save sheet - Fill your slack channel_id in option sheet
- Run
loadToSheet()
: load channel conversation data. You can specify the condition by filling sheet! - (testing) latestMonthAndPost() ... loadToSheet() + post top-3 reaction count comment
- channels:history
Set your SLACK_TOKEN
and POST_URL
and to run. New GAS visual editor not support to set property.
function setProperty() {
PropertiesService.getScriptProperties().setProperty("SLACK_TOKEN","xxxx-0000-...");
PropertiesService.getScriptProperties().setProperty("POST_URL","https://...");
}
curl -X POST -H "Authorization: Bearer token0000000" "https://slack.com/api/conversations.history?channel=channel0000000"
conversations.history method | Slack
Original code referenced site: https://zenn.dev/barusu/articles/0454005fc556dd
(This code doesn't work as channels.history API was deprecated.)