0

How can I send to channel?

This is the code I use for notes:

curl -k https://api.pushbullet.com/v2/pushes -X POST -u <MYTOKEN>: --header "Content-Type: application/json" --data-binary "{\"type\": \"note\", \"title\":\"Note Title\", \"body\": \"Note Body\"}"
demongolem
  • 9,474
  • 36
  • 90
  • 105

1 Answers1

0

You can set the "channel_tag" parameter in the body of the message there: https://docs.pushbullet.com/#create-push

Chris Pushbullet
  • 1,039
  • 9
  • 10
  • do you have an example ?? i dont understand it , how can i put it in my line ? –  Jan 26 '16 at 12:38
  • Something like this should work: "{\"type\": \"note\", \"title\":\"Note Title\", \"body\": \"Note Body\", \"channel_tag\": \"tag\"}" – Chris Pushbullet Jan 28 '16 at 03:07
  • i get thi error {"error":{"code":"invalid_param","type":"invalid_request","message":"The param ' channel_tag' has an invalid value.","param":"channel_tag","cat":"\u003e:3"}} –  Jan 29 '16 at 14:57
  • Your channel_tag may not point to a channel that exists and that you own. – Chris Pushbullet Jan 30 '16 at 01:17