Jericho / StrongGrid

Strongly typed library for the entire SendGrid v3 API, including webhooks
180 stars 38 forks source link

More Link-header paging #367

Open Jericho opened 3 years ago

Jericho commented 3 years ago

@kevinchalet recently alerted me to the fact that SendGrid includes "link" information in the response of the GlobalSuppressions.GetAllAsync which can be useful for pagination. While investigating this situation, I found out that there are other SendGrid API endpoints that also return this 'Link' information therefore it makes sense to modify StrongGrid so their corresponding methods include this information.

I asked SendGrid for their assistance figuring out the list of endpoints that return this information and I am waiting for a reply but in the mean time here is the list that I found.

Jericho commented 3 years ago

@kevinchalet, @jsgoupil Here's a new beta release which adds the "Links" paging information to several other methods: https://www.myget.org/feed/jericho/package/nuget/StrongGrid/0.77.0-paginated-respon0070

Please note that while investigating this issue, I found out that some endpoints support 'limit' and 'offset' despite the fact that SendGrid's documentation does not mention it. I'm sure there are more than just the ones I found though. See #368