38
Chapter 3: Common Tasks
4.
If you want to provide links to content items in the form of absolute URLs, determine the
domain name of the folder:
<cfset domainElement= XmlSearch(xml,
"//sco[@tree-id='#myTreeId#']/domain-name")>
<cfset domainName= domainElement[1].XmlText>
5.
Call the
sco-contents
API, using the folder’s SCO ID.
The following API provides a list of the contents of the specified folder:
<cfhttp url="#baseurl#api/xml?
action=sco-contents&sco-id=#contentSco#" method="post">
<cfhttpparam type="Cookie" name="BREEZESESSION" value="#loginCookie#">
</cfhttp>
6.
Parse the returned XML and display relevant information to the user:
<cfset response= cfhttp.FileContent >
<cfset contentXml= XmlParse(response)>
<cfset contents= XmlSearch(contentXml, "//sco")>
<cfset contentCount= ArrayLen(contents)>
<cfoutput>
<table>
<tr>
<th>SCO ID</th>
<th>Name</th>
<th>Type</th>
</tr>
<cfloop index="i" from="1" to="#contentCount#">
<cfset item=contents[#i#]>
<tr>
<td>#item.XmlAttributes["sco-id"]#</td>
<td>#item.name.XmlText#</td>
<td>#item.XmlAttributes["type"]#</td>
</tr>
</cfloop>
</table>
</cfoutput>
7.
To provide links to launch content items, call the
sco-info
API for each item, and determine
the item’s full absolute URL by appending the returned
url-path
tag to the domain name you
acquired.
This results in a URL such as http://breeze.example.com/p12345678/.
For more information about launching content, see
“About security and launching content”
on page 19
.
To create a new meeting:
1.
Log in as the user.
2.
(Optional) Let the user determine the ID of the folder in which to create the new meeting, using
a web-based interface. If you don’t specify a folder, the meeting is created in the my-meetings
folder. You can determine the ID of the my-meetings folder by calling the
sco-shortcuts
API.
Содержание BREEZE 5
Страница 1: ...Breeze Integration Guide ...
Страница 40: ...40 Chapter 3 Common Tasks ...