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) MercadoLibre - Search Orders from a BuyerSearch for orders from a buyer. For more information, see https://developers.mercadolibre.com.ar/es_ar/gestiona-ventas#Como-filtrar
#include <C_CkHttpW.h> #include <C_CkJsonObjectW.h> #include <C_CkStringBuilderW.h> #include <C_CkDtObjW.h> void ChilkatSample(void) { HCkHttpW http; HCkJsonObjectW jsonToken; BOOL success; HCkStringBuilderW sbResponseBody; HCkJsonObjectW jResp; int respStatusCode; HCkDtObjW date_closed; HCkDtObjW date_last_updated; HCkDtObjW date_created; HCkDtObjW date_approved; HCkDtObjW date_last_modified; const wchar_t *sellerPhoneNumber; const wchar_t *sellerPhoneExtension; const wchar_t *sellerPhoneArea_code; BOOL sellerPhoneVerified; const wchar_t *sellerAlternative_phoneNumber; const wchar_t *sellerAlternative_phoneExtension; const wchar_t *sellerAlternative_phoneArea_code; const wchar_t *sellerNickname; const wchar_t *sellerLast_name; int sellerId; const wchar_t *sellerFirst_name; const wchar_t *sellerEmail; BOOL fulfilled; const wchar_t *buying_mode; const wchar_t *taxesAmount; const wchar_t *taxesCurrency_id; const wchar_t *order_requestChange; const wchar_t *order_requestReturn; const wchar_t *expiration_date; const wchar_t *feedbackSale; const wchar_t *feedbackPurchase; int shippingId; int id; const wchar_t *manufacturing_ending_date; BOOL hidden_for_seller; const wchar_t *last_updated; const wchar_t *comments; const wchar_t *pack_id; int couponAmount; const wchar_t *couponId; int shipping_cost; const wchar_t *application_id; const wchar_t *pickup_id; const wchar_t *status_detail; const wchar_t *buyerBilling_infoDoc_number; const wchar_t *buyerBilling_infoDoc_type; const wchar_t *buyerPhoneNumber; const wchar_t *buyerPhoneExtension; const wchar_t *buyerPhoneArea_code; BOOL buyerPhoneVerified; const wchar_t *buyerAlternative_phoneNumber; const wchar_t *buyerAlternative_phoneExtension; const wchar_t *buyerAlternative_phoneArea_code; const wchar_t *buyerNickname; const wchar_t *buyerLast_name; int buyerId; const wchar_t *buyerFirst_name; const wchar_t *buyerEmail; const wchar_t *total_amount; const wchar_t *paid_amount; const wchar_t *currency_id; const wchar_t *status; int j; int count_j; const wchar_t *reason; const wchar_t *status_code; const wchar_t *total_paid_amount; const wchar_t *operation_type; const wchar_t *transaction_amount; int collectorId; const wchar_t *coupon_id; int installments; const wchar_t *authorization_code; int taxes_amount; int coupon_amount; const wchar_t *installment_amount; const wchar_t *activation_uri; int overpaid_amount; int card_id; const wchar_t *issuer_id; const wchar_t *payment_method_id; const wchar_t *payment_type; const wchar_t *deferred_period; const wchar_t *atm_transfer_referenceTransaction_id; const wchar_t *atm_transfer_referenceCompany_id; const wchar_t *site_id; int payer_id; const wchar_t *marketplace_fee; int order_id; const wchar_t *transaction_order_id; int k; int count_k; const wchar_t *strVal; const wchar_t *itemSeller_custom_field; const wchar_t *itemCondition; const wchar_t *itemCategory_id; const wchar_t *itemVariation_id; const wchar_t *itemSeller_sku; const wchar_t *itemWarranty; const wchar_t *itemId; const wchar_t *itemTitle; int quantity; const wchar_t *differential_pricing_id; const wchar_t *sale_fee; const wchar_t *listing_type_id; const wchar_t *base_currency_id; const wchar_t *unit_price; const wchar_t *full_unit_price; const wchar_t *base_exchange_rate; const wchar_t *manufacturing_days; const wchar_t *id_str; const wchar_t *name; const wchar_t *query; const wchar_t *sortId; const wchar_t *sortName; int pagingTotal; int pagingOffset; int pagingLimit; const wchar_t *display; int i; int count_i; // This example assumes the Chilkat API to have been previously unlocked. // See Global Unlock Sample for sample code. http = CkHttpW_Create(); // First get our previously obtained OAuth2 access token. jsonToken = CkJsonObjectW_Create(); success = CkJsonObjectW_LoadFile(jsonToken,L"qa_data/tokens/mercadolibre.json"); // Implements the following CURL command: // curl -X GET https://api.mercadolibre.com/orders/search?buyer=$BUYER_ID&access_token=$ACCESS_TOKEN // Use the following online tool to generate HTTP code from a CURL command // Convert a cURL Command to HTTP Source Code CkHttpW_SetUrlVar(http,L"access_token",CkJsonObjectW_stringOf(jsonToken,L"access_token")); // Use an actual buyer ID here.. CkHttpW_SetUrlVar(http,L"buyer_id",L"577815702"); sbResponseBody = CkStringBuilderW_Create(); success = CkHttpW_QuickGetSb(http,L"https://api.mercadolibre.com/orders/search?buyer={$buyer_id}&access_token={$access_token}",sbResponseBody); if (success == FALSE) { wprintf(L"%s\n",CkHttpW_lastErrorText(http)); wprintf(L"Response Header:\n"); wprintf(L"%s\n",CkHttpW_lastHeader(http)); wprintf(L"----\n"); wprintf(L"Response Body:\n"); wprintf(L"%s\n",CkStringBuilderW_getAsString(sbResponseBody)); wprintf(L"Failed.\n"); CkHttpW_Dispose(http); CkJsonObjectW_Dispose(jsonToken); CkStringBuilderW_Dispose(sbResponseBody); return; } jResp = CkJsonObjectW_Create(); CkJsonObjectW_LoadSb(jResp,sbResponseBody); CkJsonObjectW_putEmitCompact(jResp,FALSE); wprintf(L"Response Body:\n"); wprintf(L"%s\n",CkJsonObjectW_emit(jResp)); respStatusCode = CkHttpW_getLastStatus(http); wprintf(L"Response Status Code = %d\n",respStatusCode); if (respStatusCode >= 400) { wprintf(L"Response Header:\n"); wprintf(L"%s\n",CkHttpW_lastHeader(http)); wprintf(L"----\n"); wprintf(L"Response Body:\n"); wprintf(L"%s\n",CkStringBuilderW_getAsString(sbResponseBody)); wprintf(L"Failed.\n"); CkHttpW_Dispose(http); CkJsonObjectW_Dispose(jsonToken); CkStringBuilderW_Dispose(sbResponseBody); CkJsonObjectW_Dispose(jResp); return; } // Sample JSON response: // (Sample code for parsing the JSON response is shown below) // { // "query": "2032217210", // "results": [ // { // "seller": { // "phone": { // "number": "11971427863", // "extension": "", // "area_code": null, // "verified": false // }, // "alternative_phone": { // "number": "", // "extension": "", // "area_code": "" // }, // "nickname": "VENDASDKMB", // "last_name": "Cheracomo", // "id": 239432672, // "first_name": "Demétrio", // "email": "dcherac.8m6k0q+2-ogiydgmrsge3tenby@mail.mercadolivre.com" // }, // "payments": [ // { // "reason": "Kit Com 03 Adesivo Spray 3m 75 Cola Silk Sublimação 300g", // "status_code": null, // "total_paid_amount": 129.95, // "operation_type": "regular_payment", // "transaction_amount": 129.95, // "date_approved": "2019-05-22T03:51:07.000-04:00", // "collector": { // "id": 239432672 // }, // "coupon_id": null, // "installments": 1, // "authorization_code": "008877", // "taxes_amount": 0, // "id": 4792155710, // "date_last_modified": "2019-05-22T03:51:07.000-04:00", // "coupon_amount": 0, // "available_actions": [ // "refund" // ], // "shipping_cost": 0, // "installment_amount": 129.95, // "date_created": "2019-05-22T03:51:05.000-04:00", // "activation_uri": null, // "overpaid_amount": 0, // "card_id": 203453778, // "status_detail": "accredited", // "issuer_id": "24", // "payment_method_id": "master", // "payment_type": "credit_card", // "deferred_period": null, // "atm_transfer_reference": { // "transaction_id": "135292", // "company_id": null // }, // "site_id": "MLB", // "payer_id": 89660613, // "marketplace_fee": 14.290000000000001, // "order_id": 2032217210, // "currency_id": "BRL", // "status": "approved", // "transaction_order_id": null // } // ], // "fulfilled": true, // "buying_mode": "buy_equals_pay", // "taxes": { // "amount": null, // "currency_id": null // }, // "order_request": { // "change": null, // "return": null // }, // "expiration_date": "2019-06-19T03:51:07.000-04:00", // "feedback": { // "sale": null, // "purchase": null // }, // "shipping": { // "id": 27968238880 // }, // "date_closed": "2019-05-22T03:51:07.000-04:00", // "id": 2032217210, // "manufacturing_ending_date": null, // "hidden_for_seller": false, // "order_items": [ // { // "item": { // "seller_custom_field": null, // "condition": "new", // "category_id": "MLB33383", // "variation_id": null, // "variation_attributes": [ // ], // "seller_sku": null, // "warranty": "Garantia de 1 ano fabricante", // "id": "MLB1054990648", // "title": "Kit Com 03 Adesivo Spray 3m 75 Cola Silk Sublimação 300g" // }, // "quantity": 1, // "differential_pricing_id": null, // "sale_fee": 14.29, // "listing_type_id": "gold_special", // "base_currency_id": null, // "unit_price": 129.95, // "full_unit_price": 129.95, // "base_exchange_rate": null, // "currency_id": "BRL", // "manufacturing_days": null // } // ], // "date_last_updated": "2020-02-14T02:55:49.811Z", // "last_updated": "2019-05-28T15:16:04.000-04:00", // "comments": null, // "pack_id": null, // "coupon": { // "amount": 0, // "id": null // }, // "shipping_cost": 0, // "date_created": "2019-05-22T03:51:05.000-04:00", // "application_id": "7092", // "pickup_id": null, // "status_detail": null, // "tags": [ // "delivered", // "paid" // ], // "buyer": { // "billing_info": { // "doc_number": "02183212950", // "doc_type": "CPF" // }, // "phone": { // "number": "99962663", // "extension": "", // "area_code": "41", // "verified": false // }, // "alternative_phone": { // "number": "30576339", // "extension": "", // "area_code": "41" // }, // "nickname": "S.VICTORHUGO", // "last_name": "Schemberger", // "id": 89660613, // "first_name": "Victor Hugo", // "email": "vschemb.y14cdz+2-ogiydgmrsge3tenbz@mail.mercadolivre.com" // }, // "total_amount": 129.95, // "paid_amount": 129.95, // "mediations": [ // ], // "currency_id": "BRL", // "status": "paid" // } // ], // "sort": { // "id": "date_asc", // "name": "Date ascending" // }, // "available_sorts": [ // { // "id": "date_desc", // "name": "Date descending" // } // ], // "filters": [ // ], // "paging": { // "total": 1, // "offset": 0, // "limit": 50 // }, // "display": "complete" // } // Sample code for parsing the JSON response... // Use the following online tool to generate parsing code from sample JSON: // Generate Parsing Code from JSON // Chilkat functions returning "const char *" return a pointer to temporary internal memory owned and managed by Chilkat. // See this example explaining how this memory should be used: const char * functions. date_closed = CkDtObjW_Create(); date_last_updated = CkDtObjW_Create(); date_created = CkDtObjW_Create(); date_approved = CkDtObjW_Create(); date_last_modified = CkDtObjW_Create(); query = CkJsonObjectW_stringOf(jResp,L"query"); sortId = CkJsonObjectW_stringOf(jResp,L"sort.id"); sortName = CkJsonObjectW_stringOf(jResp,L"sort.name"); pagingTotal = CkJsonObjectW_IntOf(jResp,L"paging.total"); pagingOffset = CkJsonObjectW_IntOf(jResp,L"paging.offset"); pagingLimit = CkJsonObjectW_IntOf(jResp,L"paging.limit"); display = CkJsonObjectW_stringOf(jResp,L"display"); i = 0; count_i = CkJsonObjectW_SizeOfArray(jResp,L"results"); while (i < count_i) { CkJsonObjectW_putI(jResp,i); sellerPhoneNumber = CkJsonObjectW_stringOf(jResp,L"results[i].seller.phone.number"); sellerPhoneExtension = CkJsonObjectW_stringOf(jResp,L"results[i].seller.phone.extension"); sellerPhoneArea_code = CkJsonObjectW_stringOf(jResp,L"results[i].seller.phone.area_code"); sellerPhoneVerified = CkJsonObjectW_BoolOf(jResp,L"results[i].seller.phone.verified"); sellerAlternative_phoneNumber = CkJsonObjectW_stringOf(jResp,L"results[i].seller.alternative_phone.number"); sellerAlternative_phoneExtension = CkJsonObjectW_stringOf(jResp,L"results[i].seller.alternative_phone.extension"); sellerAlternative_phoneArea_code = CkJsonObjectW_stringOf(jResp,L"results[i].seller.alternative_phone.area_code"); sellerNickname = CkJsonObjectW_stringOf(jResp,L"results[i].seller.nickname"); sellerLast_name = CkJsonObjectW_stringOf(jResp,L"results[i].seller.last_name"); sellerId = CkJsonObjectW_IntOf(jResp,L"results[i].seller.id"); sellerFirst_name = CkJsonObjectW_stringOf(jResp,L"results[i].seller.first_name"); sellerEmail = CkJsonObjectW_stringOf(jResp,L"results[i].seller.email"); fulfilled = CkJsonObjectW_BoolOf(jResp,L"results[i].fulfilled"); buying_mode = CkJsonObjectW_stringOf(jResp,L"results[i].buying_mode"); taxesAmount = CkJsonObjectW_stringOf(jResp,L"results[i].taxes.amount"); taxesCurrency_id = CkJsonObjectW_stringOf(jResp,L"results[i].taxes.currency_id"); order_requestChange = CkJsonObjectW_stringOf(jResp,L"results[i].order_request.change"); order_requestReturn = CkJsonObjectW_stringOf(jResp,L"results[i].order_request.return"); expiration_date = CkJsonObjectW_stringOf(jResp,L"results[i].expiration_date"); feedbackSale = CkJsonObjectW_stringOf(jResp,L"results[i].feedback.sale"); feedbackPurchase = CkJsonObjectW_stringOf(jResp,L"results[i].feedback.purchase"); shippingId = CkJsonObjectW_IntOf(jResp,L"results[i].shipping.id"); CkJsonObjectW_DtOf(jResp,L"results[i].date_closed",FALSE,date_closed); id = CkJsonObjectW_IntOf(jResp,L"results[i].id"); manufacturing_ending_date = CkJsonObjectW_stringOf(jResp,L"results[i].manufacturing_ending_date"); hidden_for_seller = CkJsonObjectW_BoolOf(jResp,L"results[i].hidden_for_seller"); CkJsonObjectW_DtOf(jResp,L"results[i].date_last_updated",FALSE,date_last_updated); last_updated = CkJsonObjectW_stringOf(jResp,L"results[i].last_updated"); comments = CkJsonObjectW_stringOf(jResp,L"results[i].comments"); pack_id = CkJsonObjectW_stringOf(jResp,L"results[i].pack_id"); couponAmount = CkJsonObjectW_IntOf(jResp,L"results[i].coupon.amount"); couponId = CkJsonObjectW_stringOf(jResp,L"results[i].coupon.id"); shipping_cost = CkJsonObjectW_IntOf(jResp,L"results[i].shipping_cost"); CkJsonObjectW_DtOf(jResp,L"results[i].date_created",FALSE,date_created); application_id = CkJsonObjectW_stringOf(jResp,L"results[i].application_id"); pickup_id = CkJsonObjectW_stringOf(jResp,L"results[i].pickup_id"); status_detail = CkJsonObjectW_stringOf(jResp,L"results[i].status_detail"); buyerBilling_infoDoc_number = CkJsonObjectW_stringOf(jResp,L"results[i].buyer.billing_info.doc_number"); buyerBilling_infoDoc_type = CkJsonObjectW_stringOf(jResp,L"results[i].buyer.billing_info.doc_type"); buyerPhoneNumber = CkJsonObjectW_stringOf(jResp,L"results[i].buyer.phone.number"); buyerPhoneExtension = CkJsonObjectW_stringOf(jResp,L"results[i].buyer.phone.extension"); buyerPhoneArea_code = CkJsonObjectW_stringOf(jResp,L"results[i].buyer.phone.area_code"); buyerPhoneVerified = CkJsonObjectW_BoolOf(jResp,L"results[i].buyer.phone.verified"); buyerAlternative_phoneNumber = CkJsonObjectW_stringOf(jResp,L"results[i].buyer.alternative_phone.number"); buyerAlternative_phoneExtension = CkJsonObjectW_stringOf(jResp,L"results[i].buyer.alternative_phone.extension"); buyerAlternative_phoneArea_code = CkJsonObjectW_stringOf(jResp,L"results[i].buyer.alternative_phone.area_code"); buyerNickname = CkJsonObjectW_stringOf(jResp,L"results[i].buyer.nickname"); buyerLast_name = CkJsonObjectW_stringOf(jResp,L"results[i].buyer.last_name"); buyerId = CkJsonObjectW_IntOf(jResp,L"results[i].buyer.id"); buyerFirst_name = CkJsonObjectW_stringOf(jResp,L"results[i].buyer.first_name"); buyerEmail = CkJsonObjectW_stringOf(jResp,L"results[i].buyer.email"); total_amount = CkJsonObjectW_stringOf(jResp,L"results[i].total_amount"); paid_amount = CkJsonObjectW_stringOf(jResp,L"results[i].paid_amount"); currency_id = CkJsonObjectW_stringOf(jResp,L"results[i].currency_id"); status = CkJsonObjectW_stringOf(jResp,L"results[i].status"); j = 0; count_j = CkJsonObjectW_SizeOfArray(jResp,L"results[i].payments"); while (j < count_j) { CkJsonObjectW_putJ(jResp,j); reason = CkJsonObjectW_stringOf(jResp,L"results[i].payments[j].reason"); status_code = CkJsonObjectW_stringOf(jResp,L"results[i].payments[j].status_code"); total_paid_amount = CkJsonObjectW_stringOf(jResp,L"results[i].payments[j].total_paid_amount"); operation_type = CkJsonObjectW_stringOf(jResp,L"results[i].payments[j].operation_type"); transaction_amount = CkJsonObjectW_stringOf(jResp,L"results[i].payments[j].transaction_amount"); CkJsonObjectW_DtOf(jResp,L"results[i].payments[j].date_approved",FALSE,date_approved); collectorId = CkJsonObjectW_IntOf(jResp,L"results[i].payments[j].collector.id"); coupon_id = CkJsonObjectW_stringOf(jResp,L"results[i].payments[j].coupon_id"); installments = CkJsonObjectW_IntOf(jResp,L"results[i].payments[j].installments"); authorization_code = CkJsonObjectW_stringOf(jResp,L"results[i].payments[j].authorization_code"); taxes_amount = CkJsonObjectW_IntOf(jResp,L"results[i].payments[j].taxes_amount"); id = CkJsonObjectW_IntOf(jResp,L"results[i].payments[j].id"); CkJsonObjectW_DtOf(jResp,L"results[i].payments[j].date_last_modified",FALSE,date_last_modified); coupon_amount = CkJsonObjectW_IntOf(jResp,L"results[i].payments[j].coupon_amount"); shipping_cost = CkJsonObjectW_IntOf(jResp,L"results[i].payments[j].shipping_cost"); installment_amount = CkJsonObjectW_stringOf(jResp,L"results[i].payments[j].installment_amount"); CkJsonObjectW_DtOf(jResp,L"results[i].payments[j].date_created",FALSE,date_created); activation_uri = CkJsonObjectW_stringOf(jResp,L"results[i].payments[j].activation_uri"); overpaid_amount = CkJsonObjectW_IntOf(jResp,L"results[i].payments[j].overpaid_amount"); card_id = CkJsonObjectW_IntOf(jResp,L"results[i].payments[j].card_id"); status_detail = CkJsonObjectW_stringOf(jResp,L"results[i].payments[j].status_detail"); issuer_id = CkJsonObjectW_stringOf(jResp,L"results[i].payments[j].issuer_id"); payment_method_id = CkJsonObjectW_stringOf(jResp,L"results[i].payments[j].payment_method_id"); payment_type = CkJsonObjectW_stringOf(jResp,L"results[i].payments[j].payment_type"); deferred_period = CkJsonObjectW_stringOf(jResp,L"results[i].payments[j].deferred_period"); atm_transfer_referenceTransaction_id = CkJsonObjectW_stringOf(jResp,L"results[i].payments[j].atm_transfer_reference.transaction_id"); atm_transfer_referenceCompany_id = CkJsonObjectW_stringOf(jResp,L"results[i].payments[j].atm_transfer_reference.company_id"); site_id = CkJsonObjectW_stringOf(jResp,L"results[i].payments[j].site_id"); payer_id = CkJsonObjectW_IntOf(jResp,L"results[i].payments[j].payer_id"); marketplace_fee = CkJsonObjectW_stringOf(jResp,L"results[i].payments[j].marketplace_fee"); order_id = CkJsonObjectW_IntOf(jResp,L"results[i].payments[j].order_id"); currency_id = CkJsonObjectW_stringOf(jResp,L"results[i].payments[j].currency_id"); status = CkJsonObjectW_stringOf(jResp,L"results[i].payments[j].status"); transaction_order_id = CkJsonObjectW_stringOf(jResp,L"results[i].payments[j].transaction_order_id"); k = 0; count_k = CkJsonObjectW_SizeOfArray(jResp,L"results[i].payments[j].available_actions"); while (k < count_k) { CkJsonObjectW_putK(jResp,k); strVal = CkJsonObjectW_stringOf(jResp,L"results[i].payments[j].available_actions[k]"); k = k + 1; } j = j + 1; } j = 0; count_j = CkJsonObjectW_SizeOfArray(jResp,L"results[i].order_items"); while (j < count_j) { CkJsonObjectW_putJ(jResp,j); itemSeller_custom_field = CkJsonObjectW_stringOf(jResp,L"results[i].order_items[j].item.seller_custom_field"); itemCondition = CkJsonObjectW_stringOf(jResp,L"results[i].order_items[j].item.condition"); itemCategory_id = CkJsonObjectW_stringOf(jResp,L"results[i].order_items[j].item.category_id"); itemVariation_id = CkJsonObjectW_stringOf(jResp,L"results[i].order_items[j].item.variation_id"); itemSeller_sku = CkJsonObjectW_stringOf(jResp,L"results[i].order_items[j].item.seller_sku"); itemWarranty = CkJsonObjectW_stringOf(jResp,L"results[i].order_items[j].item.warranty"); itemId = CkJsonObjectW_stringOf(jResp,L"results[i].order_items[j].item.id"); itemTitle = CkJsonObjectW_stringOf(jResp,L"results[i].order_items[j].item.title"); quantity = CkJsonObjectW_IntOf(jResp,L"results[i].order_items[j].quantity"); differential_pricing_id = CkJsonObjectW_stringOf(jResp,L"results[i].order_items[j].differential_pricing_id"); sale_fee = CkJsonObjectW_stringOf(jResp,L"results[i].order_items[j].sale_fee"); listing_type_id = CkJsonObjectW_stringOf(jResp,L"results[i].order_items[j].listing_type_id"); base_currency_id = CkJsonObjectW_stringOf(jResp,L"results[i].order_items[j].base_currency_id"); unit_price = CkJsonObjectW_stringOf(jResp,L"results[i].order_items[j].unit_price"); full_unit_price = CkJsonObjectW_stringOf(jResp,L"results[i].order_items[j].full_unit_price"); base_exchange_rate = CkJsonObjectW_stringOf(jResp,L"results[i].order_items[j].base_exchange_rate"); currency_id = CkJsonObjectW_stringOf(jResp,L"results[i].order_items[j].currency_id"); manufacturing_days = CkJsonObjectW_stringOf(jResp,L"results[i].order_items[j].manufacturing_days"); k = 0; count_k = CkJsonObjectW_SizeOfArray(jResp,L"results[i].order_items[j].item.variation_attributes"); while (k < count_k) { CkJsonObjectW_putK(jResp,k); k = k + 1; } j = j + 1; } j = 0; count_j = CkJsonObjectW_SizeOfArray(jResp,L"results[i].tags"); while (j < count_j) { CkJsonObjectW_putJ(jResp,j); strVal = CkJsonObjectW_stringOf(jResp,L"results[i].tags[j]"); j = j + 1; } j = 0; count_j = CkJsonObjectW_SizeOfArray(jResp,L"results[i].mediations"); while (j < count_j) { CkJsonObjectW_putJ(jResp,j); j = j + 1; } i = i + 1; } i = 0; count_i = CkJsonObjectW_SizeOfArray(jResp,L"available_sorts"); while (i < count_i) { CkJsonObjectW_putI(jResp,i); id_str = CkJsonObjectW_stringOf(jResp,L"available_sorts[i].id"); name = CkJsonObjectW_stringOf(jResp,L"available_sorts[i].name"); i = i + 1; } i = 0; count_i = CkJsonObjectW_SizeOfArray(jResp,L"filters"); while (i < count_i) { CkJsonObjectW_putI(jResp,i); i = i + 1; } CkHttpW_Dispose(http); CkJsonObjectW_Dispose(jsonToken); CkStringBuilderW_Dispose(sbResponseBody); CkJsonObjectW_Dispose(jResp); CkDtObjW_Dispose(date_closed); CkDtObjW_Dispose(date_last_updated); CkDtObjW_Dispose(date_created); CkDtObjW_Dispose(date_approved); CkDtObjW_Dispose(date_last_modified); } |
© 2000-2024 Chilkat Software, Inc. All Rights Reserved.