メニュー

Expand
ページを評価:

How to Bulk Update Twilio SIMs

If you need to configure multiple SIMs on a single Twilio account, we have a Node.JS script and a .csv spreadsheet file which will help you do so.

Note The script will not allow you to transfer SIMs between accounts.

The script dscribed in this guide is intended to be used if you are managing a fleet of SIMs, but it may also come in useful if you are looking for a code example that makes use of the Programmable Wireless API.

This guide assumes you are familiar with the Twilio plaform, Git, and are able to install and use Node.js and Node Package Manager (npm).

How to install the script

How to make a bulk update

  • Open the file app.js in your IDE or text editor of choice.
  • Enter your Account Sid on line 3.
  • Enter your Auth Token on line 4.
  • Save app.js.
  • Open Twilio Programmable Wireless - SIMs.csv in any compatible spreadsheet app.
  • Enter one SIM per row.
    • Note Only enter information in a row that you wish to update. Sim Sids are required.
  • Export the spreadsheet as a .csv file in the same folder as app.js.
    • 注意 app.js looks for the filename Twilio Programmable Wireless - SIMs.csv by default.
  • Start a terminal and cd to the directory where app.js and Twilio Programmable Wireless - SIMs.csv are located.
  • Type npm start.

You can find out what each column in the spreadsheet means by checking out the SIM documentation.

This snippet is in Node.JS but it could have been written in any language capable of calling our REST APIs or SDKS.

ページを評価:

ヘルプが必要ですか?

誰しもが一度は考える「コーディングって難しい」。そんな時は、お問い合わせフォームから質問してください。 または、Stack Overflow でTwilioタグのついた情報から欲しいものを探してみましょう。

        
        
        

        フィードバックくださりありがとうございます!

        We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

        Sending your feedback...
        🎉 Thank you for your feedback!
        Something went wrong. Please try again.

        Thanks for your feedback!

        Refer us and get $10 in 3 simple steps!

        ステップ1

        Get link

        Get a free personal referral link here

        ステップ2:

        Give $10

        Your user signs up and upgrade using link

        ステップ3

        Get $10

        1,250 free SMSes
        OR 1,000 free voice mins
        OR 12,000 chats
        OR more