public < T > ApiResponse < T > execute ( Call call , Type returnType ) throws ApiException { try { Response response = call . execute ( ) ; T data = handleResponse ( response , returnType ) ; return new ApiResponse < T > ( response . code ( ) , response . headers ( ) . toMultimap ( ) , data ) ; } catch ( IOException e ) { throw new ApiException ( e ) ; } }
Execute HTTP call and deserialize the HTTP response body into the given return type .