API Module Nameserver generateSingleDomainTokenRequest
From Openprovider API documentation
(Difference between revisions)
												
			
		 (Created page with '==Module Nameserver > Generate token== {| border="1" cellpadding="4" |- style="background-color:#BBBBBB;" |'''Module''' |Nameserver module |- style="background-color:#EEEEEE;" |'…')  | 
		|||
| Line 1: | Line 1: | ||
| - | ==Module   | + | ==Module Single Domain DNS panel > Generate token==  | 
{| border="1" cellpadding="4"  | {| border="1" cellpadding="4"  | ||
|- style="background-color:#BBBBBB;"  | |- style="background-color:#BBBBBB;"  | ||
Revision as of 09:41, 10 June 2020
Contents | 
Module Single Domain DNS panel > Generate token
| Module | Nameserver module | 
| Command name | generateSingleDomainTokenRequest | 
| Use | Creates an access token to the single domain DNS panel | 
| Input | 
  | 
| Output | 
  | 
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>