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 10-29-2013, 07:07 PM
testapi + testapi is offline
Interspire Customer
 
Join Date: Oct 2013
Posts: 2
Default XML API using PHP for IEM - get Newsletters HTML

Hello,

does anybody know that how to get Newsletters/email's HTML and text data using XML API?
and if possible can anybody give list of all requesttype and requestmethods for xml api and what parameters should be passed for each requesttype and method.

PDF on site for API does not have all functions.

Thanks!!
Reply With Quote
  #2  
Old 11-01-2013, 01:26 PM
testapi + testapi is offline
Interspire Customer
 
Join Date: Oct 2013
Posts: 2
Default

below is code for API using PHP classes.
path on IEM installation admin/functions/api/

if (!defined('IEM_NO_CONTROLLER')) { define('IEM_NO_CONTROLLER', true); }
require_once('../../index.php'); // path to admin/index.php
require_once (SENDSTUDIO_FUNCTION_DIRECTORY . '/sendstudio_functions.php');
$sendstudio_functions = new Sendstudio_Functions();

//stats
$statsapi = $sendstudio_functions->GetApi('Stats'); // give file name in api folder
$stats=$statsapi->GetNewsletterSummary(5);
print_r($stats);
exit;
?>

Hope this helps someone.

Thanks!!
Reply With Quote
Reply

Tags
iem xml api php

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