@ SuppressWarnings ( "serial" ) public Client loginAsOwner ( ) throws APIError { requestToken = service . getRequestToken ( ) ; JSONObject token = post ( "/api/v1/users/login_as_owner" , new HashMap < String , Object > ( ) { { put ( "request_token" , requestToken . getToken ( ) ) ; } } ) ; if ( token != null && ! token . getJSONObject ( "token" ) . isNullObject ( ) ) { return loginWithAccessToken ( token . getJSONObject ( "token" ) . getString ( "oauth_token" ) , token . getJSONObject ( "token" ) . getString ( "oauth_token_secret" ) ) ; } else { throw new Unauthorized ( "Could not get Request Token" ) ; } }
Logins as the first UserVoice account owner of the subdomain .