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

PowerBuilder 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

 

 

 

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

integer li_rc
oleobject loo_Http
integer li_Success
oleobject loo_SbResponseBody
oleobject loo_JResp
integer li_RespStatusCode
integer li_Listing_id
string ls_State
integer li_User_id
integer li_Category_id
string ls_Title
string ls_Description
integer li_Creation_tsz
integer li_Ending_tsz
integer li_Original_creation_tsz
integer li_Last_modified_tsz
string ls_Price
string ls_Currency_code
integer li_Quantity
integer li_Shop_section_id
string ls_Featured_rank
integer li_State_tsz
string ls_Url
integer li_Views
integer li_Num_favorers
string ls_Shipping_template_id
integer li_Processing_min
integer li_Processing_max
string ls_Who_made
string ls_Is_supply
string ls_When_made
string ls_Item_weight
string ls_Item_weight_unit
string ls_Item_length
string ls_Item_width
string ls_Item_height
string ls_Item_dimensions_unit
integer li_Is_private
string ls_Recipient
string ls_Occasion
string ls_Style
integer li_Non_taxable
integer li_Is_customizable
integer li_Is_digital
string ls_File_data
integer li_Should_auto_renew
string ls_Language
integer li_Has_variations
integer li_Taxonomy_id
integer li_Used_manufacturer
integer j
integer li_Count_j
string ls_StrVal
integer li_IntVal
integer li_Count
string ls_ParamsLimit
integer li_ParamsOffset
string ls_ParamsPage
string ls_ParamsShop_id
string ls_ParamsKeywords
string ls_ParamsSort_on
string ls_ParamsSort_order
string ls_ParamsMin_price
string ls_ParamsMax_price
string ls_ParamsColor
integer li_ParamsColor_accuracy
string ls_ParamsTags
string ls_ParamsCategory
string ls_ParamsTranslate_keywords
integer li_ParamsInclude_private
string ls_V_type
integer li_PaginationEffective_limit
integer li_PaginationEffective_offset
integer li_PaginationNext_offset
integer li_PaginationEffective_page
integer li_PaginationNext_page
integer i
integer li_Count_i

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

loo_Http = create oleobject
li_rc = loo_Http.ConnectToNewObject("Chilkat_9_5_0.Http")
if li_rc < 0 then
    destroy loo_Http
    MessageBox("Error","Connecting to COM object failed")
    return
end if

// 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

loo_SbResponseBody = create oleobject
li_rc = loo_SbResponseBody.ConnectToNewObject("Chilkat_9_5_0.StringBuilder")

li_Success = loo_Http.QuickGetSb("https://openapi.etsy.com/v2/shops/shop_id/listings/active?api_key=MY_ETSY_KEYSTRING&limit=2",loo_SbResponseBody)
if li_Success = 0 then
    Write-Debug loo_Http.LastErrorText
    destroy loo_Http
    destroy loo_SbResponseBody
    return
end if

loo_JResp = create oleobject
li_rc = loo_JResp.ConnectToNewObject("Chilkat_9_5_0.JsonObject")

loo_JResp.LoadSb(loo_SbResponseBody)
loo_JResp.EmitCompact = 0

Write-Debug "Response Body:"
Write-Debug loo_JResp.Emit()

li_RespStatusCode = loo_Http.LastStatus
Write-Debug "Response Status Code = " + string(li_RespStatusCode)
if li_RespStatusCode >= 400 then
    Write-Debug "Response Header:"
    Write-Debug loo_Http.LastHeader
    Write-Debug "Failed."
    destroy loo_Http
    destroy loo_SbResponseBody
    destroy loo_JResp
    return
end if

// 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

li_Count = loo_JResp.IntOf("count")
ls_ParamsLimit = loo_JResp.StringOf("params.limit")
li_ParamsOffset = loo_JResp.IntOf("params.offset")
ls_ParamsPage = loo_JResp.StringOf("params.page")
ls_ParamsShop_id = loo_JResp.StringOf("params.shop_id")
ls_ParamsKeywords = loo_JResp.StringOf("params.keywords")
ls_ParamsSort_on = loo_JResp.StringOf("params.sort_on")
ls_ParamsSort_order = loo_JResp.StringOf("params.sort_order")
ls_ParamsMin_price = loo_JResp.StringOf("params.min_price")
ls_ParamsMax_price = loo_JResp.StringOf("params.max_price")
ls_ParamsColor = loo_JResp.StringOf("params.color")
li_ParamsColor_accuracy = loo_JResp.IntOf("params.color_accuracy")
ls_ParamsTags = loo_JResp.StringOf("params.tags")
ls_ParamsCategory = loo_JResp.StringOf("params.category")
ls_ParamsTranslate_keywords = loo_JResp.StringOf("params.translate_keywords")
li_ParamsInclude_private = loo_JResp.IntOf("params.include_private")
ls_V_type = loo_JResp.StringOf("type")
li_PaginationEffective_limit = loo_JResp.IntOf("pagination.effective_limit")
li_PaginationEffective_offset = loo_JResp.IntOf("pagination.effective_offset")
li_PaginationNext_offset = loo_JResp.IntOf("pagination.next_offset")
li_PaginationEffective_page = loo_JResp.IntOf("pagination.effective_page")
li_PaginationNext_page = loo_JResp.IntOf("pagination.next_page")
i = 0
li_Count_i = loo_JResp.SizeOfArray("results")
do while i < li_Count_i
    loo_JResp.I = i
    li_Listing_id = loo_JResp.IntOf("results[i].listing_id")
    ls_State = loo_JResp.StringOf("results[i].state")
    li_User_id = loo_JResp.IntOf("results[i].user_id")
    li_Category_id = loo_JResp.IntOf("results[i].category_id")
    ls_Title = loo_JResp.StringOf("results[i].title")
    ls_Description = loo_JResp.StringOf("results[i].description")
    li_Creation_tsz = loo_JResp.IntOf("results[i].creation_tsz")
    li_Ending_tsz = loo_JResp.IntOf("results[i].ending_tsz")
    li_Original_creation_tsz = loo_JResp.IntOf("results[i].original_creation_tsz")
    li_Last_modified_tsz = loo_JResp.IntOf("results[i].last_modified_tsz")
    ls_Price = loo_JResp.StringOf("results[i].price")
    ls_Currency_code = loo_JResp.StringOf("results[i].currency_code")
    li_Quantity = loo_JResp.IntOf("results[i].quantity")
    li_Shop_section_id = loo_JResp.IntOf("results[i].shop_section_id")
    ls_Featured_rank = loo_JResp.StringOf("results[i].featured_rank")
    li_State_tsz = loo_JResp.IntOf("results[i].state_tsz")
    ls_Url = loo_JResp.StringOf("results[i].url")
    li_Views = loo_JResp.IntOf("results[i].views")
    li_Num_favorers = loo_JResp.IntOf("results[i].num_favorers")
    ls_Shipping_template_id = loo_JResp.StringOf("results[i].shipping_template_id")
    li_Processing_min = loo_JResp.IntOf("results[i].processing_min")
    li_Processing_max = loo_JResp.IntOf("results[i].processing_max")
    ls_Who_made = loo_JResp.StringOf("results[i].who_made")
    ls_Is_supply = loo_JResp.StringOf("results[i].is_supply")
    ls_When_made = loo_JResp.StringOf("results[i].when_made")
    ls_Item_weight = loo_JResp.StringOf("results[i].item_weight")
    ls_Item_weight_unit = loo_JResp.StringOf("results[i].item_weight_unit")
    ls_Item_length = loo_JResp.StringOf("results[i].item_length")
    ls_Item_width = loo_JResp.StringOf("results[i].item_width")
    ls_Item_height = loo_JResp.StringOf("results[i].item_height")
    ls_Item_dimensions_unit = loo_JResp.StringOf("results[i].item_dimensions_unit")
    li_Is_private = loo_JResp.BoolOf("results[i].is_private")
    ls_Recipient = loo_JResp.StringOf("results[i].recipient")
    ls_Occasion = loo_JResp.StringOf("results[i].occasion")
    ls_Style = loo_JResp.StringOf("results[i].style")
    li_Non_taxable = loo_JResp.BoolOf("results[i].non_taxable")
    li_Is_customizable = loo_JResp.BoolOf("results[i].is_customizable")
    li_Is_digital = loo_JResp.BoolOf("results[i].is_digital")
    ls_File_data = loo_JResp.StringOf("results[i].file_data")
    li_Should_auto_renew = loo_JResp.BoolOf("results[i].should_auto_renew")
    ls_Language = loo_JResp.StringOf("results[i].language")
    li_Has_variations = loo_JResp.BoolOf("results[i].has_variations")
    li_Taxonomy_id = loo_JResp.IntOf("results[i].taxonomy_id")
    li_Used_manufacturer = loo_JResp.BoolOf("results[i].used_manufacturer")
    j = 0
    li_Count_j = loo_JResp.SizeOfArray("results[i].sku")
    do while j < li_Count_j
        loo_JResp.J = j
        j = j + 1
    loop
    j = 0
    li_Count_j = loo_JResp.SizeOfArray("results[i].tags")
    do while j < li_Count_j
        loo_JResp.J = j
        ls_StrVal = loo_JResp.StringOf("results[i].tags[j]")
        j = j + 1
    loop
    j = 0
    li_Count_j = loo_JResp.SizeOfArray("results[i].category_path")
    do while j < li_Count_j
        loo_JResp.J = j
        ls_StrVal = loo_JResp.StringOf("results[i].category_path[j]")
        j = j + 1
    loop
    j = 0
    li_Count_j = loo_JResp.SizeOfArray("results[i].category_path_ids")
    do while j < li_Count_j
        loo_JResp.J = j
        li_IntVal = loo_JResp.IntOf("results[i].category_path_ids[j]")
        j = j + 1
    loop
    j = 0
    li_Count_j = loo_JResp.SizeOfArray("results[i].materials")
    do while j < li_Count_j
        loo_JResp.J = j
        ls_StrVal = loo_JResp.StringOf("results[i].materials[j]")
        j = j + 1
    loop
    j = 0
    li_Count_j = loo_JResp.SizeOfArray("results[i].taxonomy_path")
    do while j < li_Count_j
        loo_JResp.J = j
        ls_StrVal = loo_JResp.StringOf("results[i].taxonomy_path[j]")
        j = j + 1
    loop
    j = 0
    li_Count_j = loo_JResp.SizeOfArray("results[i].style")
    do while j < li_Count_j
        loo_JResp.J = j
        ls_StrVal = loo_JResp.StringOf("results[i].style[j]")
        j = j + 1
    loop
    i = i + 1
loop


destroy loo_Http
destroy loo_SbResponseBody
destroy loo_JResp

 

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