What I want to achieve is getting the Link for it to work with pagination and for that I need to have the header. How do fix this, is there a bug in the client?
No I haven’t, adding yet another language to my app adds much more complexity than I’d like, especially for only one endpoint.
The way got around this was to use the “With a plain REST client” approach rather than the “REST resources” approach as described in this doc.
let pageInfo: { [key: string]: any } = {
session: session,
limit: 10,
date_min: startDate,
date_max: endDate,
}
new client.clients.Rest({session})
.get
This returns headers with a link to the next page