Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

adding sample for adding contacts

  • Loading branch information...
commit 3d03307dc90de0d444290de578cc6b3e39ad5116 1 parent b85e449
Zach Graves zachgraves authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 README.markdown
7 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
=====
Please sign in to comment.
Something went wrong with that request. Please try again.