UAPI PHP Class
Hi All,
There is probably something out there for the UAPI already, but needing something simple and pretty quick, i've made a start on this:
/https://github.com/N1ghteyes/cpanel-UAPI-php-class
i'll get around to adding examples of usage up over the next couple of days, its simple enough though, very basic use is in the readme.
Feel free to use it, post issues etc. the more that do use it, the faster it'll get extended / fixed and so on :)
Also, let me know what you think.
-
Just a note, i've added an example file for using the MySQL module added in 11.44. More examples to follow, but it should atleast provide an idea :) 0 -
Hello :) Thank you for taking the time to add these examples. Keep in mind that cPanel does not review/validate third-party code, so it's important for users to test this on their own. 0 -
Hi Michael, I completely get that :) the comment was more aimed at third party users / developers, incase they come accross any bugs or want something extra from it :), pretty much just posted up here as a hopefully useful resource. Of course, anyone from cP is more than welcome to use it as well if its needed :P and as always if anyone else wants different examples / finds a bug, let me know in here or on the issue queue on GitHub =) 0 -
That's a great script, thank you ! What is the best method to capture the returned message (if any) and display it ? For example, after I added a POP account, the message could be "You POP account has been added", or "Error, can't not add POP account right now" if the script failed. Or simply any message returned by the system. Thanks again. 0 -
if anyone else wants different examples / finds a bug, let me know in here or on the issue queue on GitHub
Please use github for this sort of thing. These forums should not be used to support unsupported 3rd party projects. Thanks!0 -
What is the best method to capture the returned message (if any) and display it ?
Hi lvt, Could you post an issue on Github? That way more people are likely to see it and I can mark it as a Documentation issue as well. Issues " N1ghteyes/cpanel-UAPI-php-class " GitHub Thanks!0
Please sign in to leave a comment.
Comments
6 comments