使用ADF读取分页的API数据的问题
我正在尝试使用ADF复制活动从分页API中读取数据。在第一次访问API时,仅使用基本URL(没有任何查询参数)。当API返回数据时,它将具有带有一些令牌的键称为光标。必须将其作为查询字符串传递才能获取下一页。如何使用ADF实施此操作?如何在基本URL中附加“ ?cursor = ”,然后从API响应中添加光标值
第一页:{{base url}}#return with json带有键称为光标
从第二页:{{base url}}?cursor = {{json响应中的光标键的值}}}}}}}}}}}}}}}}}}}}
在分页的复制活动中使用了查询参数。但是它不起作用
I am trying to read the data from a paginated API using ADF copy activity. While accessing the API at first time, only the base URL is used(without any query params). When API returns the data, it will have a key called cursor with some token. This has to be passed as query string to get the next page. How to implement this using ADF?. How to append "?cursor=" in the base URL and then add cursor value from API response
First Page : {{Base URL}} #returns a JSON with a key called cursor
From Second Page : {{Base URL}}?cursor = {{value of cursor key in JSON Response}}
I have tried using Query Parameters inside the Copy Activity of pagination. But it is not working
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将Web活动用于光标值,并将其传递给复制活动中的相对URL。
例如:
@concat('?cursor =',activity('web1')。output.cursor)
You can use web activity to the cursor value and pass it to the relative URL in copy activity.
Ex:
@concat('?cursor=',activity('Web1').output.cursor)