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:
https://cpanelserver:2087/json-api/...el_jsonapi_func=fetchzones&domain=example.com (With basic http authentication and with API-token based authentication):
{"cpanelresult":{"apiversion":"2","error":"Access denied","data":{"reason":"Access denied","result":"0"},"type":"text"}}
Is there something my ISP has blocked? I guess I am trying to reach API2 via the WHM API. I just cannot find any examples in the docs on how to interact with the API2 directly. Anyone knows?
I am totally lost here.
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:
https://cpanelserver:2087/json-api/...el_jsonapi_func=fetchzones&domain=example.com (With basic http authentication and with API-token based authentication):
{"cpanelresult":{"apiversion":"2","error":"Access denied","data":{"reason":"Access denied","result":"0"},"type":"text"}}
Is there something my ISP has blocked? I guess I am trying to reach API2 via the WHM API. I just cannot find any examples in the docs on how to interact with the API2 directly. Anyone knows?
I am totally lost here.