正在调用Vps.net api类


Calling Vps.net api class

我想使用VPS。NET PHP api,但我不知道如何使用给定的类。例如,我想调用VPSNET类中的getDomains函数。类别:http://pastebin.com/wn4UYQB7谢谢你的帮助。

未测试但类似于:

<?php 
//Include the class into the script
include('VPSNET.class.php');
//Start the class & get instance, pass your username, api key ect
$vpsAPI = VPSNET::getInstance($username, $_auth_api_key);
//Call the getDomains method from the class
$result = $vpsAPI->getDomains();
//Do somthing with the result
print_r($result);
?>