Method: customEmojis.list
列出已驗證使用者可看見的自訂表情符號。需要使用者驗證。
HTTP 要求
GET https://chat.googleapis.com/v1/customEmojis
這個網址使用 gRPC 轉碼語法。
查詢參數
參數 |
pageSize |
integer
選用設定。傳回的自訂表情符號數量上限。服務傳回的自訂表情符號可能少於這個值。如未指定,則預設值為 25。許可的最大值為 200;超出的數值將一律指定為 200。
|
pageToken |
string
選用設定。(如果是從先前的查詢繼續執行)。 從先前呼叫的列出自訂表情符號傳回的頁面權杖。提供此項目即可擷取後續網頁。 進行分頁時,篩選器值應與提供網頁權杖的呼叫相符。傳遞其他值可能會導致非預期的結果。
|
filter |
string
選用設定。查詢篩選器。 支援依創作者篩選。 如要依創作者篩選,您必須指定有效的值。目前只有 creator("users/me") 和 NOT creator("users/me") 可篩選自訂表情符號,依據是否由通話使用者建立。 舉例來說,下列查詢會傳回呼叫端建立的自訂表情符號:
creator("users/me")
伺服器會拒絕無效的查詢,並傳回 INVALID_ARGUMENT 錯誤。
|
回應主體
回覆自訂表情符號清單。
如果成功,回應主體會含有以下結構的資料:
JSON 表示法 |
{
"customEmojis": [
{
object (CustomEmoji )
}
],
"nextPageToken": string
} |
欄位 |
customEmojis[] |
object (CustomEmoji )
未排序的清單。要求 (或第一個) 頁面中的自訂表情符號清單。
|
nextPageToken |
string
可做為 pageToken 傳送的權杖,用於擷取後續網頁的結果。如果留空,表示沒有後續網頁。
|
授權範圍
需要下列其中一種 OAuth 範圍:
https://www.googleapis.com/auth/chat.customemojis
https://www.googleapis.com/auth/chat.customemojis.readonly
詳情請參閱授權指南。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-02-27 (世界標準時間)。
[null,null,["上次更新時間:2025-02-27 (世界標準時間)。"],[[["Lists custom emojis visible to the authenticated user, requiring user authentication and specific authorization scopes."],["Allows filtering by creator to see emojis created by the calling user or others."],["Supports pagination to retrieve large lists of custom emojis, with a default page size of 25 and a maximum of 200."],["Returns a list of custom emojis and a token for retrieving subsequent pages if available."],["Requires an empty request body and provides a structured JSON response containing emoji details."]]],["This document details how to list custom emojis in Google Chat via an HTTP GET request to `https://chat.googleapis.com/v1/customEmojis`. The request requires user authentication and supports optional query parameters: `pageSize` (default 25, max 200), `pageToken` (for pagination), and `filter` (to filter by emoji creator). The request body must be empty. The response includes a list of `customEmojis` and an optional `nextPageToken` for pagination. Authorization requires either `chat.customemojis` or `chat.customemojis.readonly` scope.\n"]]