Php 调用Vps.net api类
我想使用VPS.NET PHP api,但我不知道如何使用给定的类。 例如,我想调用VPSNET类中的getDomains函数。 类别: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:
谢谢您的帮助。未经测试,但类似于:
<?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行代码。请在问题中添加所需的最小代码,否则您将不会得到任何答复。我认为没有必要阅读所有代码。我只想调用这个类中的一个函数。