cleaned up per vbanthia's comments. fixed docs to align with implementation

This commit is contained in:
kris
2017-06-14 21:38:09 -05:00
parent eb069bbdf3
commit 9f3f0b9692
3 changed files with 8 additions and 21 deletions

View File

@@ -287,7 +287,7 @@ POST /api/v1/user/devices/{serial}/remoteConnect
Using cURL:
```bash
curl -X POST --header "Content-Type: application/json" -H "Authorization: Bearer YOUR-TOKEN-HERE" https://stf.example.org/api/v1/user/devices/{serial}/remoteConnect
curl -X POST -H "Authorization: Bearer YOUR-TOKEN-HERE" https://stf.example.org/api/v1/user/devices/{serial}/remoteConnect
```
Using Node.js:
@@ -384,7 +384,7 @@ function add_device
function remote_connect
{
response=$(curl -X POST -H "Content-Type: application/json" \
response=$(curl -X POST \
-H "Authorization: Bearer $STF_TOKEN" \
$STF_URL/api/v1/user/devices/$DEVICE_SERIAL/remoteConnect)
@@ -404,7 +404,7 @@ function remote_connect
function remove_device
{
response=$(curl -X DELETE -H "Content-Type: application/json" \
response=$(curl -X DELETE \
-H "Authorization: Bearer $STF_TOKEN" \
$STF_URL/api/v1/user/devices/$DEVICE_SERIAL)