Pagination in HTTP Client

asked 2017-10-04 01:24:59 -0500

sujeet gravatar image

updated 2017-10-04 14:33:02 -0500

metadaddy gravatar image

I was using http client for facebook data extraction but am not getting next page data as have to use pagination. when i was using pagination it gives me error like "list required but got string". How to fix pagination for this?

edit retag flag offensive close merge delete

Comments

Can you give an example of the response data?

metadaddy gravatar imagemetadaddy ( 2017-10-04 14:32:42 -0500 )edit

data:(Map) "id"(String):"xxxxxxxxx" "message"(String):"vvvvvvvv" pagination: "next":"xxxxxxxx" "before":"nnnnnnn" Here data is a map type .Inside pagination "next " is the parameter which contains the url of the next page. But as pagination requires List or map not string.

Maithri gravatar imageMaithri ( 2017-10-17 01:22:08 -0500 )edit

How can i make this string to a list to achieve pagination using http client

Maithri gravatar imageMaithri ( 2017-10-17 01:22:33 -0500 )edit

I believe this https://issues.streamsets.com/browse/SDC-4094 will help in your case which will be included SDC 3.1.0.0 release this week.

Jisun gravatar imageJisun ( 2018-02-05 15:26:19 -0500 )edit