Closed bhaanu77 closed 7 years ago
@Spurrya if you happen to complete this today, please inform @kevinkid so that he can start working on https://github.com/Spurrya/Calfit/issues/23
Really late reply, but we finished this task :)
Am hoping to make updates on the project guys
NOTE: below is example code from https://github.com/Spurrya/Calfit/blob/master/api/routes/calendar.js
router.route('/calendar') .post(function(req, res) { // Get an access token for the app. auth.getAccessToken().then(function (token) {
// Check if the current user from whom accept is received is the same as the
graph.getUsers(token) .then(function (users) { // Create an event on each user's calendar. graph.createEvent(token, users); }, function (error) { console.error('>>> Error getting users: ' + error); }) }, function (error) { console.error('>>> Error getting access token: ' + error); } ); });