Skip to content

Commit

Permalink
Added pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
dainiussa committed Oct 22, 2022
1 parent f20623e commit 60f7d39
Showing 1 changed file with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,21 @@ definitions:
retriever:
record_selector:
$ref: "*ref(definitions.selector)"

# API Docs: https://developers.activecampaign.com/reference/pagination
paginator:
type: NoPagination
type: DefaultPaginator
url_base: "*ref(definitions.requester.url_base)"
page_size_option:
inject_into: "request_parameter"
field_name: "limit"
pagination_strategy:
type: "OffsetIncrement"
page_size: 20
page_token_option:
inject_into: "request_parameter"
field_name: "offset"

requester:
$ref: "*ref(definitions.requester)"

Expand Down

0 comments on commit 60f7d39

Please sign in to comment.