User Guide
Integrating Breeze with a portal 37
To determine a user’s ID, given their login name and password:
1.
Log in as the user.
2.
Call the common-info API.
3.
Parse the returned XML to find the value of the user-id attribute of the user tag.
That value is the user’s ID.
To check whether an entered password is correct:
1.
Log in as the user.
2.
If the status code returned is ok, the password is correct.
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:
1.
Log in as the user.
2.
Call the report-my-courses API.
3.
Parse the returned XML and display the results.
For more information about the returned XML, see
my-courses on page 170.
Note: The BREEZESESSION cookie must be supplied with this request. For more information, see
“Logging in to Breeze” on page 29.
To list all the meetings the user has signed up to attend:
1.
Log in as the user.
2.
Call the report-my-meetings API.
3.
Parse the returned XML and display the results.
For more information about the returned XML, see
my-meetings on page 171.
To display the contents of the user’s content folder:
1.
Log in as the user.
2.
Call the sco-shortcuts API.
This API 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
baseurl and loginCookie variables that are set in the login
code in “Integrating Breeze with a directory service” on page 33:
<cfhttp url="#baseurl#api/xml?action=sco-shortcuts" method="post">
<cfhttpparam type="Cookie" name="BREEZESESSION" value="#loginCookie#">
</cfhttp>
3.
Determine the ID of the My Content folder by searching for the appropriate type attribute in
the returned
sco tags:
<cfset response= cfhttp.FileContent >
<cfset xml= XmlParse(response)>
<cfset contentScoElement= XmlSearch(xml, "//sco[@type='my-content']")>
<cfset contentSco= contentScoElement[1].XmlAttributes["sco-id"]>