const newEvent = subject summary start start end end location displayName title ; const options = url httpsgraphmicroso
convert request to axios:
const axios = require('axios');
const newEvent = { subject: summary, start: start, end: end, location: { displayName: title } };
const options = { url: 'https://graph.microsoft.com/v1.0/me/events', headers: { Authorization: 'Bearer ' + outlook_Token }, data: newEvent };
axios.post(options.url, options.data, { headers: options.headers }) .then(response => { console.log('Event created successfully:', response.data.id); dattss = response.data.id data.push(response.data.id) }) .catch(error => console.error(error));
原文地址: https://www.cveoy.top/t/topic/JwT 著作权归作者所有。请勿转载和采集!