Skip to content

Instantly share code, notes, and snippets.

@hutattedonmyarm
Last active November 14, 2017 20:12
Show Gist options
  • Save hutattedonmyarm/534a3f87156454f1fb9605c6e093d196 to your computer and use it in GitHub Desktop.
Save hutattedonmyarm/534a3f87156454f1fb9605c6e093d196 to your computer and use it in GitHub Desktop.
Get names of all subscribed channels
import pnutpy
response, meta = pnutpy.api.subscribed_channels(include_raw=True)
print("Response\n")
for channel in response:
raw = channel.get('raw')
if raw is not None and len(raw) > 0:
print(raw[0].get('value').get('name'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment