Fileref:sl distrib/sl distrib channel linker.php

From SLIS Second Life Wiki

Folder.gif (parent)

This Linker Script allows in-world distribution objects to send data to the Moodle database. There are two items of data which must be sent:

  1. the key of the XML-RPC remote data channel on which the Distributor object can receive requests
  2. a list of items which the Distributor object can give to avatars


Contents

Dependencies

Sloodle files:


Parameters

The following HTTP parameters are required when requesting this script:

  • sloodlepwd = the site's Prim Password
  • sloodlechannel = specifies the UUID of the XMLRPC channel which the Distributor object has opened
  • sloodlecontents = a pipe-delimited list of inventory item names (e.g. "Sloodle+Set+0.704|Sloodle+WebIntercom|Sloodle+Quiz+Chair")


Response

  • If fully successful, then the response status code is 1.
  • If a required parameter was not specified, code -811 is returned, usually with an error message in the first data line
  • If the system fails to store some of the data, then code -101 is returned.


Algorithm

  1. Construct SloodleLSLHandler object
  2. Process basic request data
  3. Authenticate request
  4. Fetch additional parameters
  5. Store the channel key (terminate on failure)
  6. Store the inventory list (terminate on failure)
  7. Construct and render the response
  8. Terminate the script


This page is part of the SLOODLE documentation
Docs: Users | Administrators | Developers
Wiki Frontpage Sloodle.org
Toolbox
LANGUAGES