Skip to content

Commit e6eae41

Browse files
authored
Merge pull request TwilioDevEd#270 from cummack/wireless-sim-refactor
Wireless sim refactor
2 parents 2a58ed6 + 73f9179 commit e6eae41

File tree

117 files changed

+70
-1571
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+70
-1571
lines changed

wireless/commands/create-example-1/create-example-1.3.x.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

wireless/commands/create-example-1/create-example-1.5.x.cs

Lines changed: 0 additions & 23 deletions
This file was deleted.

wireless/commands/create-example-1/create-example-1.5.x.php

Lines changed: 0 additions & 22 deletions
This file was deleted.

wireless/commands/create-example-1/create-example-1.5.x.rb

Lines changed: 0 additions & 14 deletions
This file was deleted.

wireless/commands/create-example-1/create-example-1.6.x.py

Lines changed: 0 additions & 17 deletions
This file was deleted.

wireless/commands/create-example-1/create-example-1.7.x.java

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
curl -X POST https://preview.twilio.com/wireless/Commands \
2-
-d 'Device=524116518656369' \
2+
-d 'Sim=AliceSmithSmartMeter' \
33
-d 'Command=wakeup' \
4-
-d 'CallbackUrl=https://devicemanager.mycompany.com/devices/524116518656369/commands' \
5-
-u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
4+
-d 'CallbackUrl=https://sim_manager.mycompany.com/sims/handle_command_callback?sim=AliceSmithSmartMeter' \
5+
-u 'AC8caa2afb9d5279926619c458dc7099a8:your_auth_token'

wireless/commands/create-example-1/output/create-example-1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Content-Type: application/json
33

44
{
55
"sid": "DC04a2aaa500367976bbb8294ec8082bab",
6-
"device_sid": "DE99421b66197ec022384d2cb9431a8667",
6+
"sim_sid": "DE99421b66197ec022384d2cb9431a8667",
77
"command": "wakeup",
88
"status": "queued",
99
"date_created": "2016-05-16T15:42:04Z",

wireless/commands/instance-get-example-1/instance-get-example-1.3.x.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

wireless/commands/instance-get-example-1/instance-get-example-1.5.x.cs

Lines changed: 0 additions & 21 deletions
This file was deleted.

wireless/commands/instance-get-example-1/instance-get-example-1.5.x.php

Lines changed: 0 additions & 22 deletions
This file was deleted.

wireless/commands/instance-get-example-1/instance-get-example-1.5.x.rb

Lines changed: 0 additions & 13 deletions
This file was deleted.

wireless/commands/instance-get-example-1/instance-get-example-1.6.x.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

wireless/commands/instance-get-example-1/instance-get-example-1.7.x.java

Lines changed: 0 additions & 20 deletions
This file was deleted.

wireless/commands/instance-get-example-1/output/instance-get-example-1.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Content-Type: application/json
33

44
{
55
"sid": "DCcb6aa7c620874dd98ba6c9c4108d0ed0",
6-
"command": "Hello, Device!",
7-
"device_sid": "DEb8eff34b248d066a31c4a953134e183e",
6+
"command": "Hello, Sim!",
7+
"sim_sid": "DEb8eff34b248d066a31c4a953134e183e",
88
"status": "delivered",
99
"date_updated": "2016-05-13T16:34:14Z",
1010
"date_created": "2016-05-13T16:34:11Z",

wireless/commands/list-example-1/list-example-1.3.x.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

wireless/commands/list-example-1/list-example-1.5.x.cs

Lines changed: 0 additions & 23 deletions
This file was deleted.

wireless/commands/list-example-1/list-example-1.5.x.php

Lines changed: 0 additions & 21 deletions
This file was deleted.

wireless/commands/list-example-1/list-example-1.5.x.rb

Lines changed: 0 additions & 12 deletions
This file was deleted.

wireless/commands/list-example-1/list-example-1.6.x.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

wireless/commands/list-example-1/list-example-1.7.x.java

Lines changed: 0 additions & 21 deletions
This file was deleted.

wireless/commands/list-example-1/output/list-example-1.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1+
CODE OUTPUT
12
HTTP/1.1 200 OK
23
Content-Type: application/json
34

45
{
56
"commands": [
67
{
78
"sid": "DC17d3b4990bc837308eb589f3c543838c",
8-
"command": "Hello, Device!",
9-
"device_sid": "DEd3f4ec6c85ded1a5f64f10afc067895c",
9+
"command": "Hello, Sim!",
10+
"sim_sid": "DEd3f4ec6c85ded1a5f64f10afc067895c",
1011
"status": "delivered",
1112
"date_updated": "2016-05-13T16:34:14Z",
1213
"date_created": "2016-05-13T16:34:11Z",
@@ -16,7 +17,7 @@ Content-Type: application/json
1617
{
1718
"sid": "DCfc7f46499afd87ce6ac91fd6cb20beea",
1819
"command": "Oh, hi.",
19-
"device_sid": "DE99421b66197ec022384d2cb9431a8667",
20+
"sim_sid": "DE99421b66197ec022384d2cb9431a8667",
2021
"status": "delivered",
2122
"date_updated": "2016-05-15T21:03:52Z",
2223
"date_created": "2016-05-15T21:03:51Z",

0 commit comments

Comments
 (0)