{"id":869,"date":"2013-04-16T16:44:15","date_gmt":"2013-04-16T21:44:15","guid":{"rendered":"http:\/\/www.mysmartbots.com\/blog\/?p=869"},"modified":"2013-04-16T16:44:15","modified_gmt":"2013-04-16T21:44:15","slug":"new-http-api-commands-picks-name2key-and-key2name","status":"publish","type":"post","link":"https:\/\/www.mysmartbots.com\/blog\/2013\/04\/new-http-api-commands-picks-name2key-and-key2name\/","title":{"rendered":"New HTTP API commands: picks, name2key and key2name"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"alignright size-full wp-image-870\" alt=\"Second Life name2key and key2name, also avatar picks\" src=\"https:\/\/www.mysmartbots.com\/blog\/wp-content\/smartbots\/2013\/04\/Second-Life-name2key-and-key2name-also-avatar-picks.jpg\" width=\"250\" height=\"200\" \/>We&#8217;ve added three new HTTP API commands for developers:<\/p>\n<ul>\n<li><a href=\"http:\/\/www.mysmartbots.com\/docs\/Avatar_picks_(HTTP_Bot_Command)\" target=\"_blank\">avatar_picks<\/a> &#8211; retrieve current picks of a specific avatar<\/li>\n<li><a href=\"http:\/\/www.mysmartbots.com\/docs\/Name2key_(HTTP_Bot_Command)\" target=\"_blank\">name2key<\/a> &#8211; famous Second Life name to UUID resolution routine<\/li>\n<li><a href=\"http:\/\/www.mysmartbots.com\/docs\/Key2name_(HTTP_Bot_Command)\" target=\"_blank\">key2name<\/a> &#8211; opposite routine, retrieve name by UUID<\/li>\n<\/ul>\n<div class=\"clearBoth\"><\/div>\n<p><strong>avatar_picks<\/strong> returns the parcel UUIDs and pick names. This allows easily checking if avatar currently holds a certain parcel in his picks.<\/p>\n<p><strong>name2key<\/strong> (and its twin,\u00a0<strong>key2name<\/strong>) are essential routines to work with avatars, visitors, delivering messages and checking any in-world data.<\/p>\n<p>You can find documentation on all new functions in SmartBots <a href=\"http:\/\/www.mysmartbots.com\/docs\/HTTP_API:_Bot_Commands\" target=\"_blank\">HTTP API documentation<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ve added three new HTTP API commands for developers: avatar_picks &#8211; retrieve current picks of a specific avatar name2key &#8211; famous Second Life name to UUID resolution routine key2name &#8211; opposite routine, retrieve name by UUID avatar_picks returns the parcel UUIDs and pick names. This allows easily checking if avatar currently holds a certain parcel [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[146],"tags":[218,217,219],"_links":{"self":[{"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/posts\/869"}],"collection":[{"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/comments?post=869"}],"version-history":[{"count":6,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/posts\/869\/revisions"}],"predecessor-version":[{"id":1014,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/posts\/869\/revisions\/1014"}],"wp:attachment":[{"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/media?parent=869"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/categories?post=869"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/tags?post=869"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}