[Section] Pagination support

This commit is contained in:
Ian Gulliver
2021-09-24 04:43:44 +00:00
parent 1a86bcce4d
commit ff27652618
2 changed files with 29 additions and 7 deletions

View File

@@ -26,6 +26,12 @@ type emptyResponse struct {
Data interface{} `json:"data"`
}
type nextPage struct {
Offset string `json:"offset"`
Path string `json:"path"`
URI string `json:"uri"`
}
func NewClient(token string) *Client {
c := &Client{
client: &http.Client{},