| 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);