Get Event Form Data (Second Life)

18 June 2016

  • Release 9.92 - added.
geteventformdata (Commands)
TypeCorrade progressive command
Commandgeteventformdata
DescriptionThe geteventformdata command can be used to query a Corrade structure based on the Linden Lab Second Life event submission form data.
Permissionsinteract
Parametersgroup, password, secret
Last ChangesRelease 9.92 - added.

Be aware that by sending a firstname, lastname and secret you are revealing your account credentials to the machine that is running Corrade. On the other hand, Corrade only uses HTTPs encrypted requests such that once the data gets to Corrade it will be safely used to interact with the Second Life website. Nevertheless, be weary about using this command in case you are not the sole person with access to the Corrade machine and if you care about your account possibly being compromised.

The geteventformdata command can be used to query a Corrade structure based on the Linden Lab Second Life event submission form data. The command can be used to retrieve possible locations or possible hours when you are allowed to schedule an event in Second Life.

Command Required Parameters Required Corrade Permissions Example
geteventformdata group, password, secret interact
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "geteventformdata",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            // The Second Life log-in password for
            // the current account that Corrade is
            // connecting on.
            "secret", "supa^secret",
            // Query available event locations and
            // the possible event categories.
            "data", wasListToCSV(
                [
                    "Location",
                    "Category"
                ]
            ),
            "callback", wasURLEscape(URL)
        ]
    )
);
Optional Parameter Possible Value Meaning
firstname The first name of an account. By sending a first name and a last name Corrade will instead query the account transaction data for that account instead of the current account that Corrade is connecting on.
lastname The last name of an account.

Structure

The data parameter can be set to any property in the Corrade EventFormData structure - such as Category, Duration, etc...

/// <summary>
///     Form data for Second Life events.
/// </summary>
public class EventFormData
{
    public Dictionary<string, uint> Category;
    public Dictionary<string, uint> Duration;
    public Dictionary<string, string> Location;
    public Dictionary<string, string> Time;
 
    public EventFormData()
    {
        Location = new Dictionary<string, string>();
        Duration = new Dictionary<string, uint>();
        Time = new Dictionary<string, string>();
        Category = new Dictionary<string, uint>();
    }
}

The data returned can then be passed to as part of the addevent command or the modifyevent command. Intuitively, if you have your own land and you will not be hosting events allover SL then you would use this command just a few times in order to grab the parameters required by the addevent command or the modifyevent command command.


secondlife/scripted_agents/corrade/api/progressive/commands/geteventformdata.txt · Last modified: 2017/02/22 18:29 (external edit)

Access website using Tor


For the copyright, license, warranty and privacy terms for the usage of this website please see the license and privacy pages.