MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Development => Topic started by: Maradney on 2017-06-06, 17:44:03

Title: I want to use the API to dynamically add users and domains
Post by: Maradney on 2017-06-06, 17:44:03
I can't find the Kloxo API anywhere and the link http://wiki.lxcenter.org/API is no longer available
where can I find the API ?
Title: Re: I want to use the API to dynamically add users and domains
Post by: MRatWork on 2017-06-06, 17:59:28
Try running 'sh /script/simplelist', 'sh /script/update', 'sh /script/add', 'sh /script/delete' and 'sh /script/getproperty'.
Title: Re: I want to use the API to dynamically add users and domains
Post by: Maradney on 2017-06-11, 16:06:56
I need the API docs if possible I need to understand the commands.
In one of your replies you said that Kloxo-MR has the same API as Kloxo and provided the link but unfortunately the website is down and the docs are no where to be found.
as for what I want to do :
I want to make the user submit his own domain through an installation screen after he opens his temo-domain for the first time and for that I need to do Kloxo-MR operations using server side language.
Title: Re: I want to use the API to dynamically add users and domains
Post by: tochits on 2017-06-13, 04:53:11
Use this snapshot from web archive:

https://web.archive.org/web/20150424023149/http://wiki.lxcenter.org/index.php/API#Kloxo.2FHyperVM_API

I used it to learn about Kloxo API, although the info is limited.
Title: Re: I want to use the API to dynamically add users and domains
Post by: Maradney on 2017-06-13, 11:55:08
Oh thanks I'll check it out  :D
Title: Re: I want to use the API to dynamically add users and domains
Post by: MRatWork on 2017-06-13, 14:08:01
Or read https://forum.mratwork.com/kloxo-mr-development/kloxo-api-23797/
Title: Re: I want to use the API to dynamically add users and domains
Post by: Maradney on 2017-06-19, 10:48:46
the command sh /script/simplelist throws this error
Quote
PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php56s/usr/lib/php/modules/sphinx.so' - libsphinxclient-0.0.1.so: cannot open shared object file: No such file or directory in Unknown on line 0
/script/simplelist: line 3: 44863 Segmentation fault      (core dumped) lxphp.exe ../bin/common/commandline.php --action=simplelist "$@"
I wanted to know the resource types and try understand the add command to add a sub domain using php
Title: Re: I want to use the API to dynamically add users and domains
Post by: Maradney on 2017-06-21, 11:50:33
the command sh /script/simplelist now throws this error
 
Quote
/script/simplelist: line 3: 44863 Segmentation fault      (core dumped) lxphp.exe ../bin/common/commandline.php --action=simplelist "$@"
I solved the php one by doing so
Quote
mv /opt/php56s/etc/php.d/40-sphinx.ini /opt/php56s/etc/php.d/40-sphinx_unused.nonini
I wanted to know the resource types and parameters and try understand the add command to add a sub domain using php