1)Open the terminal
2) cd into workspace
3) use python3 to import slack from api ("from api import slack"- no quotes)
4) call the get_user_groups() function in the slack object ("slack.get_user_groups()"- no quotes)
5) make sure a list is printed (ex: ['Sales', 'Engineers'])
Should look like this:
from apis import slack
slack.get_user_groups()
['Sales', 'Engineers']
1)Open the terminal 2) cd into workspace 3) use python3 to import slack from api ("from api import slack"- no quotes) 4) call the get_user_groups() function in the slack object ("slack.get_user_groups()"- no quotes) 5) make sure a list is printed (ex: ['Sales', 'Engineers'])
Should look like this: