如要擷取第三方應用程式的所有授權事件,請使用下列 GET HTTP 要求,並附上「授權文件」中所述的授權權杖。如要進一步瞭解要求查詢字串和回應屬性,請參閱 API 參考資料。為了方便閱讀,以下範例會以換行格式呈現:
GET https://admin.googleapis.com/admin/reports/v1/activity/users/all
/applications/token?endTime=end date&startTime=start date
&maxResults=maximum number of events returned on a response page
GET https://admin.googleapis.com/admin/reports/v1/activity/users/all/applications/token?maxResults=25
依事件名稱擷取授權權杖事件
在某些情況下,您可能需要擷取特定事件,例如應用程式的存取權是否已遭到撤銷。如要這麼做,請使用下列表單的 GET HTTP 要求:
GET https://admin.googleapis.com/admin/reports/v1/activity/users/all
/applications/token?maxResults=maximum number of events returned on a response page
&eventName=name of the OAuth token event
以下範例說明如何擷取網域的所有 revoke 事件:
GET https://admin.googleapis.com/admin/reports/v1/activity/users/all/applications/token?eventName=revoke&maxResults=25
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2024-11-28 (世界標準時間)。"],[[["This report provides insights into third-party websites and applications that your users have granted access to within the last 180 days."],["You can retrieve all authorization events or filter by specific events, such as token revocation, using the provided API endpoints."],["The report includes details like the third-party domain, authorization scopes granted, and the time of the event."],["Usage of this report must comply with your Customer Agreement and be for lawful purposes only."],["Refer to the authorization documentation and API reference for detailed information on request parameters and response properties."]]],[]]