office 365 onedrive does not support paging -
i have read document of office 365 onedrive. have send 2 http requests:
1)https://graph.microsoft.com/v1.0/me/drive/root/children?$orderby=name&$top=5&$skip=0 2)https://graph.microsoft.com/v1.0/me/drive/root/children?$orderby=name&$top=5&$skip=5
but have received same result,anyone tell me whether office 365 onedrive supports paging?
onedrive's paging model little different skip+take. you'll make query like:
get https://graph.microsoft.com/v1.0/me/drive/root/children?$top=5
and in response should see usual array of values, along property called @odata.nextlink
. you'll want take url use request next page:
"@odata.nextlink": "https://graph.microsoft.com/v1.0/me/drive/root/children?$skiptoken=asdgasgsd"
get https://graph.microsoft.com/v1.0/me/drive/root/children?$skiptoken=asdgasgsd
you keep doing until don't @odata.nextlink
returned.
Comments
Post a Comment