public AuthorizationToken getToken(String code) { GetTokenRequest request = new GetTokenRequest(); request.setCode(code); request.setGrant_type("authorization_code"); request.setNeed_refresh_token(true); request.setClient_id(clientPolicy.AppKey); request.setClient_secret(clientPolicy.SecretKey); return(this.send <AuthorizationToken>(request)); }