bazbt3/PigPen

How do I get public channel title/description

Closed this issue · 3 comments

I probably need help or clues to figure this out.

After a call for help prior to the pnut hackathon, @hutattedonmyarm created a very helpful gist at: https://gist.github.com/hutattedonmyarm/534a3f87156454f1fb9605c6e093d196

Here's the code, missing only the authentication necessary to make it work:

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'))```

Implemented, though possibly buggy, in getchannel and getsubscribed.

In v0.2.4.