Version 1.6 - Updated on 03/23/2017
contacts(requestObject)
Retrieves a user's contacts stroed in the cloud
requestObject
— callbacks and parametersrequestObject.count
— items to include in a paginated response. Default is 200.requestObject.sort
— the sort order for a folder response. Syntax is: {field}+{asc or desc}
. Valid values are:requestObject.page
— the pages to be returned in the response. Default is 1.requestObject.query
— the value of a field that is stored in contacts which can be used to search for a specific contact or set of contacts. Supported fields are:requestObject.success
— Success callback function. Returns the response in the first argument.requestObject.failure
— Failure callback function. Returns the response in the first argument.NOTE: This SDK returns a maximum of 200 contacts in a successful response.
deleteContact(requestObject)
Deletes specified contact.
requestObject
— callbacks and parameters.requestObject.id
— ID of the contact that to be deletedrequestObject.success
— Success callback function. Returns the response in the first argument.requestObject.failure
— Failure callback function. Returns the response in the first argument.createContact(requestObject)
Creates a new contact.
requestObject
— callbacks and parameters.requestObject.firstname
— first name of the contactrequestObject.lastname
— last name of the contactrequestObject.middlename
— middle name of the contactrequestObject.nameprefix
— name prefix of the contactrequestObject.birthday
— birthday of the contactrequestObject.anniversary
— anniversary of the contactrequestObject.spouse
— contact's spouserequestObject.children
— contact's childrenrequestObject.orgname
— the name of the contact's organizationrequestObject.jobtitle
— job title of the contactrequestObject.profession
— contact's professionrequestObject.assistant
— contact's assistantrequestObject.gender
— contact's genderrequestObject.relationship
— the relationship with the contactrequestObject.maritalstatus
— marital status of the contactrequestObject.source
— source of the contactrequestObject.note
— note for the contactrequestObject.incaseofemergency
— set if this contact is to be called in case of emergencyrequestObject.favorite
— set if this contact is a favoriterequestObject.tel
— array of telephone objectsrequestObject.email
— array of email objectsrequestObject.address
— array of address objectsrequestObject.im
— array of IM objectsrequestObject.success
— Success callback function. Returns the response in the first argument.requestObject.failure
— Failure callback function. Returns the response in the first argument.updateContact(requestObject)
Updates a specified contact.
requestObject
— callbacks and parameters.requestObject.id
— ID of the contactrequestObject.version
— version of the contact to be updatedrequestObject.firstname
— first name of the contactrequestObject.lastname
— last name of the contactrequestObject.middlename
— middle name of the contactrequestObject.nameprefix
— name prefix of the contactrequestObject.birthday
— birthday of the contactrequestObject.anniversary
— anniversary of the contactrequestObject.spouse
— contact's spouserequestObject.children
— of the contactrequestObject.orgname
— contact's childrenrequestObject.jobtitle
— job title of the contactrequestObject.profession
— contact's professionrequestObject.assistant
— contact's assistantrequestObject.gender
— contact's genderrequestObject.relationship
— relationship with the contactrequestObject.maritalstatus
— contact's marital statusrequestObject.source
— source of the contactrequestObject.note
— note for the contactrequestObject.incaseofemergency
— set if this contact is to be called in case of emergencyrequestObject.favorite
— set if this contact is a favoriterequestObject.tel
— array of telephone objectsrequestObject.email
— array of email objectsrequestObject.address
— array of address objectsrequestObject.im
— array of im objectsrequestObject.success
— Success callback function. Returns the response in the first argument.requestObject.failure
— Failure callback function. Returns the response in the first argument.Copyright © 2015-2017, Verizon and/or its Licensors. All rights reserved.