top of page
- API -

retval, response = reaper.AZ_Http_Patch(url, reqHeaders, reqBody, queryParams)

- API Detail-

▼input   value

  • url(string) : url
  • reqHeaders(StringMap) : Header (optional Default: empty)
  • reqBody(string) : Body (optional Default: empty string)
  • queryParams(StringMap) : Query parameters (optional Default: empty)

▼output   value

  • retval(boolean) : result
  • response(HttpResponse) : response
- SCRIPT -

dofile(reaper.AZ_GetLuaInitPath())

require("reaper_AZSTOKE_SILVER")


function showObject(object, depth)

    local obj = object

    if depth == nil then depth = 0 end

    if(type(obj) == "table") then

        Msg("")

        for k, v in pairs(obj) do

            for i = 1, depth, 1 do reaper.ShowConsoleMsg(" ") end 

            reaper.ShowConsoleMsg(tostring(k) .. " : ")

            showObject(v, depth + 4)

        end

    else

        Msg(obj)

    end

end


url = "https://......."  -- destination URL


headers = {

    header1 = "val1",

    hed2 = "2"

}


body = "test/testbody"


queryParams = {

    param1 = "1",

    param2 = "a"

}


retval, response = reaper.AZ_Http_Patch(url, headers, body, queryParams)


Msg(retval)

showObject(response)


Msg(reaper.AZ_GetErrorCode())


Http

AZ_Http_Patch

Supported versions:

1.2.0

onwards

http-Patch Communication

bottom of page