newsletters.GetCampaignsSent.


It takes two required parameters that define the interval during which campaigns are to be returned.  The interval is defined by intervalcount (e.g. 30) and intervalunits (e.g. days).  Intervalcount must be a positive integer.  Intervalunits may be any of seconds, minutes, hours, days, months, quarters or years (singular or plural).


For each campaign found, the following data are returned:

newsletterid — campaign id

name — campaign name

subject — campaign subject

ownername — campaign owner name

lastupdated — the date/time when the campaign was last updated

statid — the stat id from when the campaign was sent (used to pull statistics)

starttime — the date/time when the send began

finishtime — the date/time when the send completed

sentto — the total count of contacts to whom the campaign was sent


Sample Request XML:


<xmlrequest>

      <username>carlos-sqf</username>

      <usertoken>carlos-sqf-token</usertoken>

      <requesttype>newsletters</requesttype>

      <requestmethod>GetCampaignsSent</requestmethod>

      <details>

            <intervalcount>2</intervalcount>

            <intervalunits>year</intervalunits>

  </details>

</xmlrequest>


Sample Response XML:

<?xml version="1.0" encoding="UTF-8" ?>

<response>

        <status>SUCCESS</status>

        <data>

                <intervalcount>2</intervalcount>

                <intervalunits>year</intervalunits>

                <campaigns>

                        <item>

                                <newsletterid>116</newsletterid>

                                <name>Carlos Test 2</name>

                                <subject>Carlos Test 2</subject>

                                <ownername>Carlos-sqf</ownername>

                                <lastupdated>1969-12-31 16:00:00</lastupdated>

                                <statid>526</statid>

                                <starttime>2017-05-22 15:25:01</starttime>

                                <finishtime>2017-05-22 15:25:03</finishtime>

                                <sentto>2</sentto>

                        </item>

                        <item>

                                <newsletterid>203</newsletterid>

                                <name>abc1 - Carlos</name>

                                <subject>ABC-1</subject>

                                <ownername>Carlos-sqf</ownername>

                                <lastupdated>2016-09-23 12:32:31</lastupdated>

                                <statid>525</statid>

                                <starttime>2017-05-09 22:50:01</starttime>

                                <finishtime>2017-05-09 22:50:05</finishtime>

                                <sentto>1</sentto>

                        </item>

                        <item>

                                <newsletterid>203</newsletterid>

                                <name>abc1 - Carlos</name>

                                <subject>ABC-1</subject>

                                <ownername>Carlos-sqf</ownername>

                                <lastupdated>2016-09-23 12:32:31</lastupdated>

                                <statid>519</statid>

                                <starttime>2017-05-03 22:16:01</starttime>

                                <finishtime>2017-05-03 22:16:04</finishtime>

                                <sentto>1</sentto>

                        </item>

                </campaigns>

        </data>

        <version>3.0</version>

        <elapsed>0.02</elapsed>

</response