Skip to content

Latest commit

 

History

History
37 lines (31 loc) · 588 Bytes

File metadata and controls

37 lines (31 loc) · 588 Bytes
description Automatically generated file. DO NOT MODIFY
const options = {
	authProvider,
};

const client = Client.init(options);

const message = {
    subject: 'Party planning',
    toRecipients: [
      {
          emailAddress: {
              name: 'Samantha Booth',
              address: 'samanthab@contoso.com'
          }
      }
    ],
    mentions: [
      {
        mentioned: {
          name: 'Dana Swope',
          address: 'danas@contoso.com'
         }
      }
    ]
};

await client.api('/me/messages')
	.version('beta')
	.post(message);