{"id":981,"date":"2014-01-21T05:21:59","date_gmt":"2014-01-21T11:21:59","guid":{"rendered":"http:\/\/www.mysmartbots.com\/blog\/?p=981"},"modified":"2014-01-21T05:21:59","modified_gmt":"2014-01-21T11:21:59","slug":"http-api-commands-added-and-updated","status":"publish","type":"post","link":"https:\/\/www.mysmartbots.com\/blog\/2014\/01\/http-api-commands-added-and-updated\/","title":{"rendered":"HTTP API commands added and updated"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"alignright size-full wp-image-982\" alt=\"HTTP API updates: control your Second Life bot\" src=\"https:\/\/www.mysmartbots.com\/blog\/wp-content\/smartbots\/2014\/01\/HTTP-API-updates-second-life-bot.jpg\" width=\"250\" height=\"200\" \/>SmartBots HTTP API functions have been extended by adding the new functionality.<\/p>\n<h3><em>listinventory<\/em> &#8211; retrieve the bot&#8217;s inventory contents<\/h3>\n<p><a href=\"http:\/\/www.mysmartbots.com\/docs\/Listinventory_(HTTP_Bot_Command)\" target=\"_blank\">listinventory<\/a> command allows listing the bot&#8217;s inventory: items, wearables, folders. Now this command shows the object&#8217;s permissions. More information available <a href=\"http:\/\/www.mysmartbots.com\/docs\/Listinventory_(HTTP_Bot_Command)\" target=\"_blank\">in docs<\/a>.<\/p>\n<h3><em>give_inventory<\/em> command improved<\/h3>\n<p><a href=\"http:\/\/www.mysmartbots.com\/docs\/Give_inventory_(HTTP_Bot_Command)\" target=\"_blank\">give_inventory<\/a> command sends inventory items to a specific resident. Now it is possible to send the whole folders (just specify the folder inventory UUID &#8211; system determines the inventory item type automatically).<\/p>\n<p>Also, the error handling has been improved: the function now returns an error if object permissions do not contain a &#8216;Transfer&#8221; flag.<\/p>\n<p>These changes are published already, you may use them in your applications or try HTTP API by using SmartBots <a href=\"http:\/\/www.mysmartbots.com\/api\/testing.html\" target=\"_blank\">API Testing Suite<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SmartBots HTTP API functions have been extended by adding the new functionality. listinventory &#8211; retrieve the bot&#8217;s inventory contents listinventory command allows listing the bot&#8217;s inventory: items, wearables, folders. Now this command shows the object&#8217;s permissions. More information available in docs. give_inventory command improved give_inventory command sends inventory items to a specific resident. Now it [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[144,146],"tags":[230,180,64,63],"_links":{"self":[{"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/posts\/981"}],"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=981"}],"version-history":[{"count":2,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/posts\/981\/revisions"}],"predecessor-version":[{"id":984,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/posts\/981\/revisions\/984"}],"wp:attachment":[{"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/media?parent=981"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/categories?post=981"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/tags?post=981"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}