avatar_info

From SmartBots Developers Docs
Jump to: navigation, search

Returns the specific avatar's info.

// See "LSL Helper Functions" page for this function
smartbotsAPI("avatar_info", [
  "avatar": "cd93067e-7c4e-41c0-ba91-be01f4bafe35"
]);

Variables

The following table shows input values (you send them with the API call) and returned output values.

Variable Required Description
Input basic parameters:
action yes = avatar_info
apikey yes Your personal developer's API key.
botname yes Your bot's SL login.
secret yes Bot access code of your bot.
dataType optional Set to "json" to get JSON reply instead of URL-encoded string
custom optional The custom data (string) to be passed back to caller script. This value will be returned back to the caller in HTTP response.
Input:
avatar yes the avatar UUID
Output:
(to be received in http_response LSL event, see docs for details)
result OK - command completed successfully
FAIL - command failed
resulttext Detailed reason for the failure.
custom The value from input "custom" parameter. See above.
about Profile text
born SL birth day, MM/DD/YYYY
identified "1" if avatar has payment info
image Profile image UUID
first_life_image First life image UUID
first_life_text First life text
mature "1" if profile is mature
online "1" if avatar is online
partner Partner UUID (zero UUID if no partner)
publish_web "1" if profile is allowed to be published on web
transacted "1" if payment info was used
url Profile URL


Limitations

This API command is not intended for a mass parsing. It takes about 2-3 seconds to complete, and repetitive requests (roughly more than 1 per 3 seconds) may get throttled.

Also, multiple non-stop requests may cause bot to relog.


<< return back to Bot commands

(Miss an API call or parameter? Submit your request in forum)