Created
June 26, 2015 09:39
-
-
Save zeisss/151d3323955ec6e9b44f to your computer and use it in GitHub Desktop.
Finding the channels of a user in slack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl https://api.slack.com/api/channels.list -d "token=${TOKEN}" | jq '.channels[] | {name: .name, m: (.members[] | contains("$MEMBERID"))}'|grep -B1 true|grep name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment