API Module Extension retrieveExtensionRequest
From Openprovider API documentation
(Difference between revisions)
| Line 46: | Line 46: | ||
===Raw XML=== | ===Raw XML=== | ||
<?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||
| - | < | + | <openXML> |
<credentials> | <credentials> | ||
<username>username</username> | <username>username</username> | ||
<password>password</password> | <password>password</password> | ||
</credentials> | </credentials> | ||
| - | < | + | <retrieveExtensionRequest> |
| - | < | + | <withDescription>0</withDescription> |
| - | < | + | <withDiscounts>1</withDiscounts> |
<name>co.uk</name> | <name>co.uk</name> | ||
| - | </ | + | </retrieveExtensionRequest> |
| - | </ | + | </openXML> |
<?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||
| - | < | + | <openXML> |
<reply> | <reply> | ||
| - | <code>0</code> | + | < code>0</code> |
<desc></desc> | <desc></desc> | ||
<data> | <data> | ||
<name>co.uk</name> | <name>co.uk</name> | ||
| - | < | + | <transferAvailable>1</transferAvailable> |
| - | < | + | <isTransferAuthCodeRequired>0</isTransferAuthCodeRequired> |
| - | < | + | <domicileAvailable>0</domicileAvailable> |
| - | < | + | <usageCount>0</usageCount> |
<prices> | <prices> | ||
| - | < | + | <setupPrice>0</setupPrice> |
| - | < | + | <domicilePrice>0</domicilePrice> |
| - | < | + | <minPeriod>2</minPeriod> |
| - | < | + | <maxPeriod>2</maxPeriod> |
| - | < | + | <resellerPrice>10.00</resellerPrice> |
<prices> | <prices> | ||
<array> | <array> | ||
<item> | <item> | ||
<price>10.00</price> | <price>10.00</price> | ||
| - | < | + | <startBound>1</startBound> |
| - | < | + | <finishBound>24</finishBound> |
</item> | </item> | ||
<item> | <item> | ||
<price>9.50</price> | <price>9.50</price> | ||
| - | < | + | <startBound>25</startBound> |
| - | < | + | <finishBound>49</finishBound> |
</item> | </item> | ||
<item> | <item> | ||
<price>9.00</price> | <price>9.00</price> | ||
| - | < | + | <startBound>50</startBound> |
| - | < | + | <finishBound>149</finishBound> |
</item> | </item> | ||
<item> | <item> | ||
<price>8.50</price> | <price>8.50</price> | ||
| - | < | + | <startBound>150</startBound> |
| - | < | + | <finishBound>0</finishBound> |
</item> | </item> | ||
</array> | </array> | ||
| Line 102: | Line 102: | ||
</data> | </data> | ||
</reply> | </reply> | ||
| - | </ | + | </openXML> |
Revision as of 13:52, 1 July 2010
Contents |
Module Extension > Retrieve
| Module | extension |
| Command name | retrieveExtensionRequest |
| Use | Retrieves information about a specified extension |
| Input |
|
| Output | Overview of extension details:
|
Examples
Using PHP class
$request = new OP_Request;
$request->setCommand('retrieveExtensionRequest')
->setAuth(array('username' => 'username', 'password' => 'password'))
->setArgs(array(
'withDescription' => 0,
'withDiscounts' => 0,
'name' => 'co.uk',
));
Raw XML
<?xml version="1.0" encoding="UTF-8"?>
<openXML>
<credentials>
<username>username</username>
<password>password</password>
</credentials>
<retrieveExtensionRequest>
<withDescription>0</withDescription>
<withDiscounts>1</withDiscounts>
<name>co.uk</name>
</retrieveExtensionRequest>
</openXML>
<?xml version="1.0" encoding="UTF-8"?>
<openXML>
<reply>
< code>0</code>
<desc></desc>
<data>
<name>co.uk</name>
<transferAvailable>1</transferAvailable>
<isTransferAuthCodeRequired>0</isTransferAuthCodeRequired>
<domicileAvailable>0</domicileAvailable>
<usageCount>0</usageCount>
<prices>
<setupPrice>0</setupPrice>
<domicilePrice>0</domicilePrice>
<minPeriod>2</minPeriod>
<maxPeriod>2</maxPeriod>
<resellerPrice>10.00</resellerPrice>
<prices>
<array>
<item>
<price>10.00</price>
<startBound>1</startBound>
<finishBound>24</finishBound>
</item>
<item>
<price>9.50</price>
<startBound>25</startBound>
<finishBound>49</finishBound>
</item>
<item>
<price>9.00</price>
<startBound>50</startBound>
<finishBound>149</finishBound>
</item>
<item>
<price>8.50</price>
<startBound>150</startBound>
<finishBound>0</finishBound>
</item>
</array>
</prices>
</prices>
</data>
</reply>
</openXML>