This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.
Working with Inventory in Stub Hub
Overview
The following operations allow you to work with the inventory. Click an operation name to see details on how to use it.
For a sample proxy service that illustrates how to work with the inventory, see Sample configuration.
Operation | Description |
---|---|
search for ticket listings for an event |
Operation details
This section provides details on the operations.
Search Inventory
The searchInventoryÂ
search for ticket listings for an event.
<stubHub.searchInventory> <eventId>{$ctx:eventId}</eventId> <zoneIdList>{$ctx:zoneIdList}</zoneIdList> <sectionIdList>{$ctx:sectionIdList}</sectionIdList> <quantity>{$ctx:quantity}</quantity> <priceMin>{$ctx:priceMin}</priceMin> <priceMax>{$ctx:priceMax}</priceMax> <listingAttributeList>{$ctx:listingAttributeList}</listingAttributeList> <listingAttributeCategoryList>{$ctx:listingAttributeCategoryList}</listingAttributeCategoryList> <deliveryTypeList>{$ctx:deliveryTypeList}</deliveryTypeList> <zoneStats>{$ctx:zoneStats}</zoneStats> <sectionStats>{$ctx:sectionStats}</sectionStats> <pricingSummary>{$ctx:pricingSummary}</pricingSummary> </stubHub.searchInventory>
Sample request
Following is a sample REST request that can be handled by the searchInventory operation.
{ "appToken": "%s(appToken)", "apiUrl": "%s(apiUrl)", "eventId": "%s(eventId)", "zoneIdList": "%s(zoneIdList)", "sectionIdList": "%s(sectionIdList)", "quantity": "%s(quantity)", "priceMin": "%s(priceMin)", "priceMax": "%s(priceMax)", "listingAttributeList": "%s(listingAttributeList)", "listingAttributeCategoryList": "%s(listingAttributeCategoryList)", "deliveryTypeList": "%s(deliveryTypeList)", "zoneStats": "%s(zoneStats)", "sectionStats": "%s(sectionStats)", "pricingSummary": "%s(pricingSummary)" }
Sample configuration
Following is a sample proxy service that illustrates how to connect to Basecamp with the init
operation and use the searchInventoryÂ
operation. The sample request for this proxy can be found in searchInventory sample request. You can use this sample as a template for using other operations in this category.
<proxy xmlns="http://ws.apache.org/ns/synapse" name="basecamp_listStars" transports="https,http" statistics="disable" trace="disable" startOnLoad="true"> <target> <inSequence> <property name="apiUrl" expression="json-eval($.apiUrl)"/> <property name="appToken" expression="json-eval($.appToken)"/> <property name="consumerKey" expression="json-eval($.consumerKey)"/> <property name="consumerSecret" expression="json-eval($.consumerSecret)"/> <property name="username" expression="json-eval($.username)"/> <property name="password" expression="json-eval($.password)"/> <property name="eventId" expression="json-eval($.eventId)"/> <property name="scope" expression="json-eval($.scope)"/> <property name="zoneIdList" expression="json-eval($.zoneIdList)"/> <property name="sectionIdList" expression="json-eval($.sectionIdList)"/> <property name="quantity" expression="json-eval($.quantity)"/> <property name="priceMin" expression="json-eval($.priceMin)"/> <property name="priceMax" expression="json-eval($.priceMax)"/> <property name="listingAttributeList" expression="json-eval($.listingAttributeList)"/> <property name="listingAttributeCategoryList" expression="json-eval($.listingAttributeCategoryList)"/> <property name="deliveryTypeList" expression="json-eval($.deliveryTypeList)"/> <property name="zoneStats" expression="json-eval($.zoneStats)"/> <property name="sectionStats" expression="json-eval($.sectionStats)"/> <property name="pricingSummary" expression="json-eval($.pricingSummary)"/> <stubHub.init> <apiUrl>{$ctx:apiUrl}</apiUrl> <appToken>{$ctx:appToken}</appToken> <consumerKey>{$ctx:consumerKey}</consumerKey> <consumerSecret>{$ctx:consumerSecret}</consumerSecret> <username>{$ctx:username}</username> <password>{$ctx:password}</password> <scope>{$ctx:scope}</scope> </stubHub.init> <stubHub.searchInventory> <eventId>{$ctx:eventId}</eventId> <zoneIdList>{$ctx:zoneIdList}</zoneIdList> <sectionIdList>{$ctx:sectionIdList}</sectionIdList> <quantity>{$ctx:quantity}</quantity> <priceMin>{$ctx:priceMin}</priceMin> <priceMax>{$ctx:priceMax}</priceMax> <listingAttributeList>{$ctx:listingAttributeList}</listingAttributeList> <listingAttributeCategoryList>{$ctx:listingAttributeCategoryList}</listingAttributeCategoryList> <deliveryTypeList>{$ctx:deliveryTypeList}</deliveryTypeList> <zoneStats>{$ctx:zoneStats}</zoneStats> <sectionStats>{$ctx:sectionStats}</sectionStats> <pricingSummary>{$ctx:pricingSummary}</pricingSummary> </stubHub.searchInventory> <respond></respond> </inSequence> <outSequence> <send></send> </outSequence> </target> </proxy>Â