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
(Lianja) Activix CRM Update a LeadDemonstrates how to update a lead and returns the updated lead. For more information, see https://docs.crm.activix.ca/api/resources/lead
// This example requires the Chilkat API to have been previously unlocked. // See Global Unlock Sample for sample code. loHttp = createobject("CkHttp") loHttp.AuthToken = "ACCESS_TOKEN" loHttp.Accept = "application/json" // The following JSON is sent in the request body: // { // "first_name": "John", // "last_name": "Doe", // "advisor": { // "first_name": "Johan", // "last_name": "Strauss" // } // } // Use this online tool to generate the code from sample JSON: // Generate Code to Create JSON loJsonRequestBody = createobject("CkJsonObject") loJsonRequestBody.UpdateString("first_name","John") loJsonRequestBody.UpdateString("last_name","Doe") loJsonRequestBody.UpdateString("advisor.first_name","Johan") loJsonRequestBody.UpdateString("advisor.last_name","Strauss") lcUrl = "https://crm.activix.ca/api/v2/leads/LEAD_ID" loResp = loHttp.PText("PUT",lcUrl,loJsonRequestBody.Emit(),"utf-8","application/json",.F.,.F.) if (loHttp.LastMethodSuccess <> .T.) then ? loHttp.LastErrorText release loHttp release loJsonRequestBody return endif ? "Response Status Code: " + str(loResp.StatusCode) loJsonResponse = createobject("CkJsonObject") loJsonResponse.Load(loResp.BodyStr) loJsonResponse.EmitCompact = .F. ? loJsonResponse.Emit() if (loResp.StatusCode >= 300) then ? "Failed." release loResp release loHttp release loJsonRequestBody release loJsonResponse return endif release loResp // Sample output... // (See the parsing code below..) // // Use the this online tool to generate parsing code from sample JSON: // Generate Parsing Code from JSON // { // "data": { // "id": 3387562, // "created_at": "2018-04-09T18:05:00+00:00", // "updated_at": "2018-04-09T18:07:00+00:00", // "first_name": "John", // "last_name": "Doe", // ... // "account": { // "id": 66, // ... // }, // "advisor": { // "id": 51112, // ... // }, // "emails": [ // { // "id": 3664451, // ... // }, // ... // ], // "phones": [ // { // "id": 9465546, // ... // }, // ... // ], // "vehicles": [ // { // "id": 4542214, // ... // }, // ... // ] // } // } lnDataId = loJsonResponse.IntOf("data.id") lcDataCreated_at = loJsonResponse.StringOf("data.created_at") lcDataUpdated_at = loJsonResponse.StringOf("data.updated_at") lnDataAccount_id = loJsonResponse.IntOf("data.account_id") lcDataAddress_line1 = loJsonResponse.StringOf("data.address_line1") lcDataAddress_line2 = loJsonResponse.StringOf("data.address_line2") lcDataAppointment_date = loJsonResponse.StringOf("data.appointment_date") llDataAppt_call = loJsonResponse.BoolOf("data.appt_call") lcDataAvailable_date = loJsonResponse.StringOf("data.available_date") lcDataAverage_spending = loJsonResponse.StringOf("data.average_spending") lcDataBe_back_date = loJsonResponse.StringOf("data.be_back_date") lcDataBirth_date = loJsonResponse.StringOf("data.birth_date") lcDataBusiness = loJsonResponse.StringOf("data.business") lcDataCall_date = loJsonResponse.StringOf("data.call_date") lcDataCity = loJsonResponse.StringOf("data.city") lcDataCivility = loJsonResponse.StringOf("data.civility") lcDataCode = loJsonResponse.StringOf("data.code") lcDataCountry = loJsonResponse.StringOf("data.country") lcDataCsi_date = loJsonResponse.StringOf("data.csi_date") lcDataDelivered_by_id = loJsonResponse.StringOf("data.delivered_by_id") lcDataDelivered_date = loJsonResponse.StringOf("data.delivered_date") lcDataDelivery_date = loJsonResponse.StringOf("data.delivery_date") lcDataDivision = loJsonResponse.StringOf("data.division") lcDataEnd_service_date = loJsonResponse.StringOf("data.end_service_date") lcDataFirst_name = loJsonResponse.StringOf("data.first_name") lcDataGas = loJsonResponse.StringOf("data.gas") lnDataGender = loJsonResponse.IntOf("data.gender") llDataInvoiced = loJsonResponse.BoolOf("data.invoiced") lcDataLast_name = loJsonResponse.StringOf("data.last_name") lcDataLast_visit_date = loJsonResponse.StringOf("data.last_visit_date") lcDataLocale = loJsonResponse.StringOf("data.locale") lcDataLoyalty = loJsonResponse.StringOf("data.loyalty") lcDataNext_visit_date = loJsonResponse.StringOf("data.next_visit_date") lcDataOdometer_last_visit = loJsonResponse.StringOf("data.odometer_last_visit") lcDataOpen_work_order_date = loJsonResponse.StringOf("data.open_work_order_date") lcDataPlanned_pick_up_date = loJsonResponse.StringOf("data.planned_pick_up_date") lcDataPostal_code = loJsonResponse.StringOf("data.postal_code") lcDataPrepaid = loJsonResponse.StringOf("data.prepaid") llDataPrepared = loJsonResponse.BoolOf("data.prepared") lcDataPresented_date = loJsonResponse.StringOf("data.presented_date") lcDataPromised_date = loJsonResponse.StringOf("data.promised_date") lcDataProvince = loJsonResponse.StringOf("data.province") lcDataRating = loJsonResponse.StringOf("data.rating") llDataReached_client = loJsonResponse.BoolOf("data.reached_client") lcDataRefinanced_date = loJsonResponse.StringOf("data.refinanced_date") lcDataRepair_date = loJsonResponse.StringOf("data.repair_date") lcDataRepair_order = loJsonResponse.StringOf("data.repair_order") lcDataResult = loJsonResponse.StringOf("data.result") lcDataRoad_test_date = loJsonResponse.StringOf("data.road_test_date") lcDataSale_date = loJsonResponse.StringOf("data.sale_date") lcDataSecond_contact = loJsonResponse.StringOf("data.second_contact") lcDataSecond_contact_civility = loJsonResponse.StringOf("data.second_contact_civility") lcDataSegment = loJsonResponse.StringOf("data.segment") llDataService_cleaned = loJsonResponse.BoolOf("data.service_cleaned") lcDataService_interval_km = loJsonResponse.StringOf("data.service_interval_km") lcDataService_monthly_km = loJsonResponse.StringOf("data.service_monthly_km") lcDataService_processIntention = loJsonResponse.StringOf("data.service_process.intention") lcDataService_processTransport = loJsonResponse.StringOf("data.service_process.transport") lcDataService_processWalk_around = loJsonResponse.StringOf("data.service_process.walk_around") lcDataSex = loJsonResponse.StringOf("data.sex") lcDataSource = loJsonResponse.StringOf("data.source") lcDataStatus = loJsonResponse.StringOf("data.status") lcDataStorage = loJsonResponse.StringOf("data.storage") lcDataTake_over_date = loJsonResponse.StringOf("data.take_over_date") lcDataType = loJsonResponse.StringOf("data.type") lcDataUnsubscribe_all_date = loJsonResponse.StringOf("data.unsubscribe_all_date") lcDataUnsubscribe_call_date = loJsonResponse.StringOf("data.unsubscribe_call_date") lcDataUnsubscribe_email_date = loJsonResponse.StringOf("data.unsubscribe_email_date") lcDataUnsubscribe_sms_date = loJsonResponse.StringOf("data.unsubscribe_sms_date") lcDataWork_order = loJsonResponse.StringOf("data.work_order") lnDataAccountId = loJsonResponse.IntOf("data.account.id") lcDataAccountCreated_at = loJsonResponse.StringOf("data.account.created_at") lcDataAccountUpdated_at = loJsonResponse.StringOf("data.account.updated_at") lnDataAccountPartner_id = loJsonResponse.IntOf("data.account.partner_id") llDataAccountActivity_report = loJsonResponse.BoolOf("data.account.activity_report") llDataAccountCommercial = loJsonResponse.BoolOf("data.account.commercial") llDataAccountEvent = loJsonResponse.BoolOf("data.account.event") llDataAccountLeadxpress = loJsonResponse.BoolOf("data.account.leadxpress") llDataAccountLoyalty = loJsonResponse.BoolOf("data.account.loyalty") llDataAccountPhone_up = loJsonResponse.BoolOf("data.account.phone_up") llDataAccountRenewal = loJsonResponse.BoolOf("data.account.renewal") llDataAccountSale_table = loJsonResponse.BoolOf("data.account.sale_table") llDataAccountService = loJsonResponse.BoolOf("data.account.service") llDataAccountWalk_in = loJsonResponse.BoolOf("data.account.walk_in") llDataAccountWebboost = loJsonResponse.BoolOf("data.account.webboost") llDataAccountAccount_manager = loJsonResponse.BoolOf("data.account.account_manager") lcDataAccountActivation_date = loJsonResponse.StringOf("data.account.activation_date") llDataAccountActive = loJsonResponse.BoolOf("data.account.active") llDataAccountAssigned_lead = loJsonResponse.BoolOf("data.account.assigned_lead") llDataAccountAuto_renewal = loJsonResponse.BoolOf("data.account.auto_renewal") llDataAccountAuto_renewal_new = loJsonResponse.BoolOf("data.account.auto_renewal_new") llDataAccountAuto_renewal_used = loJsonResponse.BoolOf("data.account.auto_renewal_used") llDataAccountAutomation = loJsonResponse.BoolOf("data.account.automation") llDataAccountBdc_advisor = loJsonResponse.BoolOf("data.account.bdc_advisor") llDataAccountCalendar_options = loJsonResponse.BoolOf("data.account.calendar_options") llDataAccountClient_card_fieldsProcessGas = loJsonResponse.BoolOf("data.account.client_card_fields.process.gas") llDataAccountClient_card_fieldsProcessRecorded = loJsonResponse.BoolOf("data.account.client_card_fields.process.recorded") llDataAccountClient_card_fieldsProcessAvailable = loJsonResponse.BoolOf("data.account.client_card_fields.process.available") llDataAccountClient_card_fieldsProcessDiscounted = loJsonResponse.BoolOf("data.account.client_card_fields.process.discounted") llDataAccountClient_card_fieldsCommercialProfit = loJsonResponse.BoolOf("data.account.client_card_fields.commercial.profit") llDataAccountClient_card_fieldsCommercialExclude = loJsonResponse.BoolOf("data.account.client_card_fields.commercial.exclude") llDataAccountClient_card_fieldsCommercialMeeting = loJsonResponse.BoolOf("data.account.client_card_fields.commercial.meeting") llDataAccountClient_card_fieldsPerformanceDeposit = loJsonResponse.BoolOf("data.account.client_card_fields.performance.deposit") llDataAccountClient_card_fieldsPerformanceRefinanced = loJsonResponse.BoolOf("data.account.client_card_fields.performance.refinanced") llDataAccountClient_card_fieldsPerformanceDealer_tour = loJsonResponse.BoolOf("data.account.client_card_fields.performance.dealer_tour") llDataAccountClient_card_fieldsPerformanceWalk_around = loJsonResponse.BoolOf("data.account.client_card_fields.performance.walk_around") llDataAccountClient_card_fieldsPerformanceQualification = loJsonResponse.BoolOf("data.account.client_card_fields.performance.qualification") llDataAccountClient_card_fieldsPerformanceTwenty_four_hour = loJsonResponse.BoolOf("data.account.client_card_fields.performance.twenty_four_hour") llDataAccountClient_card_fieldsGeneral_infoBudget = loJsonResponse.BoolOf("data.account.client_card_fields.general_info.budget") llDataAccountClient_card_fieldsGeneral_infoSector = loJsonResponse.BoolOf("data.account.client_card_fields.general_info.sector") llDataAccountClient_card_fieldsGeneral_infoCustom_1 = loJsonResponse.BoolOf("data.account.client_card_fields.general_info.custom_1") llDataAccountClient_card_fieldsGeneral_infoCustom_2 = loJsonResponse.BoolOf("data.account.client_card_fields.general_info.custom_2") llDataAccountClient_card_fieldsGeneral_infoCustom_3 = loJsonResponse.BoolOf("data.account.client_card_fields.general_info.custom_3") llDataAccountClient_card_fieldsGeneral_infoCustom_4 = loJsonResponse.BoolOf("data.account.client_card_fields.general_info.custom_4") llDataAccountClient_card_fieldsGeneral_infoCustom_5 = loJsonResponse.BoolOf("data.account.client_card_fields.general_info.custom_5") llDataAccountClient_card_fieldsGeneral_infoCustom_6 = loJsonResponse.BoolOf("data.account.client_card_fields.general_info.custom_6") llDataAccountClient_card_fieldsGeneral_infoCustom_7 = loJsonResponse.BoolOf("data.account.client_card_fields.general_info.custom_7") llDataAccountClient_card_fieldsGeneral_infoCustom_8 = loJsonResponse.BoolOf("data.account.client_card_fields.general_info.custom_8") llDataAccountClient_card_fieldsGeneral_infoCustom_9 = loJsonResponse.BoolOf("data.account.client_card_fields.general_info.custom_9") llDataAccountClient_card_fieldsGeneral_infoCustom_10 = loJsonResponse.BoolOf("data.account.client_card_fields.general_info.custom_10") llDataAccountClient_card_fieldsGeneral_infoCommunication_preference = loJsonResponse.BoolOf("data.account.client_card_fields.general_info.communication_preference") llDataAccountClient_card_fieldsWanted_vehicleVin = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.vin") llDataAccountClient_card_fieldsWanted_vehicleFuel = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.fuel") llDataAccountClient_card_fieldsWanted_vehicleRate = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.rate") llDataAccountClient_card_fieldsWanted_vehicleTerm = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.term") llDataAccountClient_card_fieldsWanted_vehicleTire = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.tire") llDataAccountClient_card_fieldsWanted_vehicleYear = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.year") llDataAccountClient_card_fieldsWanted_vehicleColor = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.color") llDataAccountClient_card_fieldsWanted_vehiclePrice = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.price") llDataAccountClient_card_fieldsWanted_vehicleStock = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.stock") llDataAccountClient_card_fieldsWanted_vehicleTotal = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.total") llDataAccountClient_card_fieldsWanted_vehicleBudget = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.budget") llDataAccountClient_card_fieldsWanted_vehicleEngine = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.engine") llDataAccountClient_card_fieldsWanted_vehicleLength = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.length") llDataAccountClient_card_fieldsWanted_vehicleProfit = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.profit") llDataAccountClient_card_fieldsWanted_vehicleSuffix = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.suffix") llDataAccountClient_card_fieldsWanted_vehicleWeight = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.weight") llDataAccountClient_card_fieldsWanted_vehicleComment = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.comment") llDataAccountClient_card_fieldsWanted_vehicleMileage = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.mileage") llDataAccountClient_card_fieldsWanted_vehiclePayment = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.payment") llDataAccountClient_card_fieldsWanted_vehicleBodyType = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.bodyType") llDataAccountClient_card_fieldsWanted_vehicleCategory = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.category") llDataAccountClient_card_fieldsWanted_vehicleModality = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.modality") llDataAccountClient_card_fieldsWanted_vehicleResidual = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.residual") llDataAccountClient_card_fieldsWanted_vehicleSleeping = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.sleeping") llDataAccountClient_card_fieldsWanted_vehicleWarranty = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.warranty") llDataAccountClient_card_fieldsWanted_vehicleFrequency = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.frequency") llDataAccountClient_card_fieldsWanted_vehicleAccessories = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.accessories") llDataAccountClient_card_fieldsWanted_vehicleCategory_rv = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.category_rv") llDataAccountClient_card_fieldsWanted_vehiclePreparation = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.preparation") llDataAccountClient_card_fieldsWanted_vehicleInitial_cash = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.initial_cash") llDataAccountClient_card_fieldsWanted_vehicleOffer_number = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.offer_number") llDataAccountClient_card_fieldsWanted_vehicleOrder_number = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.order_number") llDataAccountClient_card_fieldsWanted_vehicleTransmission = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.transmission") llDataAccountClient_card_fieldsWanted_vehicleDocumentation = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.documentation") llDataAccountClient_card_fieldsWanted_vehicleDrivingWheels = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.drivingWheels") llDataAccountClient_card_fieldsWanted_vehicleColor_exterior = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.color_exterior") llDataAccountClient_card_fieldsWanted_vehicleColor_interior = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.color_interior") llDataAccountClient_card_fieldsWanted_vehicleAllowed_mileage = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.allowed_mileage") llDataAccountClient_card_fieldsWanted_vehicleSecurity_deposit = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.security_deposit") llDataAccountClient_card_fieldsWanted_vehicleEnd_contract_date = loJsonResponse.BoolOf("data.account.client_card_fields.wanted_vehicle.end_contract_date") llDataAccountClient_card_fieldsExchange_vehicleVin = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.vin") llDataAccountClient_card_fieldsExchange_vehicleFuel = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.fuel") llDataAccountClient_card_fieldsExchange_vehicleLink = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.link") llDataAccountClient_card_fieldsExchange_vehicleRate = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.rate") llDataAccountClient_card_fieldsExchange_vehicleTerm = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.term") llDataAccountClient_card_fieldsExchange_vehicleYear = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.year") llDataAccountClient_card_fieldsExchange_vehicleColor = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.color") llDataAccountClient_card_fieldsExchange_vehiclePrice = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.price") llDataAccountClient_card_fieldsExchange_vehicleStock = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.stock") llDataAccountClient_card_fieldsExchange_vehicleValue = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.value") llDataAccountClient_card_fieldsExchange_vehicleBudget = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.budget") llDataAccountClient_card_fieldsExchange_vehicleEngine = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.engine") llDataAccountClient_card_fieldsExchange_vehicleLength = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.length") llDataAccountClient_card_fieldsExchange_vehicleProfit = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.profit") llDataAccountClient_card_fieldsExchange_vehicleSuffix = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.suffix") llDataAccountClient_card_fieldsExchange_vehicleWeight = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.weight") llDataAccountClient_card_fieldsExchange_vehicleBalance = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.balance") llDataAccountClient_card_fieldsExchange_vehicleComment = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.comment") llDataAccountClient_card_fieldsExchange_vehicleMileage = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.mileage") llDataAccountClient_card_fieldsExchange_vehiclePayment = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.payment") llDataAccountClient_card_fieldsExchange_vehicleRenewal = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.renewal") llDataAccountClient_card_fieldsExchange_vehicleSold_by = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.sold_by") llDataAccountClient_card_fieldsExchange_vehicleBodyType = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.bodyType") llDataAccountClient_card_fieldsExchange_vehicleCategory = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.category") llDataAccountClient_card_fieldsExchange_vehicleModality = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.modality") llDataAccountClient_card_fieldsExchange_vehicleResidual = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.residual") llDataAccountClient_card_fieldsExchange_vehicleSleeping = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.sleeping") llDataAccountClient_card_fieldsExchange_vehicleWarranty = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.warranty") llDataAccountClient_card_fieldsExchange_vehicleCondition = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.condition") llDataAccountClient_card_fieldsExchange_vehicleFrequency = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.frequency") llDataAccountClient_card_fieldsExchange_vehicleIntention = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.intention") llDataAccountClient_card_fieldsExchange_vehicleRefinance = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.refinance") llDataAccountClient_card_fieldsExchange_vehicleRequested = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.requested") llDataAccountClient_card_fieldsExchange_vehicleSold_date = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.sold_date") llDataAccountClient_card_fieldsExchange_vehicleCategory_rv = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.category_rv") llDataAccountClient_card_fieldsExchange_vehicleInstitution = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.institution") llDataAccountClient_card_fieldsExchange_vehicleInitial_cash = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.initial_cash") llDataAccountClient_card_fieldsExchange_vehicleOffer_number = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.offer_number") llDataAccountClient_card_fieldsExchange_vehicleTransmission = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.transmission") llDataAccountClient_card_fieldsExchange_vehicleDrivingWheels = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.drivingWheels") llDataAccountClient_card_fieldsExchange_vehicleColor_exterior = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.color_exterior") llDataAccountClient_card_fieldsExchange_vehicleColor_interior = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.color_interior") llDataAccountClient_card_fieldsExchange_vehicleAllowed_mileage = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.allowed_mileage") llDataAccountClient_card_fieldsExchange_vehicleSecurity_deposit = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.security_deposit") llDataAccountClient_card_fieldsExchange_vehicleEnd_contract_date = loJsonResponse.BoolOf("data.account.client_card_fields.exchange_vehicle.end_contract_date") llDataAccountClient_number = loJsonResponse.BoolOf("data.account.client_number") llDataAccountConfirmation_appt = loJsonResponse.BoolOf("data.account.confirmation_appt") llDataAccountCredit = loJsonResponse.BoolOf("data.account.credit") llDataAccountCsi = loJsonResponse.BoolOf("data.account.csi") llDataAccountCsi_used = loJsonResponse.BoolOf("data.account.csi_used") lcDataAccountDefault_deliveryman_user_id = loJsonResponse.StringOf("data.account.default_deliveryman_user_id") llDataAccountDelivered_by = loJsonResponse.BoolOf("data.account.delivered_by") llDataAccountDisable_communication_audio = loJsonResponse.BoolOf("data.account.disable_communication_audio") llDataAccountDuplicates = loJsonResponse.BoolOf("data.account.duplicates") llDataAccountGuest_action = loJsonResponse.BoolOf("data.account.guest_action") llDataAccountEmail_client = loJsonResponse.BoolOf("data.account.email_client") llDataAccountIn_turn = loJsonResponse.BoolOf("data.account.in_turn") llDataAccountIn_turn_director_management = loJsonResponse.BoolOf("data.account.in_turn_director_management") llDataAccountLeads_other_division = loJsonResponse.BoolOf("data.account.leads_other_division") lnDataAccountLeadxpress_optionPriority = loJsonResponse.IntOf("data.account.leadxpress_option.priority") lnDataAccountLeadxpress_optionReminderFrequency = loJsonResponse.IntOf("data.account.leadxpress_option.reminder.frequency") lnDataAccountLeadxpress_optionReminderRecurrence = loJsonResponse.IntOf("data.account.leadxpress_option.reminder.recurrence") llDataAccountLeadxpress_optionScheduleAccount = loJsonResponse.BoolOf("data.account.leadxpress_option.schedule.account") llDataAccountLeadxpress_optionScheduleAdvisor = loJsonResponse.BoolOf("data.account.leadxpress_option.schedule.advisor") llDataAccountLimited_audio_access = loJsonResponse.BoolOf("data.account.limited_audio_access") lcDataAccountLogo = loJsonResponse.StringOf("data.account.logo") lcDataAccountLogo_en = loJsonResponse.StringOf("data.account.logo_en") llDataAccountMandatory_coordinate = loJsonResponse.BoolOf("data.account.mandatory_coordinate") llDataAccountManually_status = loJsonResponse.BoolOf("data.account.manually_status") lcDataAccountMerge_rule = loJsonResponse.StringOf("data.account.merge_rule") lnDataAccountMonth_start_day = loJsonResponse.IntOf("data.account.month_start_day") lcDataAccountName = loJsonResponse.StringOf("data.account.name") llDataAccountNiotext = loJsonResponse.BoolOf("data.account.niotext") llDataAccountNiotext_phone = loJsonResponse.BoolOf("data.account.niotext_phone") lcDataAccountPhone = loJsonResponse.StringOf("data.account.phone") llDataAccountPower_sport = loJsonResponse.BoolOf("data.account.power_sport") llDataAccountProcess = loJsonResponse.BoolOf("data.account.process") llDataAccountRecreative_special = loJsonResponse.BoolOf("data.account.recreative_special") llDataAccountResult_date_validation = loJsonResponse.BoolOf("data.account.result_date_validation") llDataAccountSale_accessories = loJsonResponse.BoolOf("data.account.sale_accessories") llDataAccountSale_by_phone = loJsonResponse.BoolOf("data.account.sale_by_phone") llDataAccountSale_date_month = loJsonResponse.BoolOf("data.account.sale_date_month") llDataAccountSale_table_optionsAccessory_column = loJsonResponse.BoolOf("data.account.sale_table_options.accessory_column") llDataAccountSale_table_optionsCommercial_column = loJsonResponse.BoolOf("data.account.sale_table_options.commercial_column") llDataAccountSale_table_optionsDivision_grouped_total_column = loJsonResponse.BoolOf("data.account.sale_table_options.division_grouped_total_column") llDataAccountSale_validation = loJsonResponse.BoolOf("data.account.sale_validation") llDataAccountScan = loJsonResponse.BoolOf("data.account.scan") llDataAccountStock_required_for_sale = loJsonResponse.BoolOf("data.account.stock_required_for_sale") llDataAccountTake_over_director = loJsonResponse.BoolOf("data.account.take_over_director") llDataAccountTrade_report = loJsonResponse.BoolOf("data.account.trade_report") llDataAccountUnrestricted_assignment = loJsonResponse.BoolOf("data.account.unrestricted_assignment") llDataAccountUnsubscribe = loJsonResponse.BoolOf("data.account.unsubscribe") llDataAccountUntreated_lead = loJsonResponse.BoolOf("data.account.untreated_lead") llDataAccountVehicle_model_text = loJsonResponse.BoolOf("data.account.vehicle_model_text") llDataAccountVehicle_text = loJsonResponse.BoolOf("data.account.vehicle_text") llDataAccountVerified_sale = loJsonResponse.BoolOf("data.account.verified_sale") llDataAccountVin_decoder = loJsonResponse.BoolOf("data.account.vin_decoder") lcDataAccountWaiting_sale_date = loJsonResponse.StringOf("data.account.waiting_sale_date") llDataAccountWaiting_sale_option = loJsonResponse.BoolOf("data.account.waiting_sale_option") lcDataAdvisor = loJsonResponse.StringOf("data.advisor") lcDataBdc = loJsonResponse.StringOf("data.bdc") lcDataCommercial = loJsonResponse.StringOf("data.commercial") lcDataService_advisor = loJsonResponse.StringOf("data.service_advisor") lcDataService_agent = loJsonResponse.StringOf("data.service_agent") i = 0 lnCount_i = loJsonResponse.SizeOfArray("data.emails") do while i < lnCount_i loJsonResponse.I = i lnId = loJsonResponse.IntOf("data.emails[i].id") lcCreated_at = loJsonResponse.StringOf("data.emails[i].created_at") lcUpdated_at = loJsonResponse.StringOf("data.emails[i].updated_at") lnLead_id = loJsonResponse.IntOf("data.emails[i].lead_id") lcAddress = loJsonResponse.StringOf("data.emails[i].address") lcV_type = loJsonResponse.StringOf("data.emails[i].type") llValid = loJsonResponse.BoolOf("data.emails[i].valid") i = i + 1 enddo i = 0 lnCount_i = loJsonResponse.SizeOfArray("data.phones") do while i < lnCount_i loJsonResponse.I = i lnId = loJsonResponse.IntOf("data.phones[i].id") lcCreated_at = loJsonResponse.StringOf("data.phones[i].created_at") lcUpdated_at = loJsonResponse.StringOf("data.phones[i].updated_at") lnLead_id = loJsonResponse.IntOf("data.phones[i].lead_id") lcExtension = loJsonResponse.StringOf("data.phones[i].extension") lcNumber = loJsonResponse.StringOf("data.phones[i].number") lcV_type = loJsonResponse.StringOf("data.phones[i].type") llValid = loJsonResponse.BoolOf("data.phones[i].valid") llValidated = loJsonResponse.BoolOf("data.phones[i].validated") llMobile = loJsonResponse.BoolOf("data.phones[i].mobile") i = i + 1 enddo i = 0 lnCount_i = loJsonResponse.SizeOfArray("data.vehicles") do while i < lnCount_i loJsonResponse.I = i lnId = loJsonResponse.IntOf("data.vehicles[i].id") lcCreated_at = loJsonResponse.StringOf("data.vehicles[i].created_at") lcUpdated_at = loJsonResponse.StringOf("data.vehicles[i].updated_at") lnLead_id = loJsonResponse.IntOf("data.vehicles[i].lead_id") lcAccessories = loJsonResponse.StringOf("data.vehicles[i].accessories") lcAllowed_odometer = loJsonResponse.StringOf("data.vehicles[i].allowed_odometer") lnBalance = loJsonResponse.IntOf("data.vehicles[i].balance") lcBudget_max = loJsonResponse.StringOf("data.vehicles[i].budget_max") lcBudget_min = loJsonResponse.StringOf("data.vehicles[i].budget_min") lcCash_down = loJsonResponse.StringOf("data.vehicles[i].cash_down") lcCategory = loJsonResponse.StringOf("data.vehicles[i].category") lcCategory_rv = loJsonResponse.StringOf("data.vehicles[i].category_rv") lcClient_number = loJsonResponse.StringOf("data.vehicles[i].client_number") lcColor_exterior = loJsonResponse.StringOf("data.vehicles[i].color_exterior") lcColor_interior = loJsonResponse.StringOf("data.vehicles[i].color_interior") lcComment = loJsonResponse.StringOf("data.vehicles[i].comment") lcCondition = loJsonResponse.StringOf("data.vehicles[i].condition") lcEnd_contract_date = loJsonResponse.StringOf("data.vehicles[i].end_contract_date") lcEnd_warranty_date = loJsonResponse.StringOf("data.vehicles[i].end_warranty_date") lcEngine = loJsonResponse.StringOf("data.vehicles[i].engine") lcExtended_warranty = loJsonResponse.StringOf("data.vehicles[i].extended_warranty") lcFuel = loJsonResponse.StringOf("data.vehicles[i].fuel") lcLength_max = loJsonResponse.StringOf("data.vehicles[i].length_max") lcLength_min = loJsonResponse.StringOf("data.vehicles[i].length_min") lcLicense_plate = loJsonResponse.StringOf("data.vehicles[i].license_plate") lcMake = loJsonResponse.StringOf("data.vehicles[i].make") lcModality = loJsonResponse.StringOf("data.vehicles[i].modality") lcModel = loJsonResponse.StringOf("data.vehicles[i].model") lcOdometer = loJsonResponse.StringOf("data.vehicles[i].odometer") lcOffer_number = loJsonResponse.StringOf("data.vehicles[i].offer_number") lcV_option = loJsonResponse.StringOf("data.vehicles[i].option") lcOrder_number = loJsonResponse.StringOf("data.vehicles[i].order_number") lcPayment = loJsonResponse.StringOf("data.vehicles[i].payment") lcPayment_frequency = loJsonResponse.StringOf("data.vehicles[i].payment_frequency") lcPreparation = loJsonResponse.StringOf("data.vehicles[i].preparation") lcPrice = loJsonResponse.StringOf("data.vehicles[i].price") lcProfit = loJsonResponse.StringOf("data.vehicles[i].profit") lcPurchase_date = loJsonResponse.StringOf("data.vehicles[i].purchase_date") lcRate = loJsonResponse.StringOf("data.vehicles[i].rate") lcRecall = loJsonResponse.StringOf("data.vehicles[i].recall") lcRecorded_date = loJsonResponse.StringOf("data.vehicles[i].recorded_date") lcResidual = loJsonResponse.StringOf("data.vehicles[i].residual") lcSecurity_deposit = loJsonResponse.StringOf("data.vehicles[i].security_deposit") lcSleeping = loJsonResponse.StringOf("data.vehicles[i].sleeping") llSold = loJsonResponse.BoolOf("data.vehicles[i].sold") lcSold_by = loJsonResponse.StringOf("data.vehicles[i].sold_by") lcSold_date = loJsonResponse.StringOf("data.vehicles[i].sold_date") lcStock = loJsonResponse.StringOf("data.vehicles[i].stock") lcStock_state = loJsonResponse.StringOf("data.vehicles[i].stock_state") lcTerm = loJsonResponse.StringOf("data.vehicles[i].term") llTire = loJsonResponse.BoolOf("data.vehicles[i].tire") lcTransmission = loJsonResponse.StringOf("data.vehicles[i].transmission") lcTrim = loJsonResponse.StringOf("data.vehicles[i].trim") lcV_type = loJsonResponse.StringOf("data.vehicles[i].type") lcUrl = loJsonResponse.StringOf("data.vehicles[i].url") lcValue = loJsonResponse.StringOf("data.vehicles[i].value") lcVin = loJsonResponse.StringOf("data.vehicles[i].vin") lcWarranty = loJsonResponse.StringOf("data.vehicles[i].warranty") lcWeight = loJsonResponse.StringOf("data.vehicles[i].weight") lcYear = loJsonResponse.StringOf("data.vehicles[i].year") lcYear_max = loJsonResponse.StringOf("data.vehicles[i].year_max") lcYear_min = loJsonResponse.StringOf("data.vehicles[i].year_min") i = i + 1 enddo i = 0 lnCount_i = loJsonResponse.SizeOfArray("data.related_ids") do while i < lnCount_i loJsonResponse.I = i i = i + 1 enddo release loHttp release loJsonRequestBody release loJsonResponse |
© 2000-2024 Chilkat Software, Inc. All Rights Reserved.