Hello,
I tried to develop generic function to call API 1 and API 2 functions.
What i tested is:
1. API 1 without parameters = success
2. API 1 with parameters = fail
3. API 2 without parameters = success
4. API 2 with parameters = success
I don`t know why i cant post parameters with API 1 function.
Here is an example:
Request Url: https://myhostname:2083/json-api/cp...emopass&[email protected]&port=21&rdir=/
Also i try it with encoded query strings, but same problem.
This web request have POST method and Basic Authentication with username and pass as cpanel account.
Example response:
{"apiversion":"1","type":"event","module":"Fileman","func":"fullbackup","source":"module","data":{"result":""},"event":{"result":1}}
I dont know why only API 1 with query string parameters don`t work, if i call some API 2 function on same way even with query string parameters, everything works fine.
Do i miss some difference between API 1 and API 2?
I tried to develop generic function to call API 1 and API 2 functions.
What i tested is:
1. API 1 without parameters = success
2. API 1 with parameters = fail
3. API 2 without parameters = success
4. API 2 with parameters = success
I don`t know why i cant post parameters with API 1 function.
Here is an example:
Request Url: https://myhostname:2083/json-api/cp...emopass&[email protected]&port=21&rdir=/
Also i try it with encoded query strings, but same problem.
This web request have POST method and Basic Authentication with username and pass as cpanel account.
Example response:
{"apiversion":"1","type":"event","module":"Fileman","func":"fullbackup","source":"module","data":{"result":""},"event":{"result":1}}
I dont know why only API 1 with query string parameters don`t work, if i call some API 2 function on same way even with query string parameters, everything works fine.
Do i miss some difference between API 1 and API 2?
Last edited: