4
Cisco Unity Connection Messaging Interface (CUMI) API -- Using the CUMI API for Broadcast Messages About Broadcast Messages , on page 1 Sending Broadcast Messages Reference, on page 1 About Broadcast Messages Broadcast messages are system-owned messages that are meant to be heard by all users. The target user is either the signed-in user or the user specified by an administrator by using the optional "userobjectid=<user object id>" parameter. Description Method URI Returns a list of broadcast messages that are active and have not yet been heard by the user. GET mailbox/broadcastmessages Returns the broadcast message voice file. GET mailbox/broadcastmessages/<message id>/voicefile Marks the broadcast message as heard by the target user. POST mailbox/broadcastmessages/<message id>?read Sends a broadcast message (see below). POST mailbox/broadcastmessages Sending Broadcast Messages Reference A broadcast message can be sent by a POST request to the URI noted in the table above. The content of the request is "mutipart/form-data". There must be two pieces of data in the request in the following order: 1. A broadcast message in either "application/xml" or "application/json" format. Cisco Unity Connection Messaging Interface (CUMI) API -- Using the CUMI API for Broadcast Messages 1

CiscoUnityConnectionMessagingInterface (CUMI)API- … · CiscoUnityConnectionMessagingInterface (CUMI)API--UsingtheCUMIAPIforBroadcast Messages •AboutBroadcastMessages,onpage1 •SendingBroadcastMessagesReference,onpage1

  • Upload
    others

  • View
    12

  • Download
    0

Embed Size (px)

Citation preview

Page 1: CiscoUnityConnectionMessagingInterface (CUMI)API- … · CiscoUnityConnectionMessagingInterface (CUMI)API--UsingtheCUMIAPIforBroadcast Messages •AboutBroadcastMessages,onpage1 •SendingBroadcastMessagesReference,onpage1

Cisco Unity Connection Messaging Interface(CUMI) API -- Using the CUMI API for BroadcastMessages

• About Broadcast Messages , on page 1• Sending Broadcast Messages Reference, on page 1

About Broadcast MessagesBroadcast messages are system-owned messages that are meant to be heard by all users. The target user iseither the signed-in user or the user specified by an administrator by using the optional "userobjectid=<userobject id>" parameter.

DescriptionMethodURI

Returns a list of broadcast messagesthat are active and have not yetbeen heard by the user.

GETmailbox/broadcastmessages

Returns the broadcast messagevoice file.

GETmailbox/broadcastmessages/<messageid>/voicefile

Marks the broadcast message asheard by the target user.

POSTmailbox/broadcastmessages/<messageid>?read

Sends a broadcast message (seebelow).

POSTmailbox/broadcastmessages

Sending Broadcast Messages ReferenceA broadcast message can be sent by a POST request to the URI noted in the table above. The content of therequest is "mutipart/form-data". There must be two pieces of data in the request in the following order:

1. A broadcast message in either "application/xml" or "application/json" format.

Cisco Unity Connection Messaging Interface (CUMI) API -- Using the CUMI API for Broadcast Messages1

Page 2: CiscoUnityConnectionMessagingInterface (CUMI)API- … · CiscoUnityConnectionMessagingInterface (CUMI)API--UsingtheCUMIAPIforBroadcast Messages •AboutBroadcastMessages,onpage1 •SendingBroadcastMessagesReference,onpage1

2. Audio data as "audio/wav."

The only user-modifiable fields for a broadcast message are the start date, end date, and the audio content.The rest of the fields are managed internally.

Cisco Unity Connection Messaging Interface (CUMI) API -- Using the CUMI API for Broadcast Messages2

Cisco Unity Connection Messaging Interface (CUMI) API -- Using the CUMI API for Broadcast MessagesSending Broadcast Messages Reference

Page 3: CiscoUnityConnectionMessagingInterface (CUMI)API- … · CiscoUnityConnectionMessagingInterface (CUMI)API--UsingtheCUMIAPIforBroadcast Messages •AboutBroadcastMessages,onpage1 •SendingBroadcastMessagesReference,onpage1

Schema

<xs:complexType name="BroadcastMessage"><xs:all minOccurs="0"><xs:element name="URI" type="xs:anyURI" minOccurs="0" /><xs:element name="ObjectId" type="xs:string" minOccurs="0"><xs:annotation><xs:documentation> The primary key for this table. A globally unique, system-generatedidentifier for a BroadcastMessage object.</xs:documentation></xs:annotation></xs:element><xs:element name="StreamFileObjectId" type="xs:string" minOccurs="0"><xs:annotation><xs:documentation>StreamFileObjectId - use StreamFile instead of this column. The uniqueidentifier of the StreamFile objectcontaining the name of the WAV file that is the broadcast message.</xs:documentation></xs:annotation></xs:element><xs:element name="VoiceFileURI" type="xs:anyURI" minOccurs="0" /><xs:element name="SubscriberObjectId" type="xs:string" minOccurs="0"><xs:annotation><xs:documentation> The unique identifier of the Subscriber object that sent this broadcastmessage.</xs:documentation></xs:annotation></xs:element><xs:element name="UserURI" type="xs:anyURI" minOccurs="0" /><xs:element name="CreationDate" type="xs:string" minOccurs="0"><xs:annotation><xs:documentation> The date and time when the message was created.</xs:documentation></xs:annotation></xs:element><xs:element name="StartDate" type="xs:string" minOccurs="0"><xs:annotation><xs:documentation> The date and time when the message becomes active.</xs:documentation></xs:annotation></xs:element><xs:element name="EndDate" type="xs:string" minOccurs="0"><xs:annotation><xs:documentation> The date and time when the message expires.</xs:documentation></xs:annotation></xs:element><xs:element name="LastModificationSubscriberObjectId" type="xs:string" minOccurs="0"><xs:annotation><xs:documentation> The unique identifier of the subscriber that last modified themessage.</xs:documentation></xs:annotation></xs:element><xs:element name="LastModificationUserURI" type="xs:anyURI" minOccurs="0" /><xs:element name="LastModificationDate" type="xs:string" minOccurs="0"><xs:annotation><xs:documentation> The date and time the message was last modified.</xs:documentation></xs:annotation></xs:element><xs:element name="StreamFile" type="xs:string" minOccurs="0"><xs:annotation><xs:documentation>Name of audio file for this broadcast message. The name of the WAV filecontainingthe recorded audio (voice name, greeting, etc.) for the parent object.</xs:documentation>

</xs:annotation></xs:element></xs:all></xs:complexType>

Cisco Unity Connection Messaging Interface (CUMI) API -- Using the CUMI API for Broadcast Messages3

Cisco Unity Connection Messaging Interface (CUMI) API -- Using the CUMI API for Broadcast MessagesSending Broadcast Messages Reference

Page 4: CiscoUnityConnectionMessagingInterface (CUMI)API- … · CiscoUnityConnectionMessagingInterface (CUMI)API--UsingtheCUMIAPIforBroadcast Messages •AboutBroadcastMessages,onpage1 •SendingBroadcastMessagesReference,onpage1

Cisco Unity Connection Messaging Interface (CUMI) API -- Using the CUMI API for Broadcast Messages4

Cisco Unity Connection Messaging Interface (CUMI) API -- Using the CUMI API for Broadcast MessagesSending Broadcast Messages Reference