requestExecute method
Requests specific uri
and returns Page of TransactionResponse.
This method is helpful for getting the next set of results.
Implementation
static Future<Page<TransactionResponse>> requestExecute(
http.Client httpClient, Uri uri) async {
TypeToken type = new TypeToken<Page<TransactionResponse>>();
ResponseHandler<Page<TransactionResponse>> responseHandler =
new ResponseHandler<Page<TransactionResponse>>(type);
return await httpClient.get(uri).then((response) {
return responseHandler.handleResponse(response);
});
}