SomeAPI.foo(param) local headers = { { field = 'Content-Type', value = 'application/x-www-form-urlencoded' }, }; local data = 'somParam=' .. param; local body, reshdrs = LrHttp.post(fooURL, data, headers); if reshdrs.status == 401 then return nil end return body end return SomeAPI
local c = f:row { f:checkbox { title = "Title:", value = true, }, f:edit_field { value = "Untitled Text", } } LrDialogs.presentModalDialog { contents = c }