HTTP/LSL API

HTTP API allows controlling your bot and groups using HTTP request. The request can be sent from an SL object (LSL script) or via web development programming:

The EndPoint http://api.apexbots.com
API Type POST
LSL FUNCTIONS MIME TYPE application/x-www-form-urlencoded

ALL API Calls must have an API Key and API Secret, To get your API Key, please look under Manage bots in your account.

The Easy Part

Follow these easy steps to start your development:

  1. Compose the request string and send it using llHTTPRequest using POST.
  2. Pick up the Apexbots reply using http_response (lsl).
  3. Decode the JSON Reply using (lsl) or programming deserializer.

Example LSL HTTP Request

Sample Request of how to make your bot send an IM to an avatar from an LSL Script. 

llHTTPRequest("http://api.apexbots.com",
            [HTTP_METHOD,"POST",
             HTTP_MIMETYPE,"application/x-www-form-urlencoded"]
            ,"command=SendIM"+
            "&api_key=YOUR_API_KEY"+
            "&api_secret=YOUR_API_SECRET"+
            "&AvatarKey="+(string)AvatarKey+
            "&Message="+llEscapeURL(MESSAGE));