Can't push a notification in a pushbullet channel using the pushbullet API

Viewed 48

I've tried something like this:

from pushbullet import PushBullet

API_KEY = myAPIKey

pb = PushBullet(myAPIKey)

push = pb.push_note('Title', 'Desc', channel="myTag")

I've already created a channel (with the relative tag). This code produces the output

data["channel_tag"] = channel.channel_tag; AttributeError: 'str' object has no attribute 'channel_tag'

What am I doing wrong?

0 Answers
Related