// Download the Node helper library from twilio.com/docs/node/install
// These vars are your accountSid and authToken from twilio.com/user/account
var accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
var authToken = "your_auth_token";
var client = require('twilio')(accountSid, authToken);

client.incomingPhoneNumbers.create({
    friendlyName: "My Company Line",
    voiceUrl: "http://demo.twilio.com/docs/voice.xml",
    phoneNumber: "+15105647903",
    voiceMethod: "GET"
}, function(err, number) {
    console.log(number.sid);
});
@@ -72,19 +72,21 @@
 / These 
-var
+const
 s are yo
@@ -142,19 +142,21 @@
 account%0A
-var
+const
  account
@@ -199,19 +199,21 @@
 XXXXX';%0A
-var
+const
  authTok
@@ -217,17 +217,17 @@
 Token = 
-%22
+'
 your_aut
@@ -237,14 +237,16 @@
 oken
-%22;%0Avar
+';%0Aconst
  cli
@@ -331,18 +331,16 @@
 reate(%7B%0A
-  
   friend
@@ -347,17 +347,17 @@
 lyName: 
-%22
+'
 My Compa
@@ -363,21 +363,19 @@
 any Line
-%22
+'
 ,%0A
-  
   voiceU
@@ -378,17 +378,17 @@
 iceUrl: 
-%22
+'
 http://d
@@ -416,21 +416,19 @@
 oice.xml
-%22
+'
 ,%0A
-  
   phoneN
@@ -434,17 +434,17 @@
 Number: 
-%22
+'
 +1510564
@@ -451,13 +451,11 @@
 7903
-%22
+'
 ,%0A
-  
   vo
@@ -469,39 +469,33 @@
 od: 
-%22GET%22%0A%7D, function(err, 
+'GET',%0A%7D)%0A.then((
 number) 
 %7B%0A  
@@ -494,13 +494,10 @@
 er) 
-%7B%0A   
+=%3E
  con
@@ -520,9 +520,7 @@
 sid)
-;%0A%7D
 );
+%0A

Correct rest/incoming-phone-numbers/list-post-example-1