top of page
- API -

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

- API Detail -

▼入力値

  • url(string) : url

  • reqHeaders(StringMap) : ヘッダー(任意 デフォルト : 空)

  • reqBody(string) : 本文(任意 デフォルト : 空文字列)

  • queryParams(StringMap) : クエリパラメーター(任意 デフォルト : 空)

▼出力値

  • retval(boolean) : 結果

  • response(HttpResponse) : レスポンス

- SIMPLE 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://......."  -- 通信先URL


headers = {

    header1 = "val1",

    hed2 = "2"

}


body = "test/testbody"


queryParams = {

    param1 = "1",

    param2 = "a"

}


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


Msg(retval)

showObject(response)


Msg(reaper.AZ_GetErrorCode())


Http

AZ_Http_Post

対応バージョン:

1.2.0

以降

http-Post通信

bottom of page