[pusbullet] add a note how to register a new device

Christian Berendt 10 ans auparavant
Parent
Commettre
6d916534ae
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      app/models/agents/pushbullet_agent.rb

+ 4 - 0
app/models/agents/pushbullet_agent.rb

@@ -14,6 +14,10 @@ module Agents
14 14
 
15 15
       `curl -u <your api key here>: https://api.pushbullet.com/api/devices`
16 16
 
17
+      To register a new device run the following command:
18
+
19
+      `curl -u <your api key here>: -X POST https://api.pushbullet.com/v2/devices -d nickname=huginn -d type=stream`
20
+
17 21
       Put one of the retured `iden` strings into the `device_id` field.
18 22
 
19 23
       You can provide a `title` and a `body`.