Help needed with scrip

Posted on
Mon May 04, 2020 5:39 pm
Kamen offline
Posts: 7
Joined: May 02, 2020

Help needed with scrip

Hi can someone please help me to execute this script in Indigo!

local http = require("socket.http")
local ltn12 = require("ltn12")

local path = "http://IP:47147/api/v1/runactivity"
local payload = [[ {"activity_uuid":"CBD5ADC7-1E1A-4D28-AD0A-36518EE4785B"} ]]
local response_body = { }

local res, code, response_headers, status = http.request
{
url = path,
method = "POST",
headers =
{
["Content-Type"] = "application/json",
["Content-Length"] = payload:len()
},
source = ltn12.source.string(payload),
sink = ltn12.sink.table(response_body)
}

Posted on
Tue May 05, 2020 8:16 am
jay (support) offline
Site Admin
User avatar
Posts: 18212
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Help needed with scrip

No need to post duplicates even if they are on different sub-forums - as you see, your other post got a reply very quickly.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests