Microsoft Graph API Groups Delta Query Never Returns Delta Query (Infiinite loop with nextLink)

前端 未结 2 1642
囚心锁ツ
囚心锁ツ 2021-01-26 04:24

While working with Microsoft Graph Explorer, I noticed that when you submit a groups delta request like https://graph.microsoft.com/beta/groups/delta, you will get a response wi

2条回答
  •  無奈伤痛
    2021-01-26 05:02

    Stack is the correct place to ask questions like this. Our github issues are to raise content issues, not asking how to use the API itself.

    There is a specific doc that shows you how to get changes on the groups api here in our documentation https://docs.microsoft.com/en-us/graph/delta-query-groups

    When you call you'll get the first results back.

    GET https://graph.microsoft.com/v1.0/groups/delta?$select=displayName,description&$expand=members
    

    Then rather than making this exact same call next time, you would call the @odata.nextLink that was returned in the response to request above which includes a skip token.

    GET https://graph.microsoft.com/v1.0/groups/delta?$skiptoken=pqwSUjGYvb3jQpbwVAwEL7yuI3dU1LecfkkfLPtnIjvB7XnF_yllFsCrZJ
    

    a third call, you would call the @odata.nextLink from the second response. The @odata.nextLink should be different bewtween these requests.

提交回复
热议问题