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

AutoIt 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
JCC Cyprus
Jira
Lightspeed
MYOB
Magento
Mailgun
Malaysia MyInvois

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
Salesforce
SendGrid
Shippo
Shopify
Shopware
Shopware 6
SimpleTexting
Square
Stripe
SugarCRM
TicketBAI
TikTok Shop
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

 

 

 

(AutoIt) 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

; This example assumes the Chilkat API to have been previously unlocked.
; See Global Unlock Sample for sample code.

$oHttp = ObjCreate("Chilkat.Http")
Local $bSuccess

; 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

$oSbResponseBody = ObjCreate("Chilkat.StringBuilder")
$bSuccess = $oHttp.QuickGetSb("https://openapi.etsy.com/v2/shops/shop_id/listings/active?api_key=MY_ETSY_KEYSTRING&limit=2",$oSbResponseBody)
If ($bSuccess = False) Then
    ConsoleWrite($oHttp.LastErrorText & @CRLF)
    Exit
EndIf

$oJResp = ObjCreate("Chilkat.JsonObject")
$oJResp.LoadSb($oSbResponseBody)
$oJResp.EmitCompact = False

ConsoleWrite("Response Body:" & @CRLF)
ConsoleWrite($oJResp.Emit() & @CRLF)

Local $iRespStatusCode = $oHttp.LastStatus
ConsoleWrite("Response Status Code = " & $iRespStatusCode & @CRLF)
If ($iRespStatusCode >= 400) Then
    ConsoleWrite("Response Header:" & @CRLF)
    ConsoleWrite($oHttp.LastHeader & @CRLF)
    ConsoleWrite("Failed." & @CRLF)
    Exit
EndIf

; 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")\nWidth: 36cm (14 1\/4 )\nDepth: 6 cm ( 2 1\/2")",
;       "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" width 4", depth 1 1\/4")\n\nRed Figure:\nHeight 61,5cm, width 9cm, depth 3cm\n(Height 24" width 3 1\/2", depth 1 1\/4")\n\nIf you'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

Local $iListing_id
Local $state
Local $iUser_id
Local $iCategory_id
Local $sTitle
Local $sDescription
Local $iCreation_tsz
Local $iEnding_tsz
Local $iOriginal_creation_tsz
Local $iLast_modified_tsz
Local $sPrice
Local $sCurrency_code
Local $iQuantity
Local $iShop_section_id
Local $sFeatured_rank
Local $iState_tsz
Local $sUrl
Local $iViews
Local $iNum_favorers
Local $shipping_template_id
Local $iProcessing_min
Local $iProcessing_max
Local $sWho_made
Local $sIs_supply
Local $sWhen_made
Local $sItem_weight
Local $sItem_weight_unit
Local $sItem_length
Local $sItem_width
Local $sItem_height
Local $sItem_dimensions_unit
Local $bIs_private
Local $sRecipient
Local $sOccasion
Local $style
Local $bNon_taxable
Local $bIs_customizable
Local $bIs_digital
Local $sFile_data
Local $bShould_auto_renew
Local $sLanguage
Local $bHas_variations
Local $iTaxonomy_id
Local $bUsed_manufacturer
Local $iJ
Local $iCount_j
Local $strVal
Local $intVal

Local $iCount = $oJResp.IntOf("count")
Local $sParamsLimit = $oJResp.StringOf("params.limit")
Local $iParamsOffset = $oJResp.IntOf("params.offset")
Local $sParamsPage = $oJResp.StringOf("params.page")
Local $sParamsShop_id = $oJResp.StringOf("params.shop_id")
Local $sParamsKeywords = $oJResp.StringOf("params.keywords")
Local $sParamsSort_on = $oJResp.StringOf("params.sort_on")
Local $sParamsSort_order = $oJResp.StringOf("params.sort_order")
Local $sParamsMin_price = $oJResp.StringOf("params.min_price")
Local $sParamsMax_price = $oJResp.StringOf("params.max_price")
Local $sParamsColor = $oJResp.StringOf("params.color")
Local $iParamsColor_accuracy = $oJResp.IntOf("params.color_accuracy")
Local $sParamsTags = $oJResp.StringOf("params.tags")
Local $sParamsCategory = $oJResp.StringOf("params.category")
Local $sParamsTranslate_keywords = $oJResp.StringOf("params.translate_keywords")
Local $iParamsInclude_private = $oJResp.IntOf("params.include_private")
Local $sV_type = $oJResp.StringOf("type")
Local $iPaginationEffective_limit = $oJResp.IntOf("pagination.effective_limit")
Local $iPaginationEffective_offset = $oJResp.IntOf("pagination.effective_offset")
Local $iPaginationNext_offset = $oJResp.IntOf("pagination.next_offset")
Local $iPaginationEffective_page = $oJResp.IntOf("pagination.effective_page")
Local $iPaginationNext_page = $oJResp.IntOf("pagination.next_page")
Local $i = 0
Local $iCount_i = $oJResp.SizeOfArray("results")
While $i < $iCount_i
    $oJResp.I = $i
    $iListing_id = $oJResp.IntOf("results[i].listing_id")
    $state = $oJResp.StringOf("results[i].state")
    $iUser_id = $oJResp.IntOf("results[i].user_id")
    $iCategory_id = $oJResp.IntOf("results[i].category_id")
    $sTitle = $oJResp.StringOf("results[i].title")
    $sDescription = $oJResp.StringOf("results[i].description")
    $iCreation_tsz = $oJResp.IntOf("results[i].creation_tsz")
    $iEnding_tsz = $oJResp.IntOf("results[i].ending_tsz")
    $iOriginal_creation_tsz = $oJResp.IntOf("results[i].original_creation_tsz")
    $iLast_modified_tsz = $oJResp.IntOf("results[i].last_modified_tsz")
    $sPrice = $oJResp.StringOf("results[i].price")
    $sCurrency_code = $oJResp.StringOf("results[i].currency_code")
    $iQuantity = $oJResp.IntOf("results[i].quantity")
    $iShop_section_id = $oJResp.IntOf("results[i].shop_section_id")
    $sFeatured_rank = $oJResp.StringOf("results[i].featured_rank")
    $iState_tsz = $oJResp.IntOf("results[i].state_tsz")
    $sUrl = $oJResp.StringOf("results[i].url")
    $iViews = $oJResp.IntOf("results[i].views")
    $iNum_favorers = $oJResp.IntOf("results[i].num_favorers")
    $shipping_template_id = $oJResp.StringOf("results[i].shipping_template_id")
    $iProcessing_min = $oJResp.IntOf("results[i].processing_min")
    $iProcessing_max = $oJResp.IntOf("results[i].processing_max")
    $sWho_made = $oJResp.StringOf("results[i].who_made")
    $sIs_supply = $oJResp.StringOf("results[i].is_supply")
    $sWhen_made = $oJResp.StringOf("results[i].when_made")
    $sItem_weight = $oJResp.StringOf("results[i].item_weight")
    $sItem_weight_unit = $oJResp.StringOf("results[i].item_weight_unit")
    $sItem_length = $oJResp.StringOf("results[i].item_length")
    $sItem_width = $oJResp.StringOf("results[i].item_width")
    $sItem_height = $oJResp.StringOf("results[i].item_height")
    $sItem_dimensions_unit = $oJResp.StringOf("results[i].item_dimensions_unit")
    $bIs_private = $oJResp.BoolOf("results[i].is_private")
    $sRecipient = $oJResp.StringOf("results[i].recipient")
    $sOccasion = $oJResp.StringOf("results[i].occasion")
    $style = $oJResp.StringOf("results[i].style")
    $bNon_taxable = $oJResp.BoolOf("results[i].non_taxable")
    $bIs_customizable = $oJResp.BoolOf("results[i].is_customizable")
    $bIs_digital = $oJResp.BoolOf("results[i].is_digital")
    $sFile_data = $oJResp.StringOf("results[i].file_data")
    $bShould_auto_renew = $oJResp.BoolOf("results[i].should_auto_renew")
    $sLanguage = $oJResp.StringOf("results[i].language")
    $bHas_variations = $oJResp.BoolOf("results[i].has_variations")
    $iTaxonomy_id = $oJResp.IntOf("results[i].taxonomy_id")
    $bUsed_manufacturer = $oJResp.BoolOf("results[i].used_manufacturer")
    $iJ = 0
    $iCount_j = $oJResp.SizeOfArray("results[i].sku")
    While $iJ < $iCount_j
        $oJResp.J = $iJ
        $iJ = $iJ + 1
    Wend
    $iJ = 0
    $iCount_j = $oJResp.SizeOfArray("results[i].tags")
    While $iJ < $iCount_j
        $oJResp.J = $iJ
        $strVal = $oJResp.StringOf("results[i].tags[j]")
        $iJ = $iJ + 1
    Wend
    $iJ = 0
    $iCount_j = $oJResp.SizeOfArray("results[i].category_path")
    While $iJ < $iCount_j
        $oJResp.J = $iJ
        $strVal = $oJResp.StringOf("results[i].category_path[j]")
        $iJ = $iJ + 1
    Wend
    $iJ = 0
    $iCount_j = $oJResp.SizeOfArray("results[i].category_path_ids")
    While $iJ < $iCount_j
        $oJResp.J = $iJ
        $intVal = $oJResp.IntOf("results[i].category_path_ids[j]")
        $iJ = $iJ + 1
    Wend
    $iJ = 0
    $iCount_j = $oJResp.SizeOfArray("results[i].materials")
    While $iJ < $iCount_j
        $oJResp.J = $iJ
        $strVal = $oJResp.StringOf("results[i].materials[j]")
        $iJ = $iJ + 1
    Wend
    $iJ = 0
    $iCount_j = $oJResp.SizeOfArray("results[i].taxonomy_path")
    While $iJ < $iCount_j
        $oJResp.J = $iJ
        $strVal = $oJResp.StringOf("results[i].taxonomy_path[j]")
        $iJ = $iJ + 1
    Wend
    $iJ = 0
    $iCount_j = $oJResp.SizeOfArray("results[i].style")
    While $iJ < $iCount_j
        $oJResp.J = $iJ
        $strVal = $oJResp.StringOf("results[i].style[j]")
        $iJ = $iJ + 1
    Wend
    $i = $i + 1
Wend

 

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