Skip to content

Instantly share code, notes, and snippets.

@zengfenfei
Created May 22, 2017 07:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zengfenfei/1dc5f66ca1fd44f5e4cbc78ba613f236 to your computer and use it in GitHub Desktop.
Save zengfenfei/1dc5f66ca1fd44f5e4cbc78ba613f236 to your computer and use it in GitHub Desktop.
let dateFrom = new Date(Date.now() - 24 * 60 * 60 * 1000); // A day ago
// Builds the url: '/account/~/extension/~/call-log/', and make a GET request to it
rc.account().extension().callLog().list({ dateFrom: dateFrom.toISOString() }).then(results => {
console.log("Recent call logs", results.records);
}, e => {
console.error("Fail to get call logs", e);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment