This repository was archived by the owner on Aug 15, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +0
-6
lines changed
rest/access-tokens/sync-example Expand file tree Collapse file tree 6 files changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ const twilioApiKey = process.env.TWILIO_API_KEY;
88const twilioApiSecret = process . env . TWILIO_API_SECRET ;
99
1010// Used specifically for creating Sync tokens
11- const outgoingApplicationSid = 'APxxxxxxxxxxxxx' ;
1211const identity = 'user' ;
1312
1413// Create a "grant" which enables a client to use Sync as a given user
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ static void Main(string[] args)
1313 const string twilioApiSecret = Environment . GetEnvironmentVariable ( "TWILIO_API_SECRET" ) ;
1414
1515 // These are specific to Sync
16- const string outgoingApplicationSid = "APXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ;
1716 const string identity = "user" ;
1817
1918 // Create a Sync grant for this token
Original file line number Diff line number Diff line change 1111$ twilioApiSecret = getenv ('TWILIO_API_KEY_SECRET ' );
1212
1313// Required for Sync grant
14- $ outgoingApplicationSid = 'APxxxxxxxxxxxx ' ;
1514// An identifier for your app - can be anything you'd like
1615$ identity = "john_doe " ;
1716
Original file line number Diff line number Diff line change 1212
1313# Create Sync grant for our token
1414grant = Twilio ::JWT ::AccessToken ::SyncGrant . new
15- grant . outgoing_application_sid = outgoing_application_sid
1615
1716# Optional: add to allow incoming calls
1817grant . incoming_allow = true
Original file line number Diff line number Diff line change 99api_secret = os .environ ['TWILIO_API_KEY_SECRET' ]
1010
1111# required for Sync grant
12- outgoing_application_sid = 'APxxxxxxxxxxxxx'
1312identity = 'user'
1413
1514# Create access token with credentials
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ public static void main(String[] args) {
1212 String twilioApiSecret = System .getenv ("TWILIO_API_SECRET" );
1313
1414 // Required for Sync
15- String outgoingApplicationSid = System .getenv ("TWILIO_APP_SID" );
1615 String identity = "user" ;
1716
1817 // Create Sync grant
You can’t perform that action at this time.
0 commit comments