getSchedule 不返回 odata.nextlink [英] getSchedule return no odata.nextlink
问题描述
抱歉,我是 MS Graph 的新手.我正在开发一个应用程序来提取我公司过去一小时/天/周/月的会议历史数据.首先我从 getSchedule 端点开始.我发现我从未在响应中看到 odata.nextlink,即使我设置了 60 天的大时间范围.仍然没有odata.nextlink.我的问题是:
sorry I'm new to MS Graph. I'm working on a app to extract meeting history data for past hour/day/week/month for my company. first I start with getSchedule endpoint. I found I never see odata.nextlink in the response, even I make the large time range, 60 days. still no odata.nextlink. my quesion is:
我没有足够的会议?如果是,多少次会议会导致 odata.nextlink?
I don't have enough meeting? if yes, how many meetings will cause odata.nextlink?
有没有可能,getSchedule 永远不会返回 odata.nextlink?
is it possible, getSchedule will never return odata.nextlink?
我也尝试添加 top=2, (v1.0/me/calendar/getSchedule?$top=2),但响应中仍然没有 odata.nextlink.
I also try add top=2, (v1.0/me/calendar/getSchedule?$top=2), still no odata.nextlink in the response.
谢谢韦斯
推荐答案
Odata.Nextlink 仅在您收到更多记录作为响应时才提供.有一个 分页概念,其中 api 有自己的默认记录数每页.在这里,由于您使用的是 getScheduler,它为您提供了对您在有效负载中询问的用户或分布式列表或资源的不同计划的响应.当您需要单个页面中的 HTTP 调用数据时使用 Top.它可以接受 1 到 999 之间的值.请检查此文档.
Odata.Nextlink is provided only when there are more number of records you get as a response. There is a concept of paging where the api's have their own default number of records per page. Here since you are using getScheduler, it gives you a response of different schedules of users or distributed list or resources you asked in the payload. Top is used when you want data of a HTTP call in a single page. It can accept values between 1 and 999. Please check this document.
还尝试使用 101 个用户帐户,Max 这就是答案.我不确定确切的数字,因为我没有检查那么多用户.我只看到/users 端点的每页 100 个,所以应该是这样.
Also try with 101 user accounts, Max this would be the answer. I am not sure about the exact number since I didn't check for that many users. I have seen only 100 per page for /users endpoint so this should be it.
这篇关于getSchedule 不返回 odata.nextlink的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!