PHP
Hi,
Where can i find more examples on how to use API output to perfom actions via PHP? thnx in advance? Raf@root4ce.be |
is ISPmanager documentation not suffice ?
|
Yes but a few examples on how to add users and/or mail aliasses for example might be handy :)
Raf@root4ce.be |
Code:
<?php describe all API functions and parameters. |
I use the code u provided but i can't get it to work.
I think it has something to do with authentication but when i Fetch the url from the shell the account is being created. I think i'm just doing something wrong in PHP Can you tell me the way to do authentication with PHP so i can verify if i'm doing it correct? Thnx Raf@root4ce.be |
what is in $result variable after request ?
|
$result has
Permission denied error code |
are run script as user root ?
|
It's embedded in a php-webpage with global execution permission
|
do you want anybody may do anything on your server ?
certenly it not works. you should run this php script from shell as user root. or your script should have authorization information. add parameter authinfo=root:rootpassword in the request. but i should notice it is insecure. |
It was my intention to add automated Site and account creation in our PHP based order form. But I think I will leave the idea because of the security.
thanks Raf |
you can create administrator, allow him to create sites only. and use his name and password in your script.
|
user.mailprop
user.mailprop dont work. the result is ok but data dont change
|
may be something wrong in your request ?
is it has parameter sok=yes ? and parameter elid ? show me please your request |
http://127.0.0.1/manager/ispmgr?auth...autoreply=Auto reply test&fwd=i9@i9.com&out=xml&func=user.mailprop
user = Admin user pass = is password to this user |
should works
|
maillist.edit
other problem....
When try create a mailing list. http://127.0.0.1/manager/ispmgr?auth...=maillist.edit result : <error code="3" obj="site"> |
about user.mailprop and other,
try to encode request or replace all spaces by %20 and all @ by %40 |
%20 and %40
mailing list :
http://127.0.0.1/manager/ispmgr?auth...=maillist.edit result: <error code="3" obj="site"> user.mailprop : result : ok but data in ispmanager dont change. |
<error code="3" obj="site">
maillist.edit : <error code="3" obj="site">
why error obj site ? |
i have no idea more.
all is correct and should works. |
Retrieving mailboxes
Can anyone get me started on how to generate a list the mailboxes on a site with PHP? Is it possible to list the passwords also?
Thanks in advance Raf Goetschalckx RootForce-root4ce.be |
see documentation at http://ispsystem.com/docs/isp-lite-en-devel/index.html "ISPmanager API"
you should read topic about mailboxes. and no way to get passwords. |
"helpdesk" module
hello,
Is there any possibility to use the "helpdesk" module from the API, I can't find anything about this in the documentation so far? Raf_root4ce |
What does error code 100 imply ???
Regards, Alons |
See ISPmanager logs, what action you do? It possible "incorrect authorization data" for example.
|
Quote:
|
See ISPmanager logs and also you can write ticket via our billing system
Also read examples http://en.ispdoc.com/index.php/How_to_work_with_API |
Quote:
Brukhanov said that it is restricted from the web : https://IP-address/manager/ispmgr?au...rameter2=value Then how should I get it to work ??? Regards, Alons |
Please, explain your problem in details. How to make it better you can read here: http://forum.ispsystem.com/en/showthread.php?t=181
|
All times are GMT +2. The time now is 08:33 AM. |
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.