Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- axios.all([
- axios.post('https://www.googleapis.com/calendar/v3/calendars/xxx/events/watch',
- {
- type: "web_hook",
- address: "https:/rguc-calendars.firebaseapp.com/notifications"
- },
- {
- "Content-Type": "application/json;charset=UTF-8",
- Authorization: tokens.token_type + " " + tokens.access_token
- }
- ),
- axios.post('https://www.googleapis.com/calendar/v3/calendars/xxx/events/watch',
- {
- type: "web_hook",
- address: "https:/rguc-calendars.firebaseapp.com/notifications"
- },
- {
- "Content-Type": "application/json;charset=UTF-8",
- Authorization: tokens.token_type + " " + tokens.access_token
- }
- ),
- axios.post('https://www.googleapis.com/calendar/v3/calendars/xxx/events/watch',
- {
- type: "web_hook",
- address: "https:/rguc-calendars.firebaseapp.com/notifications"
- },
- {
- "Content-Type": "application/json;charset=UTF-8",
- Authorization: tokens.token_type + " " + tokens.access_token
- })
- axios.post('https://www.googleapis.com/calendar/v3/calendars/xxxm/events/watch',
- {
- type: "web_hook",
- address: "https:/rguc-calendars.firebaseapp.com/notifications"
- },
- {
- "Content-Type": "application/json;charset=UTF-8",
- Authorization: tokens.token_type + " " + tokens.access_token
- })
- ....etc
- ])
- .then(axios.spread(function (acct, perms) {
- console.log("subscribed to all event watches")
- }));
Add Comment
Please, Sign In to add comment