Current time: 11-27-2024, 06:16 PM Hello There, Guest! (LoginRegister)


Post Reply 
Is there an API?
Author Message
gacott Offline
Newbie
*

Posts: 6
Joined: Jan 2010
Reputation: 0
Post: #1
Is there an API?
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
01-20-2010 07:17 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: Is there an API?
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
01-20-2010 09:08 AM
Visit this user's website Find all posts by this user Quote this message in a reply
gacott Offline
Newbie
*

Posts: 6
Joined: Jan 2010
Reputation: 0
Post: #3
RE: Is there an API?
"the people who are working on extensions do a hard job."

What in the world does that have to do with an API?
01-20-2010 03:22 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: Is there an API?
Since there is no documented API they have to find their way themselve...

just this :-)
01-20-2010 06:34 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Shin Offline
Development Team - Junior
*****
Dev Team

Posts: 162
Joined: Oct 2006
Reputation: 0
Post: #5
RE: Is there an API?
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
01-20-2010 07:01 PM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #6
RE: Is there an API?
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...
01-23-2010 11:59 PM
Visit this user's website Find all posts by this user Quote this message in a reply
nardev Offline
Newbie
*

Posts: 6
Joined: Apr 2011
Reputation: 0
Post: #7
RE: Is there an API?
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.
06-03-2011 01:52 PM
Find all posts by this user Quote this message in a reply
aseques Offline
Member
*****
Dev Team

Posts: 330
Joined: May 2008
Reputation: 4
Post: #8
RE: Is there an API?
(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...mmands_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..
06-03-2011 05:46 PM
Find all posts by this user Quote this message in a reply
nardev Offline
Newbie
*

Posts: 6
Joined: Apr 2011
Reputation: 0
Post: #9
RE: Is there an API?
(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...mmands_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?
06-03-2011 06:08 PM
Find all posts by this user Quote this message in a reply
aseques Offline
Member
*****
Dev Team

Posts: 330
Joined: May 2008
Reputation: 4
Post: #10
RE: Is there an API?
(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...mmands_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
06-03-2011 07:17 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 3 Guest(s)