What I’m using in the rpc works with 8 parameters but you have 9…what’s that it starts with “array(9) {
[0]=>” ? Isn’t that supposed to be the key? I realize you would have removed it but shouldn’t that be a string?
I’m using the SDK that passes the key after this step. This is the data I’m structuring before I pass it to the call. So, the missing API key isn’t the problem here. But thank you!
I don’t see any errors in the logs, but this part of your error is strange Infusionsoft\Infusionsoft->request(‘APIEmailService…’, Array, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) Why does it think the values are null is my question? What is you client_id? You can PM that if you want. I will run a trace in Mashery and see what the actual values are that we see.
Make sure that the contact’s are opted into receiving emails from Infusionsoft before sending the test as a contact that isn’t opted in will cause a failure to be returned.
Thanks @JonSmith. I actually am doing it they way you suggested. I threw it on the screen as an array so you could see what I was passing. Not working. I’m wondering if it’s having a problem with another plugin.
And here’s what is ended up on the page with debugging on:
Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /var/www/html/wp-includes/functions.php on line 4139
Notice: Constant WP_MEMORY_LIMIT already defined in /var/www/html/wp-config.php on line 91
Notice: Undefined variable: location in /var/www/html/wp-content/plugins/webrtc-aws-upload/send-video.php on line 7
Notice: Undefined variable: status in /var/www/html/wp-content/plugins/webrtc-aws-upload/send-video.php on line 7
nowarray(3) { ["Email"]=> string(21) "tyler.garns@gmail.com" ["FirstName"]=> string(5) "Tyler" ["LastName"]=> string(5) "Garns" }
Warning: Missing argument 3 for Infusionsoft\Api\APIEmailService::sendEmail(), called in /var/www/html/wp-content/plugins/webrtc-aws-upload/send-video.php on line 130 and defined in /var/www/html/vendor/infusionsoft/php-sdk/src/Infusionsoft/Api/APIEmailService.php on line 99
Warning: Missing argument 4 for Infusionsoft\Api\APIEmailService::sendEmail(), called in /var/www/html/wp-content/plugins/webrtc-aws-upload/send-video.php on line 130 and defined in /var/www/html/vendor/infusionsoft/php-sdk/src/Infusionsoft/Api/APIEmailService.php on line 99
Warning: Missing argument 5 for Infusionsoft\Api\APIEmailService::sendEmail(), called in /var/www/html/wp-content/plugins/webrtc-aws-upload/send-video.php on line 130 and defined in /var/www/html/vendor/infusionsoft/php-sdk/src/Infusionsoft/Api/APIEmailService.php on line 99
Warning: Missing argument 6 for Infusionsoft\Api\APIEmailService::sendEmail(), called in /var/www/html/wp-content/plugins/webrtc-aws-upload/send-video.php on line 130 and defined in /var/www/html/vendor/infusionsoft/php-sdk/src/Infusionsoft/Api/APIEmailService.php on line 99
Warning: Missing argument 7 for Infusionsoft\Api\APIEmailService::sendEmail(), called in /var/www/html/wp-content/plugins/webrtc-aws-upload/send-video.php on line 130 and defined in /var/www/html/vendor/infusionsoft/php-sdk/src/Infusionsoft/Api/APIEmailService.php on line 99
Warning: Missing argument 8 for Infusionsoft\Api\APIEmailService::sendEmail(), called in /var/www/html/wp-content/plugins/webrtc-aws-upload/send-video.php on line 130 and defined in /var/www/html/vendor/infusionsoft/php-sdk/src/Infusionsoft/Api/APIEmailService.php on line 99
Warning: Missing argument 9 for Infusionsoft\Api\APIEmailService::sendEmail(), called in /var/www/html/wp-content/plugins/webrtc-aws-upload/send-video.php on line 130 and defined in /var/www/html/vendor/infusionsoft/php-sdk/src/Infusionsoft/Api/APIEmailService.php on line 99
Warning: Missing argument 10 for Infusionsoft\Api\APIEmailService::sendEmail(), called in /var/www/html/wp-content/plugins/webrtc-aws-upload/send-video.php on line 130 and defined in /var/www/html/vendor/infusionsoft/php-sdk/src/Infusionsoft/Api/APIEmailService.php on line 99
Notice: Undefined variable: toAddress in /var/www/html/vendor/infusionsoft/php-sdk/src/Infusionsoft/Api/APIEmailService.php on line 101
Notice: Undefined variable: ccAddress in /var/www/html/vendor/infusionsoft/php-sdk/src/Infusionsoft/Api/APIEmailService.php on line 101
Notice: Undefined variable: bccAddress in /var/www/html/vendor/infusionsoft/php-sdk/src/Infusionsoft/Api/APIEmailService.php on line 101
Notice: Undefined variable: contentType in /var/www/html/vendor/infusionsoft/php-sdk/src/Infusionsoft/Api/APIEmailService.php on line 101
Notice: Undefined variable: subject in /var/www/html/vendor/infusionsoft/php-sdk/src/Infusionsoft/Api/APIEmailService.php on line 101
Notice: Undefined variable: htmlBody in /var/www/html/vendor/infusionsoft/php-sdk/src/Infusionsoft/Api/APIEmailService.php on line 101
Notice: Undefined variable: textBody in /var/www/html/vendor/infusionsoft/php-sdk/src/Infusionsoft/Api/APIEmailService.php on line 101
Notice: Undefined variable: templateId in /var/www/html/vendor/infusionsoft/php-sdk/src/Infusionsoft/Api/APIEmailService.php on line 101
@bradb do you think there’s any chance I could connect with someone on Tuesday morning of next week? I’ll be at Infusionsoft HQ all day before PCON. Thanks.
Hey @Tyler_Garns is the simplified version of the sendEmail call something that you have implemented? I would like to see the simplified function itself. For example (only for demo purposes) I would expect to see a function where the elements from $customArrayOfArgs are split and evaluated into their values below.
function sendEmail($customArrayOfArgs) {
//Do the iterating of $customArrayOfArgs and ensure they end up in the format below
return $infusionsoft->emails()->sendEmail(array(17,143829);,"Test@test.com","~Contact.Email~", "","","Text","Test Subject","tester tester","This is the body", 4579);
}
If you still need some eyes on this, please feel free to DM me.