【问题标题】:$top and $skip parameter to obtain places instead of @odata.nextLink$top 和 $skip 参数来获取位置而不是 @odata.nextLink
【发布时间】:2022-09-27 14:57:30
【问题描述】:

如何使用 $top 和 $skip 参数获取用户?

在运行https://graph.microsoft.com/v1.0/places/microsoft.graph.room?$count=true 时,我看到响应中缺少@odata.nextLink。有没有办法使用 $top 和 $skip 参数来检索剩余的结果?

    标签: azure-active-directory microsoft-graph-api microsoft-graph-sdks


    【解决方案1】:

    是的,支持$top$skip 参数。

    返回前 5 个房间

    GET https://graph.microsoft.com/v1.0/places/microsoft.graph.room?$top=5
    

    返回接下来的 5 个房间

    GET https://graph.microsoft.com/v1.0/places/microsoft.graph.room?$top=5&$skip=5
    

    【讨论】:

      猜你喜欢
      • 2017-02-16
      • 2022-01-03
      • 1970-01-01
      • 2018-12-09
      • 2012-09-17
      • 1970-01-01
      • 2023-03-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多