This documentation has moved

XML API documentation can now be found at developer.openprovider.com. This page will remain available until September 2026, but will no longer be updated.

The XML API itself is not changing. Your existing integration continues to work.

API Module SpamExperts retrieveDomainSeRequest

From Openprovider API documentation

(Difference between revisions)
Jump to: navigation, search
(Raw XML)
(Raw XML)
 
(3 intermediate revisions not shown)
Line 14: Line 14:
|
|
*domainName
*domainName
-
*bundle
+
*bundle (obsolete: used for old SE bundles)
*withRecords
*withRecords
|- style="vertical-align:top;"
|- style="vertical-align:top;"
Line 25: Line 25:
*userEmail
*userEmail
*userPassword
*userPassword
 +
*smtpPassword
*products
*products
*expirationDate
*expirationDate
Line 51: Line 52:
   <retrieveDomainSeRequest>
   <retrieveDomainSeRequest>
     <domainName>filter.nl</domainName>
     <domainName>filter.nl</domainName>
 +
    <withRecords>1</withRecords>
   </retrieveDomainSeRequest>
   </retrieveDomainSeRequest>
  </openXML>
  </openXML>
Line 67: Line 69:
       <userPassword>qweasdzxc</userPassword>
       <userPassword>qweasdzxc</userPassword>
       <smtpPassword></smtpPassword>
       <smtpPassword></smtpPassword>
-
       <products></products>
+
       <products>
 +
        <incoming>1</incoming>
 +
        <outgoing>0</outgoing>
 +
        <archiving>1</archiving>
 +
      </products>
       <expirationDate>2017-09-01</expirationDate>
       <expirationDate>2017-09-01</expirationDate>
       <records>
       <records>
Line 73: Line 79:
           <array>
           <array>
             <item>
             <item>
-
               <hostname>mbox001.hosting-concepts.nl</hostname>
+
               <hostname>mbox001.filter.nl</hostname>
               <port>25</port>
               <port>25</port>
             </item>
             </item>

Current revision as of 04:42, 30 August 2017

Contents

Module SpamExperts > Retrieve Domain

Module SpamExperts
Command name retrieveDomainSeRequest
Use Retrieves an existing domain filter or bundle
Input
  • domainName
  • bundle (obsolete: used for old SE bundles)
  • withRecords
Output
  • resellerId
  • isActive
  • withOutgoingFilter
  • domainName
  • userEmail
  • userPassword
  • smtpPassword
  • products
  • expirationDate
  • records

Examples

Using PHP class

$request = new OP_Request;
$request->setCommand('retrieveDomainSeRequest')
  ->setAuth(array('username' => $username, 'password' => $password))
  ->setArgs(array(
    'domainName' => 'filter.nl',
    'bundle' => 0,
    'withRecords' => 1,
  ));

Raw XML

Please note that newlines and leading spaces are added only for readability. Those whitespaces should be excluded from your XML command before sending it to Openprovider.

<?xml version="1.0" encoding="UTF-8"?>
<openXML>
  <credentials>
    <username>username</username>
    <password>password</password>
  </credentials>
  <retrieveDomainSeRequest>
    <domainName>filter.nl</domainName>
    <withRecords>1</withRecords>
  </retrieveDomainSeRequest>
</openXML>
<?xml version="1.0" encoding="UTF-8"?>
<openXML>
  <reply>
    < code>0</code>
    <desc />
    <data>
      <resellerId>123456</resellerId>
      <isActive>1</isActive>
      <withOutgoingFilter>0</withOutgoingFilter>
      <domainName>filter.nl</domainName>
      <userEmail>admin@filter.nl</userEmail>
      <userPassword>qweasdzxc</userPassword>
      <smtpPassword></smtpPassword>
      <products>
        <incoming>1</incoming>
        <outgoing>0</outgoing>
        <archiving>1</archiving>
      </products>
      <expirationDate>2017-09-01</expirationDate>
      <records>
        <destinations>
          <array>
            <item>
              <hostname>mbox001.filter.nl</hostname>
              <port>25</port>
            </item>
          </array>
        </destinations>
        <aliases/>
        <outgoingUserIps/>
      </records>
    </data>
  </reply>
</openXML>
Views
Personal tools