Sample code for 30+ languages & platforms
Java

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 Java Downloads

Chilkat2 Java
import com.chilkatsoft.chilkat2.ChilkatException;
import com.chilkatsoft.chilkat2.Http;

public class ChilkatExample {

    public static void main(String[] args) {
        // This example assumes the Chilkat API to have been previously unlocked.
        // See Global Unlock Sample for sample code.

        Http http = new Http();

        http.setRequestHeader("X-Auth-Key", "xxxxxxxxxxxxxxxxxxxxxxxxx");

        try {
            http.download("https://intakeq.com/api/v1/intakes/[intake-id]/pdf", "my_local_dir/intake_form_xxxx.pdf");
        } catch (ChilkatException e) {
            System.out.println(e.getLastErrorText());
            return;
        }

        System.out.println("Success.");
    }
}