Open JERINJACOBCHERIAN opened 6 years ago
This is my code
var twilio = require('twilio'); const express = require('express');
const app = express(); app.listen(8000, () => { console.log('Server started!'); });
app.route('/api/cats/:name').get((req, res) => { /const requestedCatName = req.params['name']; res.send({ name: requestedCatName });/ const accountSid = 'AC02f0596174c674c015bc697a14f2e41d'; const authToken = '8340f418e2da08ec9edcc22db9da5e51'; const client = require('twilio')(accountSid, authToken); client.recordings.each({ dateCreated: new Date(Date.UTC(2018, 8, 8, 0, 0, 0)) }, recordings => res.send({ name: recordings.sid }) ); });
This is my code
var twilio = require('twilio'); const express = require('express');
const app = express(); app.listen(8000, () => { console.log('Server started!'); });
app.route('/api/cats/:name').get((req, res) => { /const requestedCatName = req.params['name']; res.send({ name: requestedCatName });/ const accountSid = 'AC02f0596174c674c015bc697a14f2e41d'; const authToken = '8340f418e2da08ec9edcc22db9da5e51'; const client = require('twilio')(accountSid, authToken); client.recordings.each({ dateCreated: new Date(Date.UTC(2018, 8, 8, 0, 0, 0)) }, recordings => res.send({ name: recordings.sid }) ); });