API issue with sites_ftp_user_get

Discussion in 'Developers' Forum' started by cwispy, Sep 15, 2019.

  1. cwispy

    cwispy Active Member

    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"}'


    Can anyone see what I am doing wrong and help me get this working?
  2. cwispy

    cwispy Active Member

Share This Page