20 return $this->
get(
"account/placeholders");
32 $xml =
new SimpleXMLElement(
"<?xml version=\"1.0\"?><account_placeholders></account_placeholders>");
34 if (is_array($accountPlaceholders)) {
35 foreach ($accountPlaceholders as $accountPlaceholder) {
36 $this->sxml_append($xml, $accountPlaceholder->toXML());
39 $this->sxml_append($xml, $accountPlaceholders->toXML());
42 return $this->
post(
"account/placeholders", $xml->asXML());
54 $xml =
new SimpleXMLElement(
"<?xml version=\"1.0\"?><account_placeholders></account_placeholders>");
56 if (is_array($accountPlaceholders)) {
57 foreach ($accountPlaceholders as $accountPlaceholder) {
58 $this->sxml_append($xml, $accountPlaceholder->toXML());
61 $this->sxml_append($xml, $accountPlaceholders->toXML());
64 return $this->
put(
"account/placeholders", $xml->asXML());
77 $queryParameters = array(
81 return $this->
delete(
"account/placeholders", $queryParameters);
85 function sxml_append(SimpleXMLElement $to, SimpleXMLElement $from)
87 $toDom = dom_import_simplexml($to);
88 $fromDom = dom_import_simplexml($from);
89 $toDom->appendChild($toDom->ownerDocument->importNode($fromDom,
true));
updateAccountPlaceholders($accountPlaceholders)
deleteAccountPlaceholder($name)
post($resourcePath, $payload="", $queryParameters=array(), $mimeType= 'application/vnd.maileon.api+xml', $deserializationType=null, $contentType=null, $contentLength=null)
setAccountPlaceholders($accountPlaceholders)
put($resourcePath, $payload="", $queryParameters=array(), $mimeType= 'application/vnd.maileon.api+xml', $deserializationType=null)