From b23165b0bf0796681265d54c02fa7eeaf6e6d300 Mon Sep 17 00:00:00 2001 From: Harry Moreno Date: Wed, 23 Nov 2016 13:15:20 -0500 Subject: [PATCH] Document job and company fields * fixes #113 --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 82405925..677cf85e 100644 --- a/README.md +++ b/README.md @@ -45,13 +45,15 @@ Contacts.getAll((err, contacts) => { ```js { recordID: 1, - familyName: "Jung", - givenName: "Carl", - middleName: "", + company: "", emailAddresses: [{ label: "work", email: "carl-jung@example.com", }], + familyName: "Jung", + givenName: "Carl", + jobTitle: "", + middleName: "", phoneNumbers: [{ label: "mobile", number: "(555) 555-5555", @@ -66,12 +68,12 @@ Contacts.getAll((err, contacts) => { Currently all fields from the contact record except for thumbnailPath are supported for writing ```js var newPerson = { - familyName: "Nietzsche", - givenName: "Friedrich", emailAddresses: [{ label: "work", email: "mrniet@example.com", }], + familyName: "Nietzsche", + givenName: "Friedrich", } Contacts.addContact(newPerson, (err) => { /*...*/ })