From 5c4ac57e2d296c7d0af9bd4e670f3e05050181a3 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 30 Oct 2017 01:53:14 +0100 Subject: [PATCH] Added script for creating a new device --- create_device.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 create_device.sh diff --git a/create_device.sh b/create_device.sh new file mode 100755 index 000000000..ca4137c1e --- /dev/null +++ b/create_device.sh @@ -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 +