ag583

Registered
Jan 17, 2013
2
0
1
cPanel Access Level
Root Administrator
Hi there -

I am attempting to use the SSL functions in the UAPI via CURL from a PHP script. I am having difficulty calling the UAPI using this method and have not been able to get a successful response.

The cPanel documentation says that the XML/JSON APIs can be used to call UAPI functions - at the bottom of this page.

Unified API (UAPI) Documentation

However there is no further documentation on how to actually accomplish this. Any insight?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,205
363
Hello :)

Could you post a snippet of the script you are attempting to utilize UAPI with that is failing? You can find examples at:

UAPI - SSL

Thank you.
 

MACscr

Well-Known Member
Sep 30, 2003
198
5
168
cPanel Access Level
Root Administrator
Did you have any luck with this? I havent been able to connect to it through curl either. Trying to use the root hash for auth. Cpanel has way to many different API's. Its really mess.
 

N1ghteyes

Active Member
Mar 3, 2014
33
2
8
Reading, UK
cPanel Access Level
Root Administrator
Twitter
i recently ran into the same issues, after a bit of trial / error i got a class working, it doesnt use a hash, it passes the user / pass in the header, but it seems to work pretty well.

I posted a thread up for it, incase anyone else gets stuck and finds it useful.
http://forums.cpanel.net/f42/uapi-php-class-417251.html