[英]Microsoft Graph API : Get Tasks of users in a group with PHP
嗨,我正在嘗試構建一個儀表板,顯示 Planner 計划、日歷事件和 SharePoint 文件等中發生的事情的摘要。我想在不同的表格中顯示用戶的任務。 我已設法授權並獲取用戶列表,並按照文檔從計划中獲取所有任務。 但是我得到的任務返回的是這樣的。 我可以看到任務分配給“9d2e533d-6e8e-xxx-8959-846xxxbe192ab”,但我如何獲取/打印這個? 我可以使用 getTitle() 方法獲取任務標題。 但是我如何獲得受讓人? 或者有沒有更好的方法來根據用戶獲取任務?
{
"@odata.etag": "W/\"JzEtVGFzayxxBAxAQxxxEBAWCc=\"",
"planId": "UeRhlCyHxxxxxk3CpgABpFg",
"bucketId": "GWqGxxxxak-YzYxxx0-bm-5xxxxzZ9",
"title": "Arge 2",
"orderHint": "85xxx467xxxx41871P|",
"assigneePriority": "",
"percentComplete": 50,
"startDateTime": null,
"createdDateTime": "2020-06-14T12:54:41.8747394Z",
"dueDateTime": null,
"hasDescription": false,
"previewType": "automatic",
"completedDateTime": null,
"completedBy": null,
"referenceCount": 0,
"checklistItemCount": 0,
"activeChecklistItemCount": 0,
"conversationThreadId": null,
"id": "8BxxxtlHQxxxGPR0xxxgAMfWV",
"createdBy": {
"user": {
"displayName": null,
"id": "75c90cdf-a9fc-4f55-860a-87076b9a31ef"
}
},
"appliedCategories": {},
"assignments": {
"9d2e533d-6e8e-xxx-8959-846xxxbe192ab": {
"@odata.type": "#microsoft.graph.plannerAssignment",
"assignedDateTime": "2020-06-14T13:02:07.0513638Z",
"orderHint": "858609xxxxx8441xxx388P#",
"assignedBy": {
"user": {
"displayName": null,
"id": "75cx0cdf-a9fc-4xxx-860a-87xxxx9a31ef"
}
}
}
}
},
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.