Web API - Purchase Item from Vendor

;Usage
System.GetOperatorSetting("ingame_host").."/api/v1/vendor/VENDOR_ID/purchase"
;Examples:
<nowiki>
local INGAME_HOST = System.GetOperatorSetting("ingame_host");
local PATH = "/api/v1/vendor/11/purchase"
local url = INGAME_HOST .. PATH
 local toserver = {
 item = {
 item_id = valid_item_id,
 currency_remote_id= valid_item_type 
 }
 }
 
HTTP.IssueRequest(url, "POST", toserver, callbackfunction);
function callbackfunction(args, err)
 if (err) then
 warn(tostring(err));
 else
 -- args is the data in table form, have fun with it
 log(tostring(args))
 end
end
</nowiki>
Category:Web_API