I am trying to Opt in for a user based on email address, but getting error.
global $infusionsoft; $infusionsoft->refreshAccessToken(); //opt in user $billing = $order->get_address( $type = 'billing' ); $email = $billing['email']; error_log('email is '.$email); $optIn = $infusionsoft->emails('optIn', $email, 'I have Permission box was checked');
//// Error Message
[errors] => Array
[invalid-request] => Array
 => No such handler: EmailsService.optIn
) [error_data] => Array ( )