Bailey Posted April 5, 2018 Posted April 5, 2018 What version of cPanel do you use and what version of API does it have? (Johnny/Tommy/Ricky)
ziad87 Posted April 5, 2018 Posted April 5, 2018 (edited) Well on Tommy they use cpanel ver. 64.0.36 I do not have an account on the other servers so I don't know their version If you go to Server Information then look for Cpanel version. 64.0 (build 36) Operating System : LinuxCPANEL ONLY RUNS ON LINUX! Edited April 5, 2018 by ziad0
wolstech Posted April 5, 2018 Posted April 5, 2018 The API likely has very limited use to normal users, and while I don't believe we intentionally block it, we do discourage its use. The last time I played with it (trying to create databases programmatically), there was no good way for non-admins to get the required tokens.
ziad87 Posted April 5, 2018 Posted April 5, 2018 (edited) Upon doing further reading it appers the admins have to enable the api shell first : Cpanel Docs edit : Ah nevermind, it mostly focuses on WHM which only root admins hold the password to...It is the API for account management sorry... Edited April 5, 2018 by ziad0
Bailey Posted April 5, 2018 Author Posted April 5, 2018 It doesn't matter whether it's Linux or not but I'm recreating the HelioPanel/HelioMobile because I think it's genuinely useful... it would work on desktop aswell. For this I need the API, the old one (v1) looked like it used the Area51/52 but they don't exist anymore, or atleast not fully.
ziad87 Posted April 5, 2018 Posted April 5, 2018 (edited) (The linux thing was kinda intended as a joke. Because cpanel only supports linux.) Does it really require the old API? Or does it need the cPanel API v2? (v2 is supported by cpanel 64) Edited April 5, 2018 by ziad0
ziad87 Posted April 5, 2018 Posted April 5, 2018 (edited) I don't really know if a non-admin could use this, but maybe it might help? Cpanel API v2 / UAPI (newest) Edited April 5, 2018 by ziad0
Bailey Posted April 5, 2018 Author Posted April 5, 2018 No, I wasn't talking about cPanel APIv1 I was on about HelioPanel v1 using area51/52 on Heliohost.
wolstech Posted April 5, 2018 Posted April 5, 2018 I actually have the source for the original HelioPanel (it lived on a former root admin's account on Stevie back when he wasn't an ESX box)...I found it when I downloaded his backup to restore a bunch of other stuff that broke during the Stevie crash. The options seen when you sign into https://heliohost.org/login/ are the same choices HelioPanel gave you (or in fact, there's actually more on the new one). The HelioHost tools page is basically HelioPanel v2...it was meant to consolidate the various scripts we had laying around on the classic site...of course we still use the domain and delete script to this day...).
Bailey Posted April 5, 2018 Author Posted April 5, 2018 My plan is to use Framework 7 to create a custom branded cPanel experience for Heliohost users but go into more depth with what things are etc.
wolstech Posted April 5, 2018 Posted April 5, 2018 Why are you trying to reinvent the wheel? A better way to do this would be to build a theme for cPanel (which is a pain in the rear, and would also require you have a local cPanel server to test on...cPanel is not cheap, even for a development license). Also, the original HelioPanel didn't use the cPanel API. It used cURL to automate the user interface for the one or two things it did.
Bailey Posted April 5, 2018 Author Posted April 5, 2018 Because it's not just gonna be for cPanel, it might include the forums API, if we update and will include the wiki.
Bailey Posted April 5, 2018 Author Posted April 5, 2018 And yeah I'm stuck between using cURL and the API but I think it would be easier, with what I want to do, to use the API
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now