PowerShell调用RestMethod分页-FollowRelLink不工作
我试图从具有分页功能的RESTAPI获取数据。我曾尝试使用PowerShell调用RestMethod分页-FollowRelLink不工作,powershell,powershell-7.0,Powershell,Powershell 7.0,我试图从具有分页功能的RESTAPI获取数据。我曾尝试使用-FollowRelLink选项,该选项是调用rest方法的一部分,但该方法不起作用。下面的API最多返回175条记录 PowerShell: object "list" total_cards 285 has_more true next_page "https://api.scryfall.com/cards/search?format=json&include_extras=fals
-FollowRelLink
选项,该选项是调用rest方法的一部分,但该方法不起作用。下面的API最多返回175条记录
PowerShell:
object "list"
total_cards 285
has_more true
next_page "https://api.scryfall.com/cards/search?format=json&include_extras=false&include_multilingual=false&order=name&page=2&q=in%3Aeld&unique=cards"
data […]
$Scryfall\u Set\u Card\u Data=Invoke rest方法”https://api.scryfall.com/cards/search?order=name&q=in%3AELD“-FollowRelLink
写入主机$Scryfall\u Set\u Card\u Data.Data.Count-ForegroundColor青色
响应:
object "list"
total_cards 285
has_more true
next_page "https://api.scryfall.com/cards/search?format=json&include_extras=false&include_multilingual=false&order=name&page=2&q=in%3Aeld&unique=cards"
data […]
Write Host…
输出175尝试添加参数MaximumFollowRelLink
,其数值大于1。我尝试了,但它仍然返回了第一页的数据。