Added script for creating a new device

This commit is contained in:
Fabio Manganiello 2017-10-30 01:53:14 +01:00
parent c01bb76d5d
commit 5c4ac57e2d
1 changed files with 12 additions and 0 deletions

12
create_device.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
API_TOKEN='o.EHMMnZneJdpNQv9FSFbyY2busin7floe'
curl --header "Access-Token: $API_TOKEN" \
--header 'Content-Type: application/json' \
--data-binary '{"app_version":8623,"manufacturer":"RaspberryPi","model":"RaspberryPi 3","nickname":"turing","icon":"system","has_sms":false}' \
--request POST \
https://api.pushbullet.com/v2/devices
# Copy "iden" from the response as your device identifier