Lua
Lua
IntakeQ: Download Intake Form PDF
See more IntakeQ Examples
Use this method to download a client’s complete intake package as a PDF file.Chilkat Lua Downloads
local chilkat = require("chilkat")
-- This example assumes the Chilkat API to have been previously unlocked.
-- See Global Unlock Sample for sample code.
local http = chilkat.Http.new()
http:set_request_header("X-Auth-Key", "xxxxxxxxxxxxxxxxxxxxxxxxx")
local success = http:download("https://intakeq.com/api/v1/intakes/[intake-id]/pdf", "my_local_dir/intake_form_xxxx.pdf")
if not success then
print(http.last_error_text)
return
end
print("Success.")