Hello everyone. I am trying to get started wit dev...
# help-connector-development
m
Hello everyone. I am trying to get started wit developing custom connectors but got stuck on pagination. I want to stream Missive's List Conversation Endpoint https://missiveapp.com/help/api-documentation/rest-endpoints#list-conversations but the pagination requires a timestamp. Any idea how i could workaround this? Thanks in advance!
k
A message from kapa.ai
New message text here
m
I think the “Info” subsection in the cursor pagination section is what you are looking for. Basically,
{{ last_records[-1]['last_activity_at'] }}
would allow to fetch the timestamp and something like
{{ len(response) < 50 }}
would be the stop condition (assuming 50 is the limit)