Calling cPanel API 2 with curl
I need to call the ZoneEdit module in the API2 as a end user. I cannot rely on a third party library or similar.
I have tried all I can think of for hours, spanning from authenticating with API tokens, basic http etc.
Can someone please just for me, and for everyone else, give a clean and unconvoluted example of how to achieve this using either basic auth or token auth? Alternatively, how do I successfully acquire a security token (embedded in the url) with basic auth before actually doing the API-call?
The thing is that I think I have found descriptions of this scattered around in the docs and online - but I cannot successfully authenticate.
A later example:
Please sign in to leave a comment.
Comments
0 comments