API Module Domain suggestNameDomainRequest
From Openprovider API documentation
(Difference between revisions)
WikiSysop (Talk | contribs)
(Created page with '==Module Domain > Name Suggestion == {| border="1" cellpadding="4" |- style="background-color:#BBBBBB;" |'''Module''' |domain |- style="background-color:#EEEEEE;" |'''Command nam…')
Newer edit →
(Created page with '==Module Domain > Name Suggestion == {| border="1" cellpadding="4" |- style="background-color:#BBBBBB;" |'''Module''' |domain |- style="background-color:#EEEEEE;" |'''Command nam…')
Newer edit →
Revision as of 07:16, 11 May 2021
Contents |
Module Domain > Name Suggestion
| Module | domain |
| Command name | suggestNameDomainRequest |
| Use | Returns a list of domain suggestions based on a search term |
| Input |
|
| Output | returns array of domain suggestions with the following format:
|
Examples
Using PHP class
$request = new OP_Request;
$request->setCommand('suggestNameDomainRequest')
->setAuth(array('username' => 'username', 'password' => 'password'))
->setArgs(array(
'name' => 'wac', //search term
'limit' => 3,
'language' => 'spa',
'sensitive' => 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>
<suggestNameDomainRequest>
<name>wac</name>
<limit>3</limit>
<language>spa</language>
<sensitive>1</sensitive>
<tlds>
<array>
<item>com</item>
<item>info</item>
<item>com.es</item>
</array>
</tlds>
</suggestNameDomainRequest>
</openXML>
<?xml version="1.0" encoding="UTF-8"?>"
<openXML>
<reply>
0
<desc></desc>
<data>
<array>
<item>
<name>SheWac.com</name>
<domain>SheWac</domain>
<tld>com</tld>
</item>
<item>
<name>HeWac.info</name>
<domain>HeWac</domain>
<tld>info</tld>
</item>
<item>
<name>HeWac.com.es</name>
<domain>HeWac</domain>
<tld>com.es</tld>
</item>
</array>
</data>
</reply>
</openXML>