React Native
React Native
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 React Native Downloads
import { Http, JsonObject, StringBuilder } from '@chilkat/react-native'
async function chilkatExample() {
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
const http = new Http();
// To log the exact HTTP request/response to a session log file:
http.sessionLogFilename = '/someDir/sessionLog.txt';
http.setRequestHeader('X-Auth-Key', 'xxxxxxxxxxxxxxxxxxxxxxxxx');
const sbJson = new StringBuilder();
try {
await http.quickGetSbAsync('https://intakeq.com/api/v1/intakes/[intake-id]', sbJson);
} catch {
console.log(http.lastErrorText);
return;
}
if (http.lastStatus !== 200) {
console.log(`status code: ${http.lastStatus}`);
console.log(`response: ${sbJson.getAsString()}`);
return;
}
console.log('raw response: ');
console.log(sbJson.getAsString());
const json = new JsonObject();
json.loadSb(sbJson);
json.emitCompact = true;
console.log(json.emit());
}