Skip to content

Commit

Permalink
Document job and company fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Moreno committed Nov 23, 2016
1 parent 862f057 commit b23165b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,15 @@ Contacts.getAll((err, contacts) => {
```js
{
recordID: 1,
familyName: "Jung",
givenName: "Carl",
middleName: "",
company: "",
emailAddresses: [{
label: "work",
email: "[email protected]",
}],
familyName: "Jung",
givenName: "Carl",
jobTitle: "",
middleName: "",
phoneNumbers: [{
label: "mobile",
number: "(555) 555-5555",
Expand All @@ -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: "[email protected]",
}],
familyName: "Nietzsche",
givenName: "Friedrich",
}

Contacts.addContact(newPerson, (err) => { /*...*/ })
Expand Down

0 comments on commit b23165b

Please sign in to comment.