Chilkat Examples

ChilkatHOME.NET Core C#Android™AutoItCC#C++Chilkat2-PythonCkPythonClassic ASPDataFlexDelphi ActiveXDelphi DLLGoJavaLianjaMono C#Node.jsObjective-CPHP ActiveXPHP ExtensionPerlPowerBuilderPowerShellPureBasicRubySQL ServerSwift 2Swift 3,4,5...TclUnicode CUnicode C++VB.NETVBScriptVisual Basic 6.0Visual FoxProXojo Plugin

SQL Server Web API Examples

Primary Categories

ABN AMRO
AWS Secrets Manager
AWS Security Token Service
AWS Translate
Activix CRM
Adyen
Alibaba Cloud OSS
Amazon Cognito
Amazon DynamoDB
Amazon MWS
Amazon Pay
Amazon Rekognition
Amazon SP-API
Amazon Voice ID
Aruba Fatturazione
Azure Maps
Azure Monitor
Azure OAuth2
Azure Storage Accounts
Backblaze S3
Banco Inter
Belgian eHealth Platform
Bitfinex v2 REST
Bluzone
BrickLink
Bunny CDN
CallRail
CardConnect
Cerved
ClickBank
Clickatell
Cloudfare
Constant Contact
DocuSign
Duo Auth MFA
ETrade
Ecwid
Egypt ITIDA
Egypt eReceipt
Etsy
Facebook
Faire
Frame.io
GeoOp
GetHarvest
Global Payments
Google People
Google Search Console
Google Translate
Google Vision
Hungary NAV Invoicing
IBM Text to Speech
Ibanity
IntakeQ
Jira
Lightspeed
MYOB
Magento
Mailgun

Mastercard
MedTunnel
MercadoLibre
MessageMedia
Microsoft Calendar
Microsoft Group
Microsoft Tasks and Plans
Microsoft Teams
Moody's
Okta OAuth/OIDC
OneLogin OIDC
OneNote
OpenAI ChatGPT
PRODA
PayPal
Paynow.pl
Peoplevox
Populi
QuickBooks
Rabobank
Refinitiv
Royal Mail OBA
SCiS Schools Catalogue
SII Chile
SMSAPI
SOAP finkok.com
SendGrid
Shippo
Shopify
Shopware
Shopware 6
SimpleTexting
Square
Stripe
SugarCRM
TicketBAI
Trello
Twilio
Twitter API v2
Twitter v1
UPS
UniPin
VoiceBase
Vonage
WaTrend
Walmart v3
Wasabi
WhatsApp
WiX
WooCommerce
WordPress
Xero
Yahoo Mail
Yapily
Yousign
ZATCA
Zendesk
Zoom
_Miscellaneous_
eBay
effectconnect
hacienda.go.cr

 

 

 

(SQL Server) Etsy: Find a Shop's Active Listings

Finds all active Listings associated with a Shop.

For more information, see https://www.etsy.com/developers/documentation/reference/listing

Chilkat ActiveX Downloads

ActiveX for 32-bit and 64-bit Windows

// Important: See this note about string length limitations for strings returned by sp_OAMethod calls.
//
CREATE PROCEDURE ChilkatSample
AS
BEGIN
    DECLARE @hr int
    DECLARE @sTmp0 nvarchar(4000)
    -- This example assumes the Chilkat API to have been previously unlocked.
    -- See Global Unlock Sample for sample code.

    DECLARE @http int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.Http', @http OUT
    IF @hr <> 0
    BEGIN
        PRINT 'Failed to create ActiveX component'
        RETURN
    END

    DECLARE @success int

    -- Implements the following CURL command:

    -- curl -X GET \
    --   https://openapi.etsy.com/v2/shops/shop_id/listings/active?api_key=MY_ETSY_KEYSTRING&limit=2

    DECLARE @sbResponseBody int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.StringBuilder', @sbResponseBody OUT

    EXEC sp_OAMethod @http, 'QuickGetSb', @success OUT, 'https://openapi.etsy.com/v2/shops/shop_id/listings/active?api_key=MY_ETSY_KEYSTRING&limit=2', @sbResponseBody
    IF @success = 0
      BEGIN
        EXEC sp_OAGetProperty @http, 'LastErrorText', @sTmp0 OUT
        PRINT @sTmp0
        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @sbResponseBody
        RETURN
      END

    DECLARE @jResp int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.JsonObject', @jResp OUT

    EXEC sp_OAMethod @jResp, 'LoadSb', @success OUT, @sbResponseBody
    EXEC sp_OASetProperty @jResp, 'EmitCompact', 0


    PRINT 'Response Body:'
    EXEC sp_OAMethod @jResp, 'Emit', @sTmp0 OUT
    PRINT @sTmp0

    DECLARE @respStatusCode int
    EXEC sp_OAGetProperty @http, 'LastStatus', @respStatusCode OUT

    PRINT 'Response Status Code = ' + @respStatusCode
    IF @respStatusCode >= 400
      BEGIN

        PRINT 'Response Header:'
        EXEC sp_OAGetProperty @http, 'LastHeader', @sTmp0 OUT
        PRINT @sTmp0

        PRINT 'Failed.'
        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @sbResponseBody
        EXEC @hr = sp_OADestroy @jResp
        RETURN
      END

    -- Sample JSON response:
    -- (Sample code for parsing the JSON response is shown below)

    -- {
    --   "count": 176,
    --   "results": [
    --     {
    --       "listing_id": 720138253,
    --       "state": "active",
    --       "user_id": 17132443,
    --       "category_id": 68890894,
    --       "title": "Star face, Galaxy wall mask, Weird wall mask, Crazy art sculpture,  Original Wall Mask, Wire art sculpture, Wall art sculpture, 3D art",
    --       "description": "The crazy hair says it all. This galaxy face is something every art lover should possess in their collection. The two crazy eyes are so lovable and so in tune with the nose. The thin decorative black  lines emphasize the facial characteristics and the white dots around the face all lead to this gorgeous crazy hair, made of thick metal wire. This unique star face is made of terracotta, ceramic elements,  and sand plaster than it was glued to a wooden board, painted in dark blue. There is a hook on the back for easy hanging. The awesome art piece is perfect for your personal collection or a gift for someone very special.\n\nThe night sky can always be an artist\u2019s inspiration: the countless stars and the vastness can acquire different images and shapes. In this case, this incredible face, filled with numerous stars, emerges from the sky for me. \n  \nTagged: 99heads\n\nThe following materials are used: \n\nTerracotta, ceramic elements, ceramic glaze, ceramic paint, wood, metal wire, glass, sand plaster.\n\nSize:\nHeight: (hair included): 30 cm (11 3\/4&quot;)\nWidth: 36cm (14 1\/4 )\nDepth: 6 cm ( 2 1\/2&quot;)",
    --       "creation_tsz": 1562700678,
    --       "ending_tsz": 1573331478,
    --       "original_creation_tsz": 1562700678,
    --       "last_modified_tsz": 1562704479,
    --       "price": "160.00",
    --       "currency_code": "USD",
    --       "quantity": 1,
    --       "sku": [
    --       ],
    --       "tags": [
    --         "Crazy art sculpture",
    --         "Wall Ceramic mask",
    --         "Abstract face",
    --         "3D sculpture",
    --         "Wall art Sculpture",
    --         "wire art sculpture",
    --         "wired art",
    --         "modern ceramics",
    --         "wall mask",
    --         "star face",
    --         "galaxy art",
    --         "galaxy wall mask",
    --         "galaxy sculpture"
    --       ],
    --       "category_path": [
    --         "Art",
    --         "Mixed Media"
    --       ],
    --       "category_path_ids": [
    --         68887312,
    --         68890894
    --       ],
    --       "materials": [
    --         "Terracotta",
    --         "ceramic elements",
    --         "ceramic glaze",
    --         "ceramic paint",
    --         "wood",
    --         "metal wire",
    --         "glass",
    --         "sand plaster"
    --       ],
    --       "shop_section_id": 24002839,
    --       "featured_rank": null,
    --       "state_tsz": 1562700678,
    --       "url": "https:\/\/www.etsy.com\/listing\/720138253\/star-face-galaxy-wall-mask-weird-wall?utm_source=chilkattest&utm_medium=api&utm_campaign=api",
    --       "views": 7,
    --       "num_favorers": 1,
    --       "shipping_template_id": null,
    --       "processing_min": 1,
    --       "processing_max": 2,
    --       "who_made": "i_did",
    --       "is_supply": "false",
    --       "when_made": "2010_2019",
    --       "item_weight": null,
    --       "item_weight_unit": "g",
    --       "item_length": null,
    --       "item_width": null,
    --       "item_height": null,
    --       "item_dimensions_unit": "mm",
    --       "is_private": false,
    --       "recipient": null,
    --       "occasion": null,
    --       "style": null,
    --       "non_taxable": false,
    --       "is_customizable": true,
    --       "is_digital": false,
    --       "file_data": "",
    --       "should_auto_renew": false,
    --       "language": "en-US",
    --       "has_variations": false,
    --       "taxonomy_id": 101,
    --       "taxonomy_path": [
    --         "Art & Collectibles",
    --         "Mixed Media & Collage",
    --         "Other Assemblage"
    --       ],
    --       "used_manufacturer": false
    --     },
    --     {
    --       "listing_id": 643852266,
    --       "state": "active",
    --       "user_id": 17132443,
    --       "category_id": 68890894,
    --       "title": "Art gift for couple, Weird art  figures, Ceramic Wall Figurines, Colorful sculptures, 3D wall art, Mixed Media Sculpture by 99heads",
    --       "description": "The faces of the sculptures are made of white clay elements and ceramic glazes. Their bodies are wooden and painted with acrylic paints. Each sculpture has got a hook on the back for you to hang it on the desired place and in the desired arrangement.  These two look amazing next to each other on the wall... they look like good buddies. They are indeed very good friends that want to make your home more comfortable for you and your family or be a surprise gift for someone special :)\n\nMaterials:\nWhite clay, ceramic elements, wood, glass.\n\nTagged by 99heads\n\nSize:\n\nBlue Figure:\nHeight 62cm, width 10cm, depth 3cm\n(Height 24 1\/4&quot; width 4&quot;, depth 1 1\/4&quot;)\n\nRed Figure:\nHeight 61,5cm, width 9cm, depth 3cm\n(Height 24&quot; width 3 1\/2&quot;, depth 1 1\/4&quot;)\n\nIf you&#39;re interested in having only one of them:\n\nBlue figure:\nhttps:\/\/www.etsy.com\/listing\/609986541\/abstract-ceramic-modern-ceramic-doll\n\nRed figure:\nhttps:\/\/www.etsy.com\/listing\/596145976\/abstract-doll-figure-colorful-sculpture",
    --       "creation_tsz": 1562699323,
    --       "ending_tsz": 1573330123,
    --       "original_creation_tsz": 1541802400,
    --       "last_modified_tsz": 1562699323,
    --       "price": "230.00",
    --       "currency_code": "USD",
    --       "quantity": 1,
    --       "sku": [
    --       ],
    --       "tags": [
    --         "ceramic home decor",
    --         "wall art ceramic",
    --         "abstract ceramic",
    --         "ceramic wall art",
    --         "ceramic sculpture",
    --         "3d wall art",
    --         "Ceramic doll",
    --         "wall art sculpture",
    --         "wall sculpture",
    --         "weird  art figures",
    --         "Art gift for couple",
    --         "colorful sculpture",
    --         "Fun wall hanging art"
    --       ],
    --       "category_path": [
    --         "Art",
    --         "Mixed Media"
    --       ],
    --       "category_path_ids": [
    --         68887312,
    --         68890894
    --       ],
    --       "materials": [
    --         "white clay",
    --         "ceramic elements",
    --         "glass",
    --         "ceramic glazes",
    --         "wood"
    --       ],
    --       "shop_section_id": 24002915,
    --       "featured_rank": null,
    --       "state_tsz": 1541802400,
    --       "url": "https:\/\/www.etsy.com\/listing\/643852266\/art-gift-for-couple-weird-art-figures?utm_source=chilkattest&utm_medium=api&utm_campaign=api",
    --       "views": 143,
    --       "num_favorers": 16,
    --       "shipping_template_id": null,
    --       "processing_min": 1,
    --       "processing_max": 2,
    --       "who_made": "i_did",
    --       "is_supply": "false",
    --       "when_made": "2010_2019",
    --       "item_weight": null,
    --       "item_weight_unit": "g",
    --       "item_length": null,
    --       "item_width": null,
    --       "item_height": null,
    --       "item_dimensions_unit": "mm",
    --       "is_private": false,
    --       "recipient": null,
    --       "occasion": null,
    --       "style": [
    --         "Abstract"
    --       ],
    --       "non_taxable": false,
    --       "is_customizable": true,
    --       "is_digital": false,
    --       "file_data": "",
    --       "should_auto_renew": false,
    --       "language": "en-US",
    --       "has_variations": false,
    --       "taxonomy_id": 101,
    --       "taxonomy_path": [
    --         "Art & Collectibles",
    --         "Mixed Media & Collage",
    --         "Other Assemblage"
    --       ],
    --       "used_manufacturer": false
    --     }
    --   ],
    --   "params": {
    --     "limit": "2",
    --     "offset": 0,
    --     "page": null,
    --     "shop_id": "6634711",
    --     "keywords": null,
    --     "sort_on": "created",
    --     "sort_order": "down",
    --     "min_price": null,
    --     "max_price": null,
    --     "color": null,
    --     "color_accuracy": 0,
    --     "tags": null,
    --     "category": null,
    --     "translate_keywords": "false",
    --     "include_private": 0
    --   },
    --   "type": "Listing",
    --   "pagination": {
    --     "effective_limit": 2,
    --     "effective_offset": 0,
    --     "next_offset": 2,
    --     "effective_page": 1,
    --     "next_page": 2
    --   }
    -- }

    -- Sample code for parsing the JSON response...
    -- Use the following online tool to generate parsing code from sample JSON:
    -- Generate Parsing Code from JSON

    DECLARE @listing_id int

    DECLARE @state nvarchar(4000)

    DECLARE @user_id int

    DECLARE @category_id int

    DECLARE @title nvarchar(4000)

    DECLARE @description nvarchar(4000)

    DECLARE @creation_tsz int

    DECLARE @ending_tsz int

    DECLARE @original_creation_tsz int

    DECLARE @last_modified_tsz int

    DECLARE @price nvarchar(4000)

    DECLARE @currency_code nvarchar(4000)

    DECLARE @quantity int

    DECLARE @shop_section_id int

    DECLARE @featured_rank nvarchar(4000)

    DECLARE @state_tsz int

    DECLARE @url nvarchar(4000)

    DECLARE @views int

    DECLARE @num_favorers int

    DECLARE @shipping_template_id nvarchar(4000)

    DECLARE @processing_min int

    DECLARE @processing_max int

    DECLARE @who_made nvarchar(4000)

    DECLARE @is_supply nvarchar(4000)

    DECLARE @when_made nvarchar(4000)

    DECLARE @item_weight nvarchar(4000)

    DECLARE @item_weight_unit nvarchar(4000)

    DECLARE @item_length nvarchar(4000)

    DECLARE @item_width nvarchar(4000)

    DECLARE @item_height nvarchar(4000)

    DECLARE @item_dimensions_unit nvarchar(4000)

    DECLARE @is_private int

    DECLARE @recipient nvarchar(4000)

    DECLARE @occasion nvarchar(4000)

    DECLARE @style nvarchar(4000)

    DECLARE @non_taxable int

    DECLARE @is_customizable int

    DECLARE @is_digital int

    DECLARE @file_data nvarchar(4000)

    DECLARE @should_auto_renew int

    DECLARE @language nvarchar(4000)

    DECLARE @has_variations int

    DECLARE @taxonomy_id int

    DECLARE @used_manufacturer int

    DECLARE @j int

    DECLARE @count_j int

    DECLARE @strVal nvarchar(4000)

    DECLARE @intVal int

    DECLARE @count int
    EXEC sp_OAMethod @jResp, 'IntOf', @count OUT, 'count'
    DECLARE @paramsLimit nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @paramsLimit OUT, 'params.limit'
    DECLARE @paramsOffset int
    EXEC sp_OAMethod @jResp, 'IntOf', @paramsOffset OUT, 'params.offset'
    DECLARE @paramsPage nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @paramsPage OUT, 'params.page'
    DECLARE @paramsShop_id nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @paramsShop_id OUT, 'params.shop_id'
    DECLARE @paramsKeywords nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @paramsKeywords OUT, 'params.keywords'
    DECLARE @paramsSort_on nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @paramsSort_on OUT, 'params.sort_on'
    DECLARE @paramsSort_order nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @paramsSort_order OUT, 'params.sort_order'
    DECLARE @paramsMin_price nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @paramsMin_price OUT, 'params.min_price'
    DECLARE @paramsMax_price nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @paramsMax_price OUT, 'params.max_price'
    DECLARE @paramsColor nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @paramsColor OUT, 'params.color'
    DECLARE @paramsColor_accuracy int
    EXEC sp_OAMethod @jResp, 'IntOf', @paramsColor_accuracy OUT, 'params.color_accuracy'
    DECLARE @paramsTags nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @paramsTags OUT, 'params.tags'
    DECLARE @paramsCategory nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @paramsCategory OUT, 'params.category'
    DECLARE @paramsTranslate_keywords nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @paramsTranslate_keywords OUT, 'params.translate_keywords'
    DECLARE @paramsInclude_private int
    EXEC sp_OAMethod @jResp, 'IntOf', @paramsInclude_private OUT, 'params.include_private'
    DECLARE @v_type nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @v_type OUT, 'type'
    DECLARE @paginationEffective_limit int
    EXEC sp_OAMethod @jResp, 'IntOf', @paginationEffective_limit OUT, 'pagination.effective_limit'
    DECLARE @paginationEffective_offset int
    EXEC sp_OAMethod @jResp, 'IntOf', @paginationEffective_offset OUT, 'pagination.effective_offset'
    DECLARE @paginationNext_offset int
    EXEC sp_OAMethod @jResp, 'IntOf', @paginationNext_offset OUT, 'pagination.next_offset'
    DECLARE @paginationEffective_page int
    EXEC sp_OAMethod @jResp, 'IntOf', @paginationEffective_page OUT, 'pagination.effective_page'
    DECLARE @paginationNext_page int
    EXEC sp_OAMethod @jResp, 'IntOf', @paginationNext_page OUT, 'pagination.next_page'
    DECLARE @i int
    SELECT @i = 0
    DECLARE @count_i int
    EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'results'
    WHILE @i < @count_i
      BEGIN
        EXEC sp_OASetProperty @jResp, 'I', @i
        EXEC sp_OAMethod @jResp, 'IntOf', @listing_id OUT, 'results[i].listing_id'
        EXEC sp_OAMethod @jResp, 'StringOf', @state OUT, 'results[i].state'
        EXEC sp_OAMethod @jResp, 'IntOf', @user_id OUT, 'results[i].user_id'
        EXEC sp_OAMethod @jResp, 'IntOf', @category_id OUT, 'results[i].category_id'
        EXEC sp_OAMethod @jResp, 'StringOf', @title OUT, 'results[i].title'
        EXEC sp_OAMethod @jResp, 'StringOf', @description OUT, 'results[i].description'
        EXEC sp_OAMethod @jResp, 'IntOf', @creation_tsz OUT, 'results[i].creation_tsz'
        EXEC sp_OAMethod @jResp, 'IntOf', @ending_tsz OUT, 'results[i].ending_tsz'
        EXEC sp_OAMethod @jResp, 'IntOf', @original_creation_tsz OUT, 'results[i].original_creation_tsz'
        EXEC sp_OAMethod @jResp, 'IntOf', @last_modified_tsz OUT, 'results[i].last_modified_tsz'
        EXEC sp_OAMethod @jResp, 'StringOf', @price OUT, 'results[i].price'
        EXEC sp_OAMethod @jResp, 'StringOf', @currency_code OUT, 'results[i].currency_code'
        EXEC sp_OAMethod @jResp, 'IntOf', @quantity OUT, 'results[i].quantity'
        EXEC sp_OAMethod @jResp, 'IntOf', @shop_section_id OUT, 'results[i].shop_section_id'
        EXEC sp_OAMethod @jResp, 'StringOf', @featured_rank OUT, 'results[i].featured_rank'
        EXEC sp_OAMethod @jResp, 'IntOf', @state_tsz OUT, 'results[i].state_tsz'
        EXEC sp_OAMethod @jResp, 'StringOf', @url OUT, 'results[i].url'
        EXEC sp_OAMethod @jResp, 'IntOf', @views OUT, 'results[i].views'
        EXEC sp_OAMethod @jResp, 'IntOf', @num_favorers OUT, 'results[i].num_favorers'
        EXEC sp_OAMethod @jResp, 'StringOf', @shipping_template_id OUT, 'results[i].shipping_template_id'
        EXEC sp_OAMethod @jResp, 'IntOf', @processing_min OUT, 'results[i].processing_min'
        EXEC sp_OAMethod @jResp, 'IntOf', @processing_max OUT, 'results[i].processing_max'
        EXEC sp_OAMethod @jResp, 'StringOf', @who_made OUT, 'results[i].who_made'
        EXEC sp_OAMethod @jResp, 'StringOf', @is_supply OUT, 'results[i].is_supply'
        EXEC sp_OAMethod @jResp, 'StringOf', @when_made OUT, 'results[i].when_made'
        EXEC sp_OAMethod @jResp, 'StringOf', @item_weight OUT, 'results[i].item_weight'
        EXEC sp_OAMethod @jResp, 'StringOf', @item_weight_unit OUT, 'results[i].item_weight_unit'
        EXEC sp_OAMethod @jResp, 'StringOf', @item_length OUT, 'results[i].item_length'
        EXEC sp_OAMethod @jResp, 'StringOf', @item_width OUT, 'results[i].item_width'
        EXEC sp_OAMethod @jResp, 'StringOf', @item_height OUT, 'results[i].item_height'
        EXEC sp_OAMethod @jResp, 'StringOf', @item_dimensions_unit OUT, 'results[i].item_dimensions_unit'
        EXEC sp_OAMethod @jResp, 'BoolOf', @is_private OUT, 'results[i].is_private'
        EXEC sp_OAMethod @jResp, 'StringOf', @recipient OUT, 'results[i].recipient'
        EXEC sp_OAMethod @jResp, 'StringOf', @occasion OUT, 'results[i].occasion'
        EXEC sp_OAMethod @jResp, 'StringOf', @style OUT, 'results[i].style'
        EXEC sp_OAMethod @jResp, 'BoolOf', @non_taxable OUT, 'results[i].non_taxable'
        EXEC sp_OAMethod @jResp, 'BoolOf', @is_customizable OUT, 'results[i].is_customizable'
        EXEC sp_OAMethod @jResp, 'BoolOf', @is_digital OUT, 'results[i].is_digital'
        EXEC sp_OAMethod @jResp, 'StringOf', @file_data OUT, 'results[i].file_data'
        EXEC sp_OAMethod @jResp, 'BoolOf', @should_auto_renew OUT, 'results[i].should_auto_renew'
        EXEC sp_OAMethod @jResp, 'StringOf', @language OUT, 'results[i].language'
        EXEC sp_OAMethod @jResp, 'BoolOf', @has_variations OUT, 'results[i].has_variations'
        EXEC sp_OAMethod @jResp, 'IntOf', @taxonomy_id OUT, 'results[i].taxonomy_id'
        EXEC sp_OAMethod @jResp, 'BoolOf', @used_manufacturer OUT, 'results[i].used_manufacturer'
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'results[i].sku'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            SELECT @j = @j + 1
          END
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'results[i].tags'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            EXEC sp_OAMethod @jResp, 'StringOf', @strVal OUT, 'results[i].tags[j]'
            SELECT @j = @j + 1
          END
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'results[i].category_path'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            EXEC sp_OAMethod @jResp, 'StringOf', @strVal OUT, 'results[i].category_path[j]'
            SELECT @j = @j + 1
          END
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'results[i].category_path_ids'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            EXEC sp_OAMethod @jResp, 'IntOf', @intVal OUT, 'results[i].category_path_ids[j]'
            SELECT @j = @j + 1
          END
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'results[i].materials'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            EXEC sp_OAMethod @jResp, 'StringOf', @strVal OUT, 'results[i].materials[j]'
            SELECT @j = @j + 1
          END
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'results[i].taxonomy_path'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            EXEC sp_OAMethod @jResp, 'StringOf', @strVal OUT, 'results[i].taxonomy_path[j]'
            SELECT @j = @j + 1
          END
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'results[i].style'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            EXEC sp_OAMethod @jResp, 'StringOf', @strVal OUT, 'results[i].style[j]'
            SELECT @j = @j + 1
          END
        SELECT @i = @i + 1
      END

    EXEC @hr = sp_OADestroy @http
    EXEC @hr = sp_OADestroy @sbResponseBody
    EXEC @hr = sp_OADestroy @jResp


END
GO

 

© 2000-2024 Chilkat Software, Inc. All Rights Reserved.