I am using RestSharp to consume a REST style service.
Pretty new to this library and would appreciate some guidance on how to implement paging using RestSharp.
Any existing examples on how to achieve this?
RestSharp – http://restsharp.org/
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s no concept of paging inherent to RestSharp. It’s just a thin wrapper over HTTP calls, so it’s what the HTTP endpoint you’re calling that determines what features are available, like how paging is handled.
Here’s an example of an API that supports paging, and how you would call it with RestSharp: