Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 366 Bytes

File metadata and controls

22 lines (16 loc) · 366 Bytes
description Automatically generated file. DO NOT MODIFY
const options = {
	authProvider,
};

const client = Client.init(options);

const attachment = {
  '@odata.type': '#microsoft.graph.fileAttachment',
  name: 'smile',
  contentBytes: 'R0lGODdhEAYEAA7'
};

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