Skip to content
This repository was archived by the owner on Aug 15, 2024. It is now read-only.

Commit f250383

Browse files
committed
Fix failing snippets in /wireless and activate testing
1 parent b902ee1 commit f250383

20 files changed

+8
-9
lines changed

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
client = Client(account_sid, auth_token)
99

10-
commands = client.preview.wireless.commands('DCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')\
11-
.list()
10+
commands = client.preview.wireless.commands.list()
1211

1312
print(commands)

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ client.preview.wireless.ratePlans
99
uniqueName: 'SmartMeterCA',
1010
friendlyName: 'California SmartMeter Plan',
1111
dataLimit: 5,
12-
messagingEnabled: true
12+
messagingEnabled: 'true'
1313
})
1414
.then(function(response) {
1515
console.log(response);

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
->ratePlans('WPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')
1313
->fetch();
1414

15-
prin_r($ratePlan);
15+
print_r($ratePlan);

wireless/sim-usage-records/instance-get-example-1/instance-get-example-1.3.x.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const client = require('twilio')(accountSid, authToken);
77
client.preview.wireless
88
.sims('DEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')
99
.usage()
10-
.fetch();
10+
.fetch()
1111
.then(function(response) {
1212
console.log(response);
1313
});

wireless/sims/instance-post-example-1/instance-post-example-1.5.x.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
.sims("DEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")
1212
.update(
1313
status: 'active',
14-
callbackUrl: 'https://sim-manager.mycompany.com/sim-update-callback/AliceSmithSmartMeter'
15-
callbackMethod: 'POST'
14+
callback_url: 'https://sim-manager.mycompany.com/sim-update-callback/AliceSmithSmartMeter',
15+
callback_method: 'POST'
1616
)
1717

1818
puts sim

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
client = Client(account_sid, auth_token)
99

10-
sims = client.preview.wireless.sims('DEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')\
11-
.list()
10+
sims = client.preview.wireless.sims.list()
1211

1312
print(sims)

wireless/test.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
testable: true

0 commit comments

Comments
 (0)