Chilkat HOME .NET Core C# Android™ AutoIt C C# C++ Chilkat2-Python CkPython Classic ASP DataFlex Delphi ActiveX Delphi DLL Go Java Lianja Mono C# Node.js Objective-C PHP ActiveX PHP Extension Perl PowerBuilder PowerShell PureBasic Ruby SQL Server Swift 2 Swift 3,4,5... Tcl Unicode C Unicode C++ VB.NET VBScript Visual Basic 6.0 Visual FoxPro Xojo Plugin
(Unicode C) Download Full Intake Form in JSON FormatSee more IntakeQ ExamplesThe full intake form is very similar to intake summary object, except it adds an array of questions. For more information, see https://support.intakeq.com/article/31-intakeq-api#download-intake
#include <C_CkHttpW.h> #include <C_CkStringBuilderW.h> #include <C_CkJsonObjectW.h> void ChilkatSample(void) { HCkHttpW http; HCkStringBuilderW sbJson; BOOL success; HCkJsonObjectW json; // This example assumes the Chilkat API to have been previously unlocked. // See Global Unlock Sample for sample code. http = CkHttpW_Create(); // To log the exact HTTP request/response to a session log file: CkHttpW_putSessionLogFilename(http,L"/someDir/sessionLog.txt"); CkHttpW_SetRequestHeader(http,L"X-Auth-Key",L"xxxxxxxxxxxxxxxxxxxxxxxxx"); sbJson = CkStringBuilderW_Create(); success = CkHttpW_QuickGetSb(http,L"https://intakeq.com/api/v1/intakes/[intake-id]",sbJson); if (success == FALSE) { wprintf(L"%s\n",CkHttpW_lastErrorText(http)); CkHttpW_Dispose(http); CkStringBuilderW_Dispose(sbJson); return; } if (CkHttpW_getLastStatus(http) != 200) { wprintf(L"status code: %d\n",CkHttpW_getLastStatus(http)); wprintf(L"response: %s\n",CkStringBuilderW_getAsString(sbJson)); CkHttpW_Dispose(http); CkStringBuilderW_Dispose(sbJson); return; } wprintf(L"raw response: \n"); wprintf(L"%s\n",CkStringBuilderW_getAsString(sbJson)); json = CkJsonObjectW_Create(); CkJsonObjectW_LoadSb(json,sbJson); CkJsonObjectW_putEmitCompact(json,TRUE); wprintf(L"%s\n",CkJsonObjectW_emit(json)); CkHttpW_Dispose(http); CkStringBuilderW_Dispose(sbJson); CkJsonObjectW_Dispose(json); } |
© 2000-2024 Chilkat Software, Inc. All Rights Reserved.