Permalink
Browse files

adding sample for adding contacts

  • Loading branch information...
1 parent b85e449 commit 3d03307dc90de0d444290de578cc6b3e39ad5116 @zagraves zagraves committed Oct 9, 2009
Showing with 7 additions and 0 deletions.
  1. +7 −0 README.markdown
View
@@ -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
=====

0 comments on commit 3d03307

Please sign in to comment.