Hi, I've made an REST connection, but that system uses pagination to deliver data. Thats a normal way of working.
Can I set the pagination loop somewhere in Aware so I get all the data I want instead of the first page only?
Pagination in REST call
Pagination in REST call
Using 8.7 Professional 3025 on MySQL/Windows
Re: Pagination in REST call
I've done something like this while syncing an outlook calendar.
Here is a link to how it works with Microsoft graph API:
https://docs.microsoft.com/en-us/graph/paging
What happens is if you select to receive 100 records at a time, and there are more than 100 records, then a 'page 2' (@odata:nextLink) property is returned. You can, in Aware, check if this property is defined in the return, and pass it to the API to receive page 2, and so on.
If you're still stuck with this let me know and I'll find exactly how I did this.
It also might help to know what you're integrating so we can look at the documentation because providers do things a bit differently.
Here is a link to how it works with Microsoft graph API:
https://docs.microsoft.com/en-us/graph/paging
What happens is if you select to receive 100 records at a time, and there are more than 100 records, then a 'page 2' (@odata:nextLink) property is returned. You can, in Aware, check if this property is defined in the return, and pass it to the API to receive page 2, and so on.
If you're still stuck with this let me know and I'll find exactly how I did this.
It also might help to know what you're integrating so we can look at the documentation because providers do things a bit differently.
Re: Pagination in REST call
Hi Steve,
Ok, I'd like to see that, because AwareIM does not support loops. How did you do that?
I'm connection to our own LearnLinq system: see: https://demo.learnlinq.com/WebAPI/docum ... /Users_Get
You see that we use a size and a page param. We need to loop through the pages and I cannot see how this should be done with Aware. Tia, Rob
Ok, I'd like to see that, because AwareIM does not support loops. How did you do that?
I'm connection to our own LearnLinq system: see: https://demo.learnlinq.com/WebAPI/docum ... /Users_Get
You see that we use a size and a page param. We need to loop through the pages and I cannot see how this should be done with Aware. Tia, Rob
Using 8.7 Professional 3025 on MySQL/Windows
Re: Pagination in REST call
Do you perhaps have Skype? It will be easier to assist there.
Re: Pagination in REST call
No Skype, we can use Join.me ?
If you like I send you the temp link
If you like I send you the temp link
Using 8.7 Professional 3025 on MySQL/Windows
Re: Pagination in REST call
Hi Steve,
I've send you a PM with details a while ago. Did you have time to take a look at it?
Tia,
Rob
I've send you a PM with details a while ago. Did you have time to take a look at it?
Tia,
Rob
Using 8.7 Professional 3025 on MySQL/Windows
Re: Pagination in REST call
Hi Rob.
I'm sending you a mail now, apologies!
I'm sending you a mail now, apologies!
-
- Posts: 7525
- Joined: Sun Apr 24, 2005 12:36 am
- Contact:
Re: Pagination in REST call
Aware IM supports LIMIT keyword as part of the FIND action. This can be used to fetch a particular page. Checkout the Rule Language Guide for details
Aware IM Support Team