Hello,
Is it possible to send email to users? I mean like after I created new contact I want send email to this contact using api.
Maybe you can provide some examples
Thank you!
]]>PHP Fatal error: Uncaught Error: [] operator not supported for strings in /home/longevitystaging/public_html/frogbox/wp-content/plugins/infusionsoft-sdk/infusionsoft-sdk.php:50
Stack trace:
#0 /home/longevitystaging/public_html/frogbox/wp-includes/class-wp-hook.php(288): infusionsoft_sdk_plugin_action_links(‘<‘, ‘infusionsoft-sd…’)
#1 /home/longevitystaging/public_html/frogbox/wp-includes/plugin.php(208): WP_Hook->apply_filters(‘<‘, Array)
#2 /home/longevitystaging/public_html/frogbox/wp-admin/includes/class-wp-plugins-list-table.php(741): apply_filters(‘plugin_action_l…’, Array, ‘infusionsoft-sd…’, Array, ‘all’)
#3 /home/longevitystaging/public_html/frogbox/wp-admin/includes/class-wp-plugins-list-table.php(574): WP_Plugins_List_Table->single_row(Array)
#4 /home/longevitystaging/public_html/frogbox/wp-admin/includes/class-wp-list-table.php(1244): WP_Plugins_List_Table->display_rows()
#5 /home/longevitystaging/public_html/frogbox/wp-admin/includes/class-wp-list-table.php(1175): WP_List_Table->display_rows_or_placeholder( in /home/longevitystaging/public_html/frogbox/wp-content/plugins/i$
hello,
i can see that from many months or years you are not active on this plugin but if you get my message than please reply.i want add credit card method by api just like we add contact to infusionsoft.
thanks
I’m trying to use this plugin with some custom code and receiving the error
"Uncaught Failed to parse XML-RPC request: Failed to parse integer value: 1234567890123456"
while trying to create a credit card. Has anyone else experienced this? I’m using the example code from the SDK github
$creditCard = new Infusionsoft_CreditCard();
$creditCard->ContactId = $contact->Id;
$creditCard->BillName = $contact->FirstName . ' ' . $contact->LastName;
$creditCard->FirstName = $contact->FirstName;
$creditCard->LastName = $contact->LastName;
$creditCard->CardNumber = 1234567890123456;
$creditCard->CVV2 = 197;
$creditCard->CardType = 'Visa';
$creditCard->Status = 3; //0: Unknown, 1: Invalid, 2: Deleted, 3: Valid/Good, 4: Inactive
$creditCard->save();
]]>
Hi
I am submitting contact info via an Ajax call, when I add the line for customFields the config as stated in your example:
Infusionsoft_Contact::addCustomField(‘_my_custom_field’);
I get an error: Strict Standards: Non-static method Infusionsoft_Generated_Contact::addCustomField() should not be called statically in /wp-content/plugins/infusionsoft-sdk/Infusionsoft/config.php on line 14
How can I set a customfield for a contact?
Thanks
]]>Hi
This was not answered before – how do I check for duplicate contacts before saving a new contact?
Is it possible to have acode example? We have email addresses as unique, so just need to check that but I am not sure what to do.
// Save the contact to Infusionsoft
$contact->save();
Thanks
]]>Hello,
How can I use the plugin with my own code? I have a code that user can login to my site through Facebook. The users who logged in thru Facebook should be automatically added to infusionsoft contacts. Can I do this? Do you have any tips?
Any help would be greatly appreciated and quick answers too. ??
Thanks!
]]>I noticed in your demo video you say we don’t have to worry about adding a new contact or updating an existing because the plugin already handles that,
But when I submit my contact form, it is creating a new contact both times, when the information I enter is identical. I’m not sure how the dup check is failing? Does it dup check ALL fields? Or just email and phone?
Here is the code I am using:
$contact = new Infusionsoft_Contact();
$contact->FirstName = $_POST['firstname'];
$contact->LastName = $_POST['lastname'];
$contact->Email = $_POST['email'];
$contact->Phone1 = $_POST['phone'];
$contact->OwnerID = $infusionsoft_id;
$contact->ContactNotes = $_POST['message'];
$contact->LeadSourceId = 30;
$contact->_AppointmentLocation = $_POST['prp_address'];
//Save the contact to Infusionsoft
$newContactID = $contact->save();
In my test, every POST field was identical, and the $infusionsoft_id variable was the same as well, but it still created 2 contacts, with identical information.
Any ideas?
Thanks,
Matt
Whenever I activate this plugin, WordPress’s Product Page is not opening from WordPress Dashboard, it opens a blank white page, and when I deactivate it, it opens Product page with no errors … Help required urgently …
Thanks in Advance ??
Hey man,
I’m working my way through your entire plugin it seems.
I’m trying to add tags to users (or assignGroups if you will..)
I noticed in the Contact object (https://github.com/novaksolutions/infusionsoft-php-sdk/blob/master/Infusionsoft/Generated/Contact.php) you have a Groups field.. are we meant to use that to add groups when creating a contact? I tried adding a comma-seperated list of tag ID’s ( ex: ‘1,2,3’ ) but that did not work.
I then found the ContactGroupAssign object (https://github.com/novaksolutions/infusionsoft-php-sdk/blob/master/Infusionsoft/Generated/ContactGroupAssign.php) but when I use this code:
$assign = new Infusionsoft_ContactGroupAssign();
$assign->ContactId = $newContactID;
$assign->GroupId = $tagID;
$assign->save();
I get this mysterious error:
Fatal error: Uncaught Invalid Field Name: Id thrown in /home/content/r/e/m/remaxbarrie/html/sub-host/zahnd/wp-content/plugins/infusionsoft-sdk/Infusionsoft/Generated/Base.php on line 100
So it looks like there is a mis-match in the allowed field names and the required field names? Or am I doing something wrong here? I can’t seem to find a working example of how to add tag(s) to a contact.
Thanks,
Matt
Hey,
Quick question: Where do we put our config.php file to add custom fields to the plugin like your page here suggests: https://github.com/novaksolutions/infusionsoft-php-sdk/wiki/Examples
I am assuming I wouldn’t need to re-input my app hostname and api key since they are supplied through the admin settings page?
Thanks,
Matt
Hey,
Quick question: Where do we put our config.php file to add custom fields to the plugin like your page here suggests: https://github.com/novaksolutions/infusionsoft-php-sdk/wiki/Examples
I am assuming I wouldn’t need to re-input my app hostname and api key since they are supplied through the admin settings page?
Thanks,
Matt
So I’m trying to get the basic example to work but it’s not, and I don’t know where to debug this.
The code is almost 100% similar to the example.php you have.
require_once(dirname(__FILE__) . '/../../plugins/infusionsoft/infusionsoft.php'); //this is the relative path to the file created via the infusionsoft plugin
$contact = new Infusionsoft_Contact();
$contact->FirstName = $_POST['firstname'];
$contact->LastName = $_POST['lasstname'];
$contact->Email = $_POST['email'];
$contact->Phone1 = $_POST['phone'];
$contact->StreetAddress1 = $_POST['street'];
$contact->City = $_POST['city'];
$contact->OwnerID = $agentInfusionsoftID;
$contact->ContactNotes = $_POST['message'];
//Save the contact to Infusionsoft
$result = $contact->save();
When this code runs, I get no errors, no contact added to infusionsoft, and $result == null when I dump it out.
Are there internal error logs for this plugin where I can see why this is failing, or figure out a way to debug this?
Thanks,
Matt
I tried installing this plugin and had this issue
Warning: require_once(__DIR__/xmlrpc.inc) [function.require-once]: failed to open stream: No such file or directory in /home/adrianda/public_html/wp-content/plugins/infusionsoft-sdk/Infusionsoft/infusionsoft.php on line 12
Fatal error: require_once() [function.require]: Failed opening required '__DIR__/xmlrpc.inc' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/adrianda/public_html/wp-content/plugins/infusionsoft-sdk/Infusionsoft/infusionsoft.php on line 12
How can I resolve this issue.
]]>