new_releases עדכונים: בדקו את
נתוני הגרסה כדי לגלות תכונות חדשות ועדכוני מוצרים.
REST Resource: phones.agentEvents
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
משאב: AgentEvent
ייצוג ב-JSON |
{
"name": string,
"eventType": enum (AgentEvent.EventType ),
"messageId": string,
"sendTime": string
} |
שדות |
name |
string
השדה הזה מוגדר על ידי פלטפורמת RBM. אל תכללו אותו כשיוצרים אירוע של נציג. השדה פותר את המחרוזת 'phones/{E.164}/agentEvents/{eventId}', כאשר {E.164} הוא מספר הטלפון של המשתמש בפורמט E.164 ו-{eventId} הוא מזהה האירוע של הנציג שהוקצה על ידי הנציג.
|
eventType |
enum (AgentEvent.EventType )
סוג האירוע של הסוכן.
|
messageId |
string
המזהה של הודעת המשתמש שהאירוע של הסוכן מתייחס אליה. השדה הזה רלוונטי רק לאירועים של סוכנים מסוג READ.
|
sendTime |
string (Timestamp format)
השדה הזה מוגדר על ידי פלטפורמת RBM. אל תכללו אותו כשאתם יוצרים הודעה מסוכן. השדה הזה מציין את השעה שבה האירוע נשלח למשתמש. הפלט שנוצר תמיד יהיה בפורמט RFC 3339, עם נורמליזציה של Z ושימוש ב-0, 3, 6 או 9 ספרות אחרי הנקודה. אפשר להשתמש גם בהיסטים אחרים מלבד Z. דוגמאות: "2014-10-02T15:01:23Z" , "2014-10-02T15:01:23.045123456Z" או "2014-10-02T15:01:23+05:30" .
|
AgentEvent.EventType
טיפוסים בני מנייה (enum) |
TYPE_UNSPECIFIED |
לא צוין. |
IS_TYPING |
נציג/ת התמיכה מקליד/ה. |
READ |
ההודעה שנשלחה על ידי המשתמש נקראה על ידי הנציג. |
Methods |
|
שליחת אירוע מהנציג למשתמש. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-08-22 (שעון UTC).
[null,null,["עדכון אחרון: 2025-08-22 (שעון UTC)."],[[["\u003cp\u003e\u003ccode\u003eAgentEvent\u003c/code\u003e represents an event sent from an agent to a user, containing details about the event's type and status.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eeventType\u003c/code\u003e field defines the type of agent event, which can include \u003ccode\u003eIS_TYPING\u003c/code\u003e or \u003ccode\u003eREAD\u003c/code\u003e, while \u003ccode\u003eTYPE_UNSPECIFIED\u003c/code\u003e means it was not specified.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003emessageId\u003c/code\u003e field indicates which user message the agent event corresponds to, and is specifically used for \u003ccode\u003eREAD\u003c/code\u003e type events.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003esendTime\u003c/code\u003e field, formatted as a Timestamp, signifies when the event was dispatched to the user, accepting RFC 3339 formats.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ecreate\u003c/code\u003e method within \u003ccode\u003ephones.agentEvents\u003c/code\u003e allows for the sending of an event from the agent to the user.\u003c/p\u003e\n"]]],[],null,["# REST Resource: phones.agentEvents\n\nResource: AgentEvent\n--------------------\n\nAn event from the agent to the user.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"eventType\": enum (/business-communications/rcs-business-messaging/reference/rest/v1/phones.agentEvents#AgentEvent.EventType), \"messageId\": string, \"sendTime\": string } ``` |\n\n| Fields ||\n|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` This field is set by the RBM platform. Do not include it when creating an agent event. The field resolves \"phones/{E.164}/agentEvents/{eventId}\", where {E.164} is the user's phone number in E.164 format and {eventId} is the agent-assigned ID of the agent event. |\n| `eventType` | `enum (`[AgentEvent.EventType](/business-communications/rcs-business-messaging/reference/rest/v1/phones.agentEvents#AgentEvent.EventType)`)` The type of the agent event. |\n| `messageId` | `string` The ID of the user message that the agent event pertains to. This field is only applicable for agent events of type READ. |\n| `sendTime` | `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` This field is set by the RBM platform. Do not include it when creating an agent message. The field resolves the time when the event is sent to the user. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than \"Z\" are also accepted. Examples: `\"2014-10-02T15:01:23Z\"`, `\"2014-10-02T15:01:23.045123456Z\"` or `\"2014-10-02T15:01:23+05:30\"`. |\n\nAgentEvent.EventType\n--------------------\n\nType of an agent event.\n\n| Enums ||\n|--------------------|--------------------------------------------------------|\n| `TYPE_UNSPECIFIED` | Not specified. |\n| `IS_TYPING` | The agent is typing. |\n| `READ` | The message sent by a user has been read by the agent. |\n\n| Methods ------- ||\n|-----------------------------------------------------------------------------------------------------------|------------------------------------------|\n| ### [create](/business-communications/rcs-business-messaging/reference/rest/v1/phones.agentEvents/create) | Sends an event from the agent to a user. |"]]