Vote count: 0
So i am following a tutorial to create the XML doc for twilio like as a response, (http://ift.tt/1xx1dlD)
but rather than sending it as a response, I want to generate the file on my server to access later.
something like - localhost/files/USERNAME/FILENAME.xml
this is my current code that sends the file as a response.
  var resp = new twilio.TwimlResponse();
  resp.say({voice:'woman'}, 'Thanks for calling!');
  //Render the TwiML document using "toString"
  res.writeHead(200, {
      'Content-Type':'text/xml'
  });
  res.end(resp.toString());
asked 37 secs ago
generating dynamic Twiml response and save on Nodejs server
 
Aucun commentaire:
Enregistrer un commentaire