Sample code for 30+ languages & platforms
Go

Download Full Intake Form in JSON Format

See more IntakeQ Examples

The full intake form is very similar to intake summary object, except it adds an array of questions.

Chilkat Go Downloads

Go
    success := false

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

    http := chilkat.NewHttp()

    // To log the exact HTTP request/response to a session log file:
    http.SetSessionLogFilename("/someDir/sessionLog.txt")

    http.SetRequestHeader("X-Auth-Key","xxxxxxxxxxxxxxxxxxxxxxxxx")

    sbJson := chilkat.NewStringBuilder()
    success = http.QuickGetSb("https://intakeq.com/api/v1/intakes/[intake-id]",sbJson)
    if success == false {
        fmt.Println(http.LastErrorText())
        http.DisposeHttp()
        sbJson.DisposeStringBuilder()
        return
    }

    if http.LastStatus() != 200 {
        fmt.Println("status code: ", http.LastStatus())
        fmt.Println("response: ", *sbJson.GetAsString())
        http.DisposeHttp()
        sbJson.DisposeStringBuilder()
        return
    }

    fmt.Println("raw response: ")
    fmt.Println(*sbJson.GetAsString())

    json := chilkat.NewJsonObject()

    json.LoadSb(sbJson)
    json.SetEmitCompact(true)

    fmt.Println(*json.Emit())

    http.DisposeHttp()
    sbJson.DisposeStringBuilder()
    json.DisposeJsonObject()