News for hackers. Stuff that matters.
Re:Plivo (YC S12) Launches the first SDK that connects WebRT... by stanleydrew on Tuesday January 15, 2013 @12:10PM (#5061302)
From the SDK example it looks like I am supposed to put my Plivo credentials in plain text in JavaScript. Am I missing something? Because that seems like a really terrible idea.
Re:Plivo (YC S12) Launches the first SDK that connects WebRT... by tsudot on Tuesday January 15, 2013 @12:24PM (#5061404)
The credentials can be generated dynamically from any server side language like php, python or ruby and sent to the js. Once the call is done or after a certain time these credential can be deleted using server side APIs too.

Edit:

Creating an Endpoint - http://plivo.com/docs/api/endpoint/#create

Deleting an Endpoint - http://plivo.com/docs/api/endpoint/#delete

Re:Plivo (YC S12) Launches the first SDK that connects WebRT... by stanleydrew on Tuesday January 15, 2013 @12:40PM (#5061516)
I see. So I can create an endpoint on the server when the page is generated, give it a random password, and drop that into the page. And then to expire it I would have some background process that deletes endpoints n minutes after they are created or something?