Difference between revisions of "Bot Playground/Commands/key2name"
From SmartBots Developers Docs
Line 10: | Line 10: | ||
{{API Variable Group|Input}} | {{API Variable Group|Input}} | ||
− | {{API Variable| | + | {{API Variable|key|yes}} the UUID of the avatar |
− | + | ||
{{API Variable Group|Output}} | {{API Variable Group|Output}} | ||
− | {{API Return | + | {{API Return|name|}} Second Life name of the avatar |
{{API Variables Table End}} | {{API Variables Table End}} |
Revision as of 16:19, 1 July 2016
...
...
Reference
This command accepts the following parameters:
Variable | Required | Description
| |
---|---|---|---|
Input: | |||
key | yes | the UUID of the avatar | |
Output:
Template:API Return Second Life name of the avatar |
Examples
var slname = "Glaznah Gassner";
Bot.name2key(slname)
.then(function(result) {
if(result.success) {
console.log("The UUID of " + slname + " is " + result.slkey);
} else {
console.log("Error executing name2key: " + result.error);
}
return Bot.key2name(result.slkey);
})
.then(function(result) {
console.log("Backward key2name check. Name: " + result.slname);
});