*
* May be called with optional $debug parameter to set debug right away.
*/
- function StreamSend($base_url, $user_name, $user_password, $debug = false )
+ function __construct($base_url, $user_name, $user_password, $debug = false )
{
global $streamsendFieldTypes;
$post_data .= ' <'.trim($k).'>'.trim($v).'</'.trim($k).">\n";
}
}
-
+
$post_data .= " <activate>$activate</activate>\n"
." <deliver-activation>$deliver</deliver-activation>\n"
." <deliver-welcome>$welcome</deliver-welcome>\n";
$this->debug('contactCreate() XML POST request data<br /><table border="1"><tr><td><pre>'
."\n".htmlentities($this->postData)."\n"
.'</pre></td></tr></table>');
-
-
+
+
/** This operation requires the "POST" Method */
if ($this->sendRequest('POST', 'audiences/'.STREAMSEND_AUDIENCE.'/people') === false) {
$this->debug('contactCreate() Call to sendRequest() failed.');
}
-
-?>