public JSONObject invalidateAccessToken ( ) throws IOException , KiteException , JSONException { String url = routes . get ( "api.token" ) ; Map < String , Object > params = new HashMap <> ( ) ; params . put ( "api_key" , apiKey ) ; params . put ( "access_token" , accessToken ) ; return new KiteRequestHandler ( proxy ) . deleteRequest ( url , params , apiKey , accessToken ) ; }
Kills the session by invalidating the access token .