API Module SpamExperts generateSeLoginUrlRequest

From Openprovider API documentation

(Difference between revisions)
Jump to: navigation, search
 
(One intermediate revision not shown)
Line 9: Line 9:
|-
|-
|'''Use'''
|'''Use'''
-
|Returns a code that can be used for logging in to the SpamExperts control panel. By default, this code should be appended after the URL ''http://spamexperts.openprovider.eu/?authticket=''. Usage of your own hostname is possible.
+
|Returns an url that can be used for logging in to the SpamExperts control panel. If you want you can whitelabel the hostname by taking the auth at the end of the URL and replacing the part in front of it by your own URL, as long as it leads to our platform via DNS.
|- style="vertical-align:top;"
|- style="vertical-align:top;"
|'''Input'''
|'''Input'''
|
|
*'''domainOrEmail'''
*'''domainOrEmail'''
 +
*''bundle'' (0 or 1. If you use the new, individually purchased, filters then set this to 0. If you use the old bundled variant, then set this to 1.)
|- style="vertical-align:top;"
|- style="vertical-align:top;"
|'''Output'''
|'''Output'''
Line 27: Line 28:
   ->setArgs(array(
   ->setArgs(array(
     'domainOrEmail' => 'newfilter.nl',
     'domainOrEmail' => 'newfilter.nl',
 +
    'bundle' => '1',
   ));
   ));
Line 39: Line 41:
   <generateSeLoginUrlRequest>
   <generateSeLoginUrlRequest>
     <domainOrEmail>newfilter.nl</domainOrEmail>
     <domainOrEmail>newfilter.nl</domainOrEmail>
 +
    <bundle>1</bundle>
   </generateSeLoginUrlRequest>
   </generateSeLoginUrlRequest>
  </openXML>
  </openXML>
Line 48: Line 51:
     <desc></desc>
     <desc></desc>
     <data>
     <data>
-
       <url>3b42993ef9e0cf732bc400ec04bce0720a81c1fc</url>
+
       <url>http://spamexperts.openprovider.eu//?authticket=086ee798cfa3c6af0123553cfd4774757223fdfe</url>
     </data>
     </data>
   </reply>
   </reply>
  </openXML>
  </openXML>

Current revision as of 09:17, 29 November 2016

Contents

Module SpamExperts > Generate Login URL

Module SpamExperts
Command name generateSeLoginUrlRequest
Use Returns an url that can be used for logging in to the SpamExperts control panel. If you want you can whitelabel the hostname by taking the auth at the end of the URL and replacing the part in front of it by your own URL, as long as it leads to our platform via DNS.
Input
  • domainOrEmail
  • bundle (0 or 1. If you use the new, individually purchased, filters then set this to 0. If you use the old bundled variant, then set this to 1.)
Output
  • url

Examples

Using PHP class

$request = new OP_Request;
$request->setCommand('generateSeLoginUrlRequest')
  ->setAuth(array('username' => 'username', 'password' => 'password'))
  ->setArgs(array(
    'domainOrEmail' => 'newfilter.nl',
    'bundle' => '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>
  <generateSeLoginUrlRequest>
    <domainOrEmail>newfilter.nl</domainOrEmail>
    <bundle>1</bundle>
  </generateSeLoginUrlRequest>
</openXML>

<?xml version="1.0" encoding="UTF-8"?>
<openXML>
  <reply>
    < code>0</code>
    <desc></desc>
    <data>
      <url>http://spamexperts.openprovider.eu//?authticket=086ee798cfa3c6af0123553cfd4774757223fdfe</url>
    </data>
  </reply>
</openXML>
Views
Personal tools