# Class Mailchimp_Vip

Located at Mailchimp/Vip.php

Methods summary
`public` | # `__construct( `Mailchimp` $master )`
`public array` | # `activity( )` Retrieve all Activity (opens/clicks) for VIPs over the past 10 days Retrieve all Activity (opens/clicks) for VIPs over the past 10 days #### Returns `array` structs for each activity recorded. - action string The action taken - either "open" or "click" - timestamp string The datetime the action occurred in GMT - url string IF the action is a click, the url that was clicked - unique_id string The campaign_id of the List the Member appears on - title string The campaign title - list_name string The name of the List the Member appears on - list_id string The id of the List the Member appears on - email string The email address of the member - fname string IF a FNAME merge field exists on the list, that value for the member - lname string IF a LNAME merge field exists on the list, that value for the member - member_rating int the rating of the subscriber. This will be 1 - 5 as described here - member_since string the datetime the member was added and/or confirmed - geo associative_array the geographic information if we have it. including: - latitude string the latitude - longitude string the longitude - gmtoff string GMT offset - dstoff string GMT offset during daylight savings (if DST not observered, will be same as gmtoff - timezone string the timezone we've place them in - cc string 2 digit ISO-3166 country code - region string generally state, province, or similar
`public associative_array` | # `add( string $id, array $emails )` Add VIPs (previously called Golden Monkeys) Add VIPs (previously called Golden Monkeys) #### Parameters $id `string` $id $emails `array` $emails - email string an email address - for new subscribers obviously this should be used - euid string the unique id for an email address (not list related) - the email "id" returned from listMemberInfo, Webhooks, Campaigns, etc. - leid string the list email id (previously called web_id) for a list-member-info type call. this doesn't change when the email address changes #### Returns `associative_array` of data and success/error counts - success_count int the number of successful adds - error_count int the number of unsuccessful adds - errors array array of error structs including: - email associative_array whatever was passed in the email parameter - email string the email address added - euid string the email unique id - leid string the list member's truly unique id - code string the error code - error string the error message - data array array of structs for each member added - email associative_array whatever was passed in the email parameter - email string the email address added - euid string the email unique id - leid string the list member's truly unique id
`public associative_array` | # `del( string $id, array $emails )` Remove VIPs - this does not affect list membership Remove VIPs - this does not affect list membership #### Parameters $id `string` $id $emails `array` $emails - email string an email address - for new subscribers obviously this should be used - euid string the unique id for an email address (not list related) - the email "id" returned from listMemberInfo, Webhooks, Campaigns, etc. - leid string the list email id (previously called web_id) for a list-member-info type call. this doesn't change when the email address changes #### Returns `associative_array` of data and success/error counts - success_count int the number of successful deletions - error_count int the number of unsuccessful deletions - errors array array of error structs including: - email associative_array whatever was passed in the email parameter - email string the email address - euid string the email unique id - leid string the list member's truly unique id - code string the error code - msg string the error message - data array array of structs for each member deleted - email associative_array whatever was passed in the email parameter - email string the email address - euid string the email unique id - leid string the list member's truly unique id
`public array` | # `members( )` Retrieve all Golden Monkey(s) for an account Retrieve all Golden Monkey(s) for an account #### Returns `array` structs for each Golden Monkey, including: - list_id string The id of the List the Member appears on - list_name string The name of the List the Member appears on - email string The email address of the member - fname string IF a FNAME merge field exists on the list, that value for the member - lname string IF a LNAME merge field exists on the list, that value for the member - member_rating int the rating of the subscriber. This will be 1 - 5 as described here - member_since string the datetime the member was added and/or confirmed