API Module Nameserver generateSingleDomainTokenRequest

From Openprovider API documentation

Jump to: navigation, search

Contents

Module Single Domain DNS panel > Generate token

Module Single Domain DNS panel module
Command name generateSingleDomainTokenRequest
Use Creates an access token to the single domain DNS panel
Input
  • domain name
Output
  • token
  • url

Examples

Using PHP class

 $request = new OP_Request;
 $request->setCommand('generateSingleDomainTokenRequest')
   ->setAuth(['username' => 'username', 'password' => 'password'])
   ->setArgs([
     'domain' => 'example.com',
   ]);
 $api = new OP_API('https://api.openprovider.eu/');
 $reply = $api->process($request);


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>
   <generateSingleDomainTokenRequest>
     <domain>example.com</domain>
   </generateSingleDomainTokenRequest>
 </openXML>
 <?xml version="1.0" encoding="UTF-8"?>
 <openXML>
   <reply>
     0
     <desc></desc>
     <data>
       <token>example23charactertoken</token>
       <url>https://dnspanel.io?token=example23charactertoken</url>
     </data>
   </reply>
 </openXML>
Views
Personal tools