Skip to content

Latest commit

 

History

History
41 lines (35 loc) · 638 Bytes

File metadata and controls

41 lines (35 loc) · 638 Bytes
description Automatically generated file. DO NOT MODIFY
const options = {
	authProvider,
};

const client = Client.init(options);

const contact = {
  givenName: 'Pavel',
  surname: 'Bansky',
  emailAddresses: [
    {
      address: 'pavelb@contoso.com',
      name: 'Pavel Bansky',
      type: 'personal'
    },
    {
      address: 'pavelb@contoso.com',
      name: 'Pavel Bansky',
      type: 'other',
      otherLabel: 'Volunteer work'
    }
  ],
  phones: [
    {
      number: '+1 732 555 0102',
      type: 'business'
    }
  ]
};

await client.api('/me/contacts')
	.version('beta')
	.post(contact);