Last active
November 14, 2017 20:12
-
-
Save hutattedonmyarm/534a3f87156454f1fb9605c6e093d196 to your computer and use it in GitHub Desktop.
Get names of all subscribed channels
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
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