1 March 2019

4 February 2015

Corrade is able to search directory services for classifieds, events, groups, land, people and places.

CommandRequired ParametersRequired Corrade PermissionsExample
directorysearchgroup, password, type, name1)directory
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "directorysearch",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "type", "event",
            "name", "hunt"
        ]
    )
);
ParameterPossible ValuesDescription
typeclassified, event, group, land, people, placesThe directory search type.

The results can be filtered using the optional data parameter which follows the libopenmetaverse data structures of each search type. In order to do so, supply a CSV list to the data parameter containing pairs of fields or properties and the desired value.

ParameterPossible ValuesOptional ParameterStructureExample
typeclassifieddataClassified
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "directorysearch",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "type", "classified",
            "name", "hunt",
            "timeout", 10000,
            "data", wasListToCSV(
                [
                    "Price",
                    73888
                ]
            ),
            "callback", wasURLEscape(URL)
        ]
    )
);
nameA string to search the name by.
eventdataEvent Search Data
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "directorysearch",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "type", "event",
            "name", "hunt",
            "timeout", 10000,
            "data", wasListToCSV(
                [
                    "Owner",
                    "fc785fe9-f15b-431d-9f2f-3104811095b"
                ]
            ),
            "callback", wasURLEscape(URL)
        ]
    )
);
nameA string to search the name by.
groupdataGroup Search Data
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "directorysearch",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "type", "group",
            "name", "Wizardry",
            "timeout", 10000,
            "data", wasListToCSV(
                [
                    "Members",
                    17
                ]
            ),
            "callback", wasURLEscape(URL)
        ]
    )
);
nameA string to search the name by.
landdataDirectory Parcel
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "directorysearch",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "type", "land",
            "timeout", 10000,
            "page", 1,
            "data", wasListToCSV(
                [
                    "ActualArea",
                    4096,
                    "SalePrice",
                    1
                ]
            ),
            "callback", wasURLEscape(URL)
        ]
    )
);
flagsOptional land find flags. Assumed to be set to SortAsc if not supplied.
searchOptional search type flags. Assumed to be set to Any if not supplied.
priceAn optional maximum price to search land parcels by.
areaAn optional minimum land area to search parcels by.
pageA required parameter as the index of the data returned (please see the Notes section).
peopledataAgent Search Data
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "directorysearch",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "type", "people",
            "name", "Roger",
            "timeout", 10000,
            "data", wasListToCSV(
                [
                    "Online",
                    "True"
                ]
            ),
            "callback", wasURLEscape(URL)
        ]
    )
);
nameA string to search the name by.
placesdataDirectory Parcel
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "directorysearch",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "type", "place",
            "name", "love",
            "timeout", 10000,
            "data", wasListToCSV(
                [
                    "ActualArea",
                    4096
                ]
            ),
            "callback", wasURLEscape(URL)
        ]
    )
);
nameA string to search the name by.

Notes

llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "directorysearch",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "type", "land",
            "flags", wasListToCSV(
                [
                    "SortAsc",
                    "PerMeterSort",
                    "LimitByArea",
                    "IncludePG",
                    "IncludeMature",
                    "IncludeAdult"
                ]
            ),
            "page", 2,
            "area", "4096",
            "search", wasListToCSV(
                [
                    "Mainland"
                ]
            ),
            "timeout", 600000,
            "callback", wasURLEscape(URL)
        ]
    )
);

1) The name parameter is optional for classified and event search type but required for all other search types.