A simple wrapper around the ISPConfig Remote API
guru-digital-archive / ispconfig-remote-api Goto Github PK
View Code? Open in Web Editor NEWA simple wrapper around the ISPConfig Remote API
A simple wrapper around the ISPConfig Remote API
public function sitesGetAll() {
return $this->makeCall('sites_get_all', $this->getSessionId());
}
This project has no code license attached. This means that (in many countries) it defaults to "all rights reserved" implied copyright. This means it's technically copyright infringement to use this code.
I would suggest the MIT license, as it allows for anyone to use your code for anything they want, as long as they give you credit for it and include a copy of the MIT license.
Hello,
I can't find some function. This is the example :
...
$site = $this->getSite($siteId);
...
On line 480 and 618 in SoapClient.php
And then getSites()
and getAllClientIds()
, for example:
...
$domains = array_merge($reservedDomains, array_map(function($s) {
return $s['domain'];
}, $this->getSites()
), $this->getAllClients()
);
...
on line 170 in AbstractSoapClient.php
and
...
$clientIds = $this->getAllClientIds();
...
on line 151 in AbstractSoapClient.php
Can you give a correct function sir?
In Laravel 5 i get a constantly "Login failed: Could not connect to host".
The API User and Passwords and IP adresse is correct.
I took your sample code and tried it without luck.
Does this package work with Laravel5 ?
Hello,
With clientAdd(), 2 problems:
Hi,
if i want to login a user i get the exception "The login failed. Username or password wrong."
But the user and password is definitely correct.
With Laravel5 i do
$context = stream_context_create(array(
'ssl' => array(
'verify_peer' => false,
'allow_self_signed' => true,
'verify_peer_name' => false
)
));
$cp = new \GDM\ISPConfig\SoapClient('https://myip:8080/remote/index.php', 'api', 'apipassword', $context);
$cp->login("client1", "testtest");
dd($cp);
The user/client exists of course with the provided password.
I dont get any other information except that the login failed. Where else could the problem be ?
I get the error message "Login failed".
But the remote user is definitely correct, with the base soap api it`s working.
I just took your example code just for testing:
$cp = new \GDM\ISPConfig\SoapClient('api', 'password', 'https://xx.xx.xxx.xxx:8080/remote/index.php');
$clientId = $cp->createClient("My Client", "My Clients Company", "myclient", "myclientspassword", "[email protected]", "000000");
$siteId = false;
if ($clientId) {
$siteId = $cp->createSite($clientId, "myclient.com", "255.255.255.1");
} else {
echo "Failed to create client " . $cp->getLastException()->getMessage();
}
if ($siteId) {
echo "Created client with id $clientId ";
echo "Created site with id $siteId ";
} else {
echo "Failed to create site " . $cp->getLastException()->getMessage();
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.