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
(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_CkHttp.h> #include <C_CkStringBuilder.h> #include <C_CkJsonObject.h> void ChilkatSample(void) { HCkHttp http; HCkStringBuilder sbJson; BOOL success; HCkJsonObject json; // This example assumes the Chilkat API to have been previously unlocked. // See Global Unlock Sample for sample code. http = CkHttp_Create(); // To log the exact HTTP request/response to a session log file: CkHttp_putSessionLogFilename(http,"/someDir/sessionLog.txt"); CkHttp_SetRequestHeader(http,"X-Auth-Key","xxxxxxxxxxxxxxxxxxxxxxxxx"); sbJson = CkStringBuilder_Create(); success = CkHttp_QuickGetSb(http,"https://intakeq.com/api/v1/intakes/[intake-id]",sbJson); if (success == FALSE) { printf("%s\n",CkHttp_lastErrorText(http)); CkHttp_Dispose(http); CkStringBuilder_Dispose(sbJson); return; } if (CkHttp_getLastStatus(http) != 200) { printf("status code: %d\n",CkHttp_getLastStatus(http)); printf("response: %s\n",CkStringBuilder_getAsString(sbJson)); CkHttp_Dispose(http); CkStringBuilder_Dispose(sbJson); return; } printf("raw response: \n"); printf("%s\n",CkStringBuilder_getAsString(sbJson)); json = CkJsonObject_Create(); CkJsonObject_LoadSb(json,sbJson); CkJsonObject_putEmitCompact(json,TRUE); printf("%s\n",CkJsonObject_emit(json)); CkHttp_Dispose(http); CkStringBuilder_Dispose(sbJson); CkJsonObject_Dispose(json); } |
© 2000-2024 Chilkat Software, Inc. All Rights Reserved.