Sample code for 30+ languages & platforms
Lianja

Yousign: Download File

See more Yousign Examples

Downloads a previously uploaded Yousign file.

Chilkat Lianja Downloads

Lianja
llSuccess = .F.

// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.

loHttp = createobject("CkHttp")

// Adds the "Authorization: Bearer YOUR_API_KEY" header.
loHttp.AuthToken = "YOUR_API_KEY"

lcDownloadUrl = "https://staging-api.yousign.com/files/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/download?alt=media"
lcLocalFilePath = "qa_output/x.pdf"

llSuccess = loHttp.Download(lcDownloadUrl,lcLocalFilePath)
if (llSuccess = .F.) then
    ? loHttp.LastErrorText
    release loHttp
    return
endif

? "The PDF file is downloaded..."


release loHttp