Skip to content

Instantly share code, notes, and snippets.

@gryte
Created December 20, 2017 00:57
Show Gist options
  • Save gryte/ab57bd20dc70f085c88d70bd83e2e4a8 to your computer and use it in GitHub Desktop.
Save gryte/ab57bd20dc70f085c88d70bd83e2e4a8 to your computer and use it in GitHub Desktop.
Slack IFTTT Automatically Update Status

enter an area - arrive at work - in the office

If Location, then Webhooks

webhooks field webhooks value
URL https://slack.com/api/users.profile.set
Method POST
Content Type application/x-www-form-urlencoded
Body authorization=Basic &token=TOKENHERE&profile={"status_text": "in the office","status_emoji":":office:"}

exit an area - leave work - commuting

If Location, then Webhooks

webhooks field webhooks value
URL https://slack.com/api/users.profile.set
Method POST
Content Type application/x-www-form-urlencoded
Body authorization=Basic &token=TOKENHERE&profile={"status_text": "commuting","status_emoji":":car:"}

enter an area - arrive home - at home

If Location, then Webhooks

webhooks field webhooks value
URL https://slack.com/api/users.profile.set
Method POST
Content Type application/x-www-form-urlencoded
Body authorization=Basic &token=TOKENHERE&profile={"status_text": "at home","status_emoji":":house:"}

exit an area - leave home - commuting

If Location, then Webhooks

webhooks field webhooks value
URL https://slack.com/api/users.profile.set
Method POST
Content Type application/x-www-form-urlencoded
Body authorization=Basic &token=TOKENHERE&profile={"status_text": "commuting","status_emoji":":car:"}

references

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment