Created
May 22, 2017 07:28
-
-
Save zengfenfei/1dc5f66ca1fd44f5e4cbc78ba613f236 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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