DevPortal

HTTP API: JSON support and set_parcel_info command

Making SmartBots comfortable for developers is one of our primary targets. Our bots are developing, new features are being added. We are glad to release the very important update to SmartBots API.

JSON support

We’ve reworked all HTTP API commands to return a more convenient response – JSON (this is optional update, all existing LSL scripts will keep working!).

Previously, we were using the URL-encoded responses. This format has been selected long time ago since there were no JSON support in LSL. With Lindens adding JSON functions we’ve also started updating our LSL scripts to this convenient format.

Finally, all HTTP API commands are updated to support JSON! To switch the response to JSON, just add “dataType=json” parameter (the name has been chosen to comply with a jQuery.ajax() parameter).

Parsing of JSON can be done with native LSL functions.

New set_parcel_info command

A new HTTP API command has been added to edit parcel details (bot still requires the permissions indeed). Check the set_parcel_info reference here.

Don’t hesitate to request new functionality from us! This command has been added by request.

Parcel management for model bots

Finally, we’ve allowed both parcel_info and set_parcel_info commands for Model bots. This allows building cheaper automated parcel management solutions.

Have fun making SL bots alive with SmartBots!

Leave a Reply

Your email address will not be published. Required fields are marked *