Hi all, I am trying to develop a custom connector ...
# help-connector-development
m
Hi all, I am trying to develop a custom connector for the Missive api but for some reason I can't get pagination to work. The Missive Api docs say: "To paginate, pass an
until
param equal to the
last_activity_at
of the oldest conversation returned in the previous page. The last page is reached when fewer conversations than
limit
are returned." This is my outgoing request.
Copy code
{
  "url": "<https://public.missiveapp.com/v1/conversations>",
  "parameters": {
    "until": [
      "1646310992"
    ],
    "team_inbox": [
      "6f1ddba3-***"
    ],
    "limit": [
      "50"
    ]
  },
  "headers": {
    "User-Agent": "python-requests/2.31.0",
    "Accept-Encoding": "gzip, deflate",
    "Accept": "*/*",
    "Connection": "keep-alive",
    "Authorization": "Bearer ****"
  },
  "http_method": "GET"
}
Attached a screenshot of the Cursor Pagination. I get the same result of just the first 50 records using
Copy code
response['data']['items'][-1]['last_activity_at'] }}
Any hint what I am doing wrong here? Api References: https://missiveapp.com/help/api-documentation/rest-endpoints#list-conversations
I was able to solve it by switching to "Custom" under the next page cursor setting. Was trail and error. Maybe we could update the documentation with some hints?
s
@Morris Clay thanks for the feedback! could you clarify what you changed alongside custom?
m
not much...