Well, i think i figured part of it out. Here is my new url format:
Code:
https://hostname:2087/json-api/cpanel?cpanel_jsonapi_module=Fileman&cpanel_jsonapi_func=fullbackup&cpanel_jsonapi_apiversion=1&user=USERNAME&server=REMOTE_HOSTNAME&pass=#############&email=EMAILADDRESS&dest=passiveftp&port=21&rdir=backups%2F&
Unfortunately it seems backups cant be created with API2, so I am forced to use the format for API1. This is the response i get though and the backup never seems to happen:
Code:
object(stdClass)#56 (7) {
["apiversion"]=>
string(1) "1"
["type"]=>
string(5) "event"
["module"]=>
string(7) "Fileman"
["func"]=>
string(10) "fullbackup"
["source"]=>
string(6) "module"
["data"]=>
object(stdClass)#57 (1) {
["result"]=>
string(0) ""
}
["event"]=>
object(stdClass)#58 (1) {
["result"]=>
int(1)
}
}
I cant seem to see where I could be going wrong though and there is obviously not an error being shown. I know I am authenticating correctly or else I wouldnt be getting that response at all and I can access the json-api with other functions, such as getting a user list based on the owner name. But that method uses API2 I think and is requires less variables. Im getting a bit desperate here. I would like to continue with a remote method and sticking with json.