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 APIMethodAPIDescriptionGET https://webexapis.com/v1/mes
sagesList messagesGET https://webexapis.com/v1/mes
sages/directList one-to-one
messagePOS
Thttps://webexapis.com/v1/mes
sagesPost a new
messageGET https://webexapis.com/v1/mes
sages/{messageId}Get details about
a messageDEL
ETEhttps://webexapis.com/v1/mes
sages/{messageId}Delete a message