Skip to content

Latest commit

 

History

History
38 lines (32 loc) · 742 Bytes

File metadata and controls

38 lines (32 loc) · 742 Bytes
description Automatically generated file. DO NOT MODIFY
const options = {
	authProvider,
};

const client = Client.init(options);

const attachment = {
  '@odata.type': '#microsoft.graph.itemAttachment',
  name: 'Holiday event',
  item: {
    '@odata.type': 'microsoft.graph.event',
    subject: 'Discuss gifts for children',
    body: {
      contentType: 'HTML',
      content: 'Let\'s look for funding!'
    },
    start: {
      dateTime: '2016-12-02T18:00:00',
      timeZone: 'Pacific Standard Time'
    },
    end: {
      dateTime: '2016-12-02T19:00:00',
      timeZone: 'Pacific Standard Time'
    }
  }
};

await client.api('/me/messages/AAMkpsDRVK/attachments')
	.version('beta')
	.post(attachment);