/**
  * Get an item by it's item identity
  */
 private function getItemByIdentity($p_itemIdentity)
 {
     return buildItem(item_info_from_identity($p_itemIdentity));
 }
示例#2
0
function getItemByID($p_itemID)
{
    return buildItem(item_info($p_itemID));
}
 * For example, it will determine what categories can be specified, the values
 * allowed as shipping services, the visibility of the item in some searches and other
 * information.
 *
 * Note that due to the risk of listing fees been raised this example will list the item
 * to the sandbox site.
 */
$siteId = Constants\SiteIds::US;
/**
 * Create the service object.
 *
 * For more information about creating a service object, see:
 * http://devbay.net/sdk/guides/getting-started/#service-object
 */
$service = new Services\TradingService(array('apiVersion' => $config['tradingApiVersion'], 'sandbox' => true, 'siteId' => $siteId));
$item = buildItem();
if (verifyItem($item)) {
    addItem($item);
}
/**
 * Builds the item object that can be used in both the verify and add requests.
 */
function buildItem()
{
    /**
     * Begin creating the fixed price item.
     */
    $item = new Types\ItemType();
    /**
     * We want a multiple quantity fixed price listing.
     */