DevNet Associate DEVASC 200-901 Official Certification Guide by Adrian Iliesiu (z-lib.org)

(andrew) #1
MDA0Y2VlMzktNDc2Ni00NzI5LWFiNmYtZmNmYzM3OTkyNjMxNmI0ND-
VmNDktNGE1_PF84_consumer",
"Content-Type": "application/json"
}
RESPONSE = requests.request("POST", URL,
data=json.dumps(PAYLOAD), headers=HEADERS)
pprint.pprint(json.loads(RESPONSE.text))

Messages API


Messages are communications that occur in a room. In
Webex Teams, each message is displayed on its own line,
along with a timestamp and sender information. You can
use the Messages API to list, create, and delete messages.


Message can contain plaintext, rich text, and a file
attachment. Table 10-7 shows the API for sending
messages to Webex Teams.


Table 10-7 Webex Teams: Message API

MethodAPIDescription

GET https://webexapis.com/v1/mes
sages

List messages

GET https://webexapis.com/v1/mes
sages/direct

List one-to-one
message

POS
T

https://webexapis.com/v1/mes
sages

Post a new
message

GET https://webexapis.com/v1/mes
sages/{messageId}

Get details about
a message

DEL
ETE

https://webexapis.com/v1/mes
sages/{messageId}

Delete a message
Free download pdf