$client->getContacts($offset, $limit, $sort, $unsubscribed, $listName); # # 9. GET TAGS FROM CONTACT # $tags = $client->getTags($emailOrId, $listName); # # 10. CREATE NEW CONTACT IN LIST # $contact = new \stdClass(); $contact->email = '*****@*****.**'; $newContact = $client->postContact($contact, $listName); # # 11. CREATE MULTIPLE CONTACTS AT ONCE # $contact2 = new \stdClass(); $contact2->email = '*****@*****.**'; $contact3 = new \stdClass(); $contact3->email = '*****@*****.**'; $contacts = array($contact2, $contact3); $client->postContacts($contacts, $listName); # # 12. ADD TAGS TO CONTACT # //tags may be both string, or array of strings $tags = array('Tag 1', 'Tag 2'); $client->postTags($emailOrId, $tags, $listName); # # 13. UPDATE CONTACT # $contact->firstName = 'newfirstname'; $client->putContact($emailOrId, $contact, $listName);