Add Subscriber API

SUBSCRIBER ADD

 

Description

Add a subscriber into the system, and optionally add them to a list.  If they are currently in the system, it will update their information. 

Returns

Subscriber ID or Error

 

XML Tags

Optional:
<unsubscribe> value of 0 or 1 to global unsubscribe
<listunsubscribe> value of 0 or 1 to unsubscribe to <listid>
<triggeredid> id of triggered email to send to subscriber

Other fields can be a maximum of 100 characters

 

CALLING SAMPLE

<criticalimpact>
<login>
<username>xxxxxxx</username>
<password>xxxxxxxx</password>
</login>
<command>
<action>subscriberadd</action>
<listid>13</listid>
<email>api@apitest.com</email>
<firstname>API</firstname>
<lastname>Test</lastname>
<unsubscribe>0</unsubscribe>
<listunsubscribe>0</listunsubscribe>
<triggeredid>0</triggeredid>
<custom1></custom1>
<custom2></custom2>
<custom3></custom3>
<custom4></custom4>
<custom5></custom5>
<custom6></custom6>
<custom7></custom7>
<custom8></custom8>
<custom9></custom9>
<custom10></custom10>
</command>
</criticalimpact>

 

RETURN SAMPLE (SUCCESSFUL)

<criticalimpact>
<emailid>1739418</emailid>
<action>update</action>
</criticalimpact>

 

RETURN SAMPLE (FAILURE)

<criticalimpact>
        <error>
        <description>Invalid email format</description>
        <id>0</id>
        </error>
</criticalimpact>