MACROMEDIA BREEZE-USING THE BREEZE XML WEB SERVICES Use Manual page 33

Using the breeze xml web services
Table of Contents

Advertisement

To determine a user's ID, given their login name and password:
Log in as the user.
1.
Call the
2.
common-info
Parse the returned XML to find the value of the
3.
is the user's ID.
To check whether an entered password is correct:
Log in as the user.
1.
If the status code returned is
2.
This procedure is the only way to check a password; for security reasons, Breeze doesn't let you
request a user's password from the server.
To list all the courses the user is enrolled in:
Log in as the user.
1.
Call the
2.
report-my-courses
Parse the returned XML and display the results. For more information about the returned
3.
XML, see
my-courses
To list all the meetings the user has signed up to attend:
Log in as the user.
1.
Call the
2.
report-my-meetings
Parse the returned XML and display the results. For more information about the returned
3.
XML, see
my-meetings
To display the contents of the user's content folder:
Log in as the user.
1.
Call the
2.
sco-shortcuts
This action provides the location of the root folder of the current account as well as the
locations of other folders, such as the current user's meetings and other content.
The following code uses the same
set in the login code in
<cfhttp url="#baseurl#api/xml?action=sco-shortcuts&accesskey=#accesskey#"
method="post">
<cfhttpparam type="Cookie" name="BREEZESESSION" value="#loginCookie#">
</cfhttp>
Determine the ID of the my-content folder, by searching for the appropriate
3.
the returned
tags:
sco
<cfset response= cfhttp.FileContent >
<cfset xml= XmlParse(response)>
<cfset contentScoElement= XmlSearch(xml, "//sco[@type='my-content']")>
<cfset contentSco= contentScoElement[1].XmlAttributes["sco-id"]>
action.
, the password is correct.
"ok"
action.
on page
137.
action.
on page
138.
action.
,
baseurl
accesskey
"Integrating Breeze with a directory service" on page
attribute of the
user-id
, and
loginCookie
Integrating Breeze with a portal
tag. That value
user
variables that are
28:
attribute in
type
33

Advertisement

Table of Contents
loading

This manual is also suitable for:

Breeze

Table of Contents