Git Product home page Git Product logo

ispconfig-remote-api's Introduction

ispconfig-remote-api

A simple wrapper around the ISPConfig Remote API

ispconfig-remote-api's People

Contributors

cjsewell avatar dragu avatar gurudigital avatar mohsinqk avatar tpharaoh avatar webweave avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ispconfig-remote-api's Issues

No code license

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.

Unable to find some function

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?

Larael5 Login failed: Could not connect to host

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 ?

customer_no_counter

Hello,
With clientAdd(), 2 problems:

  • the value "customer_no_counter" in the ispconfig sys_ini is not incremented.
  • the client is created without customer number. (no value in the column "customer_no" in "client" table)

Login User - The login failed. Username or password wrong.

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 ?

Login failed

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();
        }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.