File tree Expand file tree Collapse file tree 9 files changed +124
-0
lines changed
super-sim/sims/update-account Expand file tree Collapse file tree 9 files changed +124
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "title" : " Transfer a Super SIM to a Subaccount" ,
3+ "type" : " server"
4+ }
Original file line number Diff line number Diff line change 1+ {
2+ "sid" : " HSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ,
3+ "account_sid" : " ACbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" ,
4+ "unique_name" : null ,
5+ "status" : " new" ,
6+ "fleet_sid" : null ,
7+ "iccid" : " iccid" ,
8+ "date_created" : " 2015-07-30T20:00:00Z" ,
9+ "date_updated" : " 2015-07-30T20:00:00Z" ,
10+ "url" : " https://supersim.twilio.com/v1/Sims/HSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
11+ }
Original file line number Diff line number Diff line change 1+ // Download the helper library from https://www.twilio.com/docs/node/install
2+ // Your Account Sid and Auth Token from twilio.com/console
3+ // DANGER! This is insecure. See http://twil.io/secure
4+ const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' ;
5+ const authToken = 'your_auth_token' ;
6+ const client = require ( 'twilio' ) ( accountSid , authToken ) ;
7+
8+ client . supersim . sims ( 'HSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' )
9+ . update ( { accountSid : 'ACbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' } )
10+ . then ( sim => console . log ( sim . accountSid ) ) ;
Original file line number Diff line number Diff line change 1+ // Install the C# / .NET helper library from twilio.com/docs/csharp/install
2+
3+ using System ;
4+ using Twilio ;
5+ using Twilio . Rest . Supersim . V1 ;
6+
7+
8+ class Program
9+ {
10+ static void Main ( string [ ] args )
11+ {
12+ // Find your Account Sid and Token at twilio.com/console
13+ // DANGER! This is insecure. See http://twil.io/secure
14+ const string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ;
15+ const string authToken = "your_auth_token" ;
16+
17+ TwilioClient . Init ( accountSid , authToken ) ;
18+
19+ var sim = SimResource . Update (
20+ accountSid : "ACbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" ,
21+ pathSid : "HSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
22+ ) ;
23+
24+ Console . WriteLine ( sim . AccountSid ) ;
25+ }
26+ }
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ // Update the path below to your autoload.php,
4+ // see https://getcomposer.org/doc/01-basic-usage.md
5+ require_once '/path/to/vendor/autoload.php ' ;
6+
7+ use Twilio \Rest \Client ;
8+
9+ // Find your Account Sid and Auth Token at twilio.com/console
10+ // DANGER! This is insecure. See http://twil.io/secure
11+ $ sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX " ;
12+ $ token = "your_auth_token " ;
13+ $ twilio = new Client ($ sid , $ token );
14+
15+ $ sim = $ twilio ->supersim ->v1 ->sims ("HSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX " )
16+ ->update ([
17+ "accountSid " => "ACbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb "
18+ ]
19+ );
20+
21+ print ($ sim ->accountSid );
Original file line number Diff line number Diff line change 1+ # Download the helper library from https://www.twilio.com/docs/ruby/install
2+ require 'rubygems'
3+ require 'twilio-ruby'
4+
5+ # Your Account Sid and Auth Token from twilio.com/console
6+ # DANGER! This is insecure. See http://twil.io/secure
7+ account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
8+ auth_token = 'your_auth_token'
9+ @client = Twilio ::REST ::Client . new ( account_sid , auth_token )
10+
11+ sim = @client . supersim . sims ( 'HSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' )
12+ . update (
13+ account_sid : 'ACbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb'
14+ )
15+
16+ puts sim . account_sid
Original file line number Diff line number Diff line change 1+ # Download the helper library from https://www.twilio.com/docs/python/install
2+ from twilio .rest import Client
3+
4+
5+ # Your Account Sid and Auth Token from twilio.com/console
6+ # DANGER! This is insecure. See http://twil.io/secure
7+ account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
8+ auth_token = 'your_auth_token'
9+ client = Client (account_sid , auth_token )
10+
11+ sim = client .supersim .sims ('HSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' ) \
12+ .update (account_sid = 'ACbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' )
13+
14+ print (sim .account_sid )
Original file line number Diff line number Diff line change 1+ // Install the Java helper library from twilio.com/docs/java/install
2+
3+ import com .twilio .Twilio ;
4+ import com .twilio .rest .supersim .v1 .Sim ;
5+
6+ public class Example {
7+ // Find your Account Sid and Token at twilio.com/console
8+ // DANGER! This is insecure. See http://twil.io/secure
9+ public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ;
10+ public static final String AUTH_TOKEN = "your_auth_token" ;
11+
12+ public static void main (String [] args ) {
13+ Twilio .init (ACCOUNT_SID , AUTH_TOKEN );
14+ Sim sim = Sim .updater ("HSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" )
15+ .setAccountSid ("ACbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" ).update ();
16+
17+ System .out .println (sim .getAccountSid ());
18+ }
19+ }
Original file line number Diff line number Diff line change 1+ curl -X POST https://supersim.twilio.com/v1/Sims/HSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \
2+ --data-urlencode "AccountSid=ACbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" \
3+ -u ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token
You can’t perform that action at this time.
0 commit comments