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