ispCP - Board - Support
Is there an API? - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Documentation (/forum-45.html)
+--- Thread: Is there an API? (/thread-9280.html)

Pages: 1 2


Is there an API? - gacott - 01-20-2010 07:17 AM

I know there must be an api right? I see other people making scripts for this, I saw at least one billing solution for this. Where can I find the API?

Thanks
Garret


RE: Is there an API? - joximu - 01-20-2010 09:08 AM

There is no official AP - I even don't know an unofficial API....

the people who are working on extensions do a hard job.

/J


RE: Is there an API? - gacott - 01-20-2010 03:22 PM

"the people who are working on extensions do a hard job."

What in the world does that have to do with an API?


RE: Is there an API? - joximu - 01-20-2010 06:34 PM

Since there is no documented API they have to find their way themselve...

just this :-)


RE: Is there an API? - Shin - 01-20-2010 07:01 PM

Hi gaccot

At the moment there's no API to interact with ispCP, but (I'm not talking in the name of the whole dev team) I think the devs are moving in the right way, also because if you see in the documentation/wishlist ...

Code:
PHP:
long arrays (HTTP_GET_VARS, HTTP_POST_VARS) on/off-switchable
Make ispCP PHP Interface , so that it works with modules. (Your own modules)

...so if you can, write down here a list of methods that you'll need from the API, as a suggestion for our work.

Regards

Shin


RE: Is there an API? - joximu - 01-23-2010 11:59 PM

Sure:
http://www.isp-control.net/ispcp/browser/trunk?rev=
http://www.php.net
http://www.perl.org
http://www.mysql.com

sorry - there is *no* documented API, so go through the source code and understand whats going on...


RE: Is there an API? - nardev - 06-03-2011 01:52 PM

At least primitive functions would make our life much easier.

- create reseller account
- create account under certain reseller
- change account status
- list accounts
- get/set disk quota
- get/set bandwidth quota

Only this few options would be enough for beginning.

In my opinion it should never me much more complicated. Just enough to combine it with billing system.


RE: Is there an API? - aseques - 06-03-2011 05:46 PM

(06-03-2011 01:52 PM)nardev Wrote:  At least primitive functions would make our life much easier.

- create reseller account
- create account under certain reseller
- change account status
- list accounts
- get/set disk quota
- get/set bandwidth quota

Only this few options would be enough for beginning.

In my opinion it should never me much more complicated. Just enough to combine it with billing system.
I was looking some time ago for this, since I couldn't find anything at the moment, I wrote this:
http://isp-control.net/documentation/dev/daemon_commands_cli
It's a set of php scripts that allow you to create almost every component of ispcp (from a domain to a htacces user). The code is not very good but it does the job, and I'm using it on a daily basis.
There's another user that has create something more like an API, but I don't know if it is working or no..


RE: Is there an API? - nardev - 06-03-2011 06:08 PM

(06-03-2011 05:46 PM)aseques Wrote:  
(06-03-2011 01:52 PM)nardev Wrote:  At least primitive functions would make our life much easier.

- create reseller account
- create account under certain reseller
- change account status
- list accounts
- get/set disk quota
- get/set bandwidth quota

Only this few options would be enough for beginning.

In my opinion it should never me much more complicated. Just enough to combine it with billing system.
I was looking some time ago for this, since I couldn't find anything at the moment, I wrote this:
http://isp-control.net/documentation/dev/daemon_commands_cli
It's a set of php scripts that allow you to create almost every component of ispcp (from a domain to a htacces user). The code is not very good but it does the job, and I'm using it on a daily basis.
There's another user that has create something more like an API, but I don't know if it is working or no..

It's great. Thank you very much.

What do you think that since there is no official api. That i make github repository so that maybe some other guys can contribute too?


RE: Is there an API? - aseques - 06-03-2011 07:17 PM

(06-03-2011 06:08 PM)nardev Wrote:  
(06-03-2011 05:46 PM)aseques Wrote:  
(06-03-2011 01:52 PM)nardev Wrote:  At least primitive functions would make our life much easier.

- create reseller account
- create account under certain reseller
- change account status
- list accounts
- get/set disk quota
- get/set bandwidth quota

Only this few options would be enough for beginning.

In my opinion it should never me much more complicated. Just enough to combine it with billing system.
I was looking some time ago for this, since I couldn't find anything at the moment, I wrote this:
http://isp-control.net/documentation/dev/daemon_commands_cli
It's a set of php scripts that allow you to create almost every component of ispcp (from a domain to a htacces user). The code is not very good but it does the job, and I'm using it on a daily basis.
There's another user that has create something more like an API, but I don't know if it is working or no..

It's great. Thank you very much.

What do you think that since there is no official api. That i make github repository so that maybe some other guys can contribute too?

It's already on bitbucket, you can pick the code from there. I'd be glad to add any changes you made. Also, there are a tone of TODO in the code of things that should be fixed (the most important would be to make it able to get the system variables from the config.
http://bitbucket.org/aseques/ispcp-cli/src