Twilio SDK App Auth -


is possible authenticate twilio using app sid , secret when using sdk?

or have use account sid , key when using sdk?

we want use:

api key sid: xxxxxxxxxxxxxxxxxxxx  api key secret: xxxxxxxxxxxxxxxxxxxx 

but seems have use:

account sid: xxxxxxxxxxxxxxxxxxxx  account auth token: xxxxxxxxxxxxxxxxxxxx 

the docs api key can used rest api - can work sdk access well?

we using sdk node

thanks!

twilio developer evangelist here.

you can absolutely use api sid , secret authenticate twilio. the node.js twilio package this:

const twilio = require('twilio');  const apikey = process.env.twilio_api_key; const apisecret = process.env.twilio_api_secret; const accountsid = process.env.twilio_account_sid;  const client = twilio(apikey, apisecret, { accountsid: accountsid }); 

you still need add account sid argument, because resources namespaced behind account sid, how initialise client in case.

let me know if helps @ all.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -