Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/227.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 调用Vps.net api类_Php_Api_Class - Fatal编程技术网

Php 调用Vps.net api类

Php 调用Vps.net api类,php,api,class,Php,Api,Class,我想使用VPS.NET PHP api,但我不知道如何使用给定的类。 例如,我想调用VPSNET类中的getDomains函数。 类别: 谢谢您的帮助。未经测试,但类似于: <?php //Include the class into the script include('VPSNET.class.php'); //Start the class & get instance, pass your username, api key ect $vpsAPI = VPSNET:

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

未经测试,但类似于:

<?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);
?>


很抱歉,没有人有时间从粘贴箱中读取1800行代码。请在问题中添加所需的最小代码,否则您将不会得到任何答复。我认为没有必要阅读所有代码。我只想调用这个类中的一个函数。