I'm getting started with Airwave API and I would like to manage RAP users via the Airwave API.
I'm able to get a valid auth token by using curl and visiting /LOGIN and I can get stats by visiting /amp_stats.xml as well as ap_list.xml...
Successfully log in and get a token:
curl -k -c ./cjar -d "credential_0=USERNAME" -d "credential_1=PASSWORD" -d "destination=/" -d "login=Log In" https://airwave-hostname/LOGIN
Successfully query stats:
curl -vvvv -k -b ./cjar "https://airwave-hostname/amp_stats.xml 2>/dev/null
But user-related requests (shown below) are all met with a 403 error, which is most confusing because I can query stats from the above stats URL before and after getting the 403, which suggests I have a valid login token. It's as if there is a separate authentication required for the user operations... is there?
Fail to get all users - response: "403 Session expired; please log in again":
curl -vvvv -k -b ./cjar -vikd 'xml=<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?> <guest_user_api:get_all version="1"></guest_user_api:get_all>' -H "https://airwave-hostname/guest_user_api"
Fail to look up a given user - response: "403 Session expired; please log in again":
curl -vvvv -k -b ./cjar -vikd 'xml=<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?><guest_user_api:get version="1" xmlns:guest_user_api="http://www.airwave.com"><username>A_VALID_USERNAME</username></guest_user_api:get>' https://airwave-host/guest_user_api
What am I missing?
Thanks