Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

indent

Prepare hash: [timestamp + username + serverID + serverKey]

sha1(1roger01lmslms) = a8c722c31ac21e719145d15febf6df246ea16d16

URL:

http://lams-server/lams/services/xml/LearningDesignRepository?username=roger01&datetime=1&serverId=lms&courseId=123&courseName=lola&mode=2&firstName=Roger&lastName=Moore&email=roger@gmail.com&country=AU&lang=en&hashValue=a8c722c31ac21e719145d15febf6df246ea16d16

Result:

Shows me all the lessons available for Roger to create lessons. You can see "Some sequence" within Roger Moore's personal folder.

Code Block
xml
languagehtml/xml
linenumberstrue
<?xml version="1.0" encoding="UTF-8"?>
<Folder name="My Workspace">
   <Folder name="Roger Moore">
      <LearningDesign name="Some sequence" resourceId="2173" />
   </Folder>
   <Folder name="My Courses">
      <Folder name="lms_lola">
         <Folder name="lms_lola Run Sequences" />
      </Folder>
   </Folder>
   <Folder name="Public Folder">
      <LearningDesign name="11" resourceId="264" />
      <LearningDesign name="bbb" resourceId="318" />
      <LearningDesign name="map_sequence" resourceId="2169" />
      <LearningDesign name="map_sequence_2" resourceId="2170" />
      <LearningDesign name="map_sequence_3" resourceId="2171" />
      <LearningDesign name="multiple leaders" resourceId="2065" />
      <LearningDesign name="Sample Activity" resourceId="2151" />
      <LearningDesign name="Test1" resourceId="1482" />
      <LearningDesign name="Τηλεδιάσεκεψη" resourceId="324" />
      <Folder name="ABC">
         <LearningDesign name="123" resourceId="203" />
         <LearningDesign name="44" resourceId="205" />
      </Folder>
   </Folder>
</Folder>

...

indent

Prepare hash: [timestamp + username + serverID + serverKey]

sha1(1roger01lmslms) = a8c722c31ac21e719145d15febf6df246ea16d16

URL:

http://lams-server/lams/services/xml/LessonManager?username=roger01&serverId=lms&datetime=1&courseId=123&ldId=2173&method=start&title=Lesson01&desc=somedesc&hashValue=a8c722c31ac21e719145d15febf6df246ea16d16

Returns:

The lessonId ready to be used

Code Block
xml
languagehtml/xml
linenumberstrue
<?xml version="1.0" encoding="UTF-8"?>
<Lesson lessonId="1537" />

...