Difference between revisions of "HTTP API"
From SmartBots Developers Docs
Line 5: | Line 5: | ||
There are two types of HTTP API at SmartBots. Open one of the following pages for complete list of the commands: | There are two types of HTTP API at SmartBots. Open one of the following pages for complete list of the commands: | ||
− | # [[Simple Groups]] API (easy-to-use API to control group invitations) | + | # [[HTTP API/Simple Groups]] API (easy-to-use API to control group invitations) |
# [[HTTP API/Bot Commands]] (complex routines to fully control your bot) | # [[HTTP API/Bot Commands]] (complex routines to fully control your bot) | ||
Revision as of 12:05, 29 June 2016
HTTP API allows controlling SL groups and Second Life bots using HTTP queries. The query can be send from SL object (LSL script) or online.
API Types
There are two types of HTTP API at SmartBots. Open one of the following pages for complete list of the commands:
- HTTP API/Simple Groups API (easy-to-use API to control group invitations)
- HTTP API/Bot Commands (complex routines to fully control your bot)
Simple Group API allows you sending group invitations, eject members by sending simple API commands. The return result of the API is a plain text.
Bot API is slightly different: it provides more control over your bot, but you have to decode the API reply using llParseString2List and similar functions.
The basics
Basically the whole process consists of the following steps:
- Compose the query string and send it using llHTTPRequest (either GET or POST).
- Pickup the SmartBots reply using http_response.
- Decode the reply.
Read Doing HTTP API Calls for more info.