BigCommerce - Hosted Ecommerce Software by Interspire

Interspire Forum

 
Go Back   Interspire Forum > Interspire Email Marketer Community Forum > Customization and Integration

Reply
 
Thread Tools Display Modes
  #1  
Old 04-26-2016, 06:30 PM
apousb + apousb is offline
Interspire Customer
 
Join Date: May 2006
Location: Barcelona
Posts: 51
Default How to update multiple custom fields using Interspire API

For our last Zapier integration for Interspire we have to use many API methods that are not described on Interspire documentation.

I was surprised that despite all possible actions we were unable to modify multiple customs fields on a single API call, so we extend current "SaveSubscriberCustomField"

I have attache file, add it to "admins/functions/api/subscribers.php script. Enjoy it ;-)

--------------------------------------------------------------------------------


From Barcelona to the World - Email Marketer Specialist - We provide full Interspire maintennace - www.editandsend.com


Our Addons&Services:

- Full Interspire Upgrade Service

- SMS Integration

- Google Analytics Integration

- News Segments

- Drag&Drop editor

- Advanced Autoresponders and Triggers

- Emoticons on subject lines

- Interspire API Extension
Attached Files
File Type: php SaveSubscriberMultipleCustomField.php (795 Bytes, 3 views)
Reply With Quote
  #2  
Old 05-10-2016, 08:35 AM
Teneo + Teneo is offline
Interspire Customer
 
Join Date: Feb 2009
Location: Brugges
Posts: 630
Default

Updating multiple custom field in 1 call is easily possible.
Example script below for XML API

PHP Code:
$xml '<xmlrequest>
                <username>user</username>
                <usertoken>xmltoken</usertoken>
                <requesttype>subscribers</requesttype>
                <requestmethod>AddSubscriberToList</requestmethod>
                <details>
                <emailaddress>'
.$emailaddress.'</emailaddress>
                <mailinglist>1</mailinglist>
                <format>html</format>
                <confirmed>yes</confirmed>
                    <customfields>
                        <item>
                            <fieldid>17</fieldid>
                            <value>Yes</value>
                        </item>
                        <item>
                            <fieldid>18</fieldid>
                            <value>Yes</value>
                        </item>
                        <item>
                            <fieldid>19</fieldid>
                            <value>Customername</value>
                        </item>
                        <item>
                            <fieldid>20</fieldid>
                            <value>Customerphone</value>
                        </item>
                </customfields>
                </details>
                </xmlrequest>'

__________________

PROMO : Signup today for our SMTP Relay services and receive a free license of our MPS Addon !

Bram Van Daele

TENEO SMTP relay services
http://esp.teneo.be

(Contact me directly)
Reply With Quote
Reply

Tags
addons, zapier

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump