Hi, I have been converting from the soap endpoint to the json endpoint and I am having trouble getting the sites_ftp_user_get to work with the new endpoint. Using the soap endpoint it works fine when sending the request as sites_ftp_user_get( $session_id, array( 'username' => $username ) ) but it does not work using it like this curl --header "Content-Type: application/json" --insecure --request POST --data '{"session_id":"11241bff3d29e87d0546d9ce4692b83e","username":"dnrqzvcsftp"}' http://10.0.136.17:8080/remote/json.php?sites_ftp_user_get {"code":"ok","message":"","response":[]} Can anyone see what I am doing wrong and help me get this working?
Should have waited. I found the correct format... curl --header "Content-Type: application/json" --insecure --request POST --data '{"session_id":"9e48807998f3ff480a4aac4b41326c98","primary_id":{"username":"dnrqzvcsftp"}}' http://10.0.136.17:8080/remote/json.php?sites_ftp_user_get