Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

Commit

Permalink
adding sample for adding contacts
Browse files Browse the repository at this point in the history
  • Loading branch information
zagraves committed Oct 9, 2009
1 parent b85e449 commit 3d03307
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.markdown
Expand Up @@ -168,6 +168,13 @@ Make sure to update the OAuth credentials in each bundled example:
var_dump($user->setSmallView($content));


## Adding a Contact:

$contact_fields[] = array('type' => 'email', 'value' => 'me@domain.com');
$contact_fields[] = array('type' => 'name', 'value' => array('givenName'=> 'John', 'familyName' => 'Doe'));
$contact = array('fields' => $contact_fields);

var_dump($user->addContact($contact));

Tests
=====
Expand Down

0 comments on commit 3d03307

Please sign in to comment.