当前位置: 首页>>代码示例>>PHP>>正文


PHP MarketplaceWebServiceProducts_Interface::getLowestOfferListingsForSKU方法代码示例

本文整理汇总了PHP中MarketplaceWebServiceProducts_Interface::getLowestOfferListingsForSKU方法的典型用法代码示例。如果您正苦于以下问题:PHP MarketplaceWebServiceProducts_Interface::getLowestOfferListingsForSKU方法的具体用法?PHP MarketplaceWebServiceProducts_Interface::getLowestOfferListingsForSKU怎么用?PHP MarketplaceWebServiceProducts_Interface::getLowestOfferListingsForSKU使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MarketplaceWebServiceProducts_Interface的用法示例。


在下文中一共展示了MarketplaceWebServiceProducts_Interface::getLowestOfferListingsForSKU方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: invokeGetLowestOfferListingsForSKU

/**
 * Get Lowest Offer Listings For SKU Action Sample
 * Gets some of the lowest prices based on the product identified by the given
 * SellerId and SKU.
 *   
 * @param MarketplaceWebServiceProducts_Interface $service instance of MarketplaceWebServiceProducts_Interface
 * @param mixed $request MarketplaceWebServiceProducts_Model_GetLowestOfferListingsForSKU or array of parameters
 */
function invokeGetLowestOfferListingsForSKU(MarketplaceWebServiceProducts_Interface $service, $request)
{
    try {
        $response = $service->getLowestOfferListingsForSKU($request);
        echo "Service Response\n";
        echo "=============================================================================\n";
        echo "        GetLowestOfferListingsForSKUResponse\n";
        $getLowestOfferListingsForSKUResultList = $response->getGetLowestOfferListingsForSKUResult();
        foreach ($getLowestOfferListingsForSKUResultList as $getLowestOfferListingsForSKUResult) {
            echo "            GetLowestOfferListingsForSKUResult\n";
            if ($getLowestOfferListingsForSKUResult->isSetSellerSKU()) {
                echo "        SellerSKU";
                echo "\n";
                echo "                " . $getLowestOfferListingsForSKUResult->getSellerSKU() . "\n";
            }
            if ($getLowestOfferListingsForSKUResult->isSetStatus()) {
                echo "        status";
                echo "\n";
                echo "                " . $getLowestOfferListingsForSKUResult->getStatus() . "\n";
            }
            if ($getLowestOfferListingsForSKUResult->isSetAllOfferListingsConsidered()) {
                echo "                AllOfferListingsConsidered\n";
                echo "                    " . $getLowestOfferListingsForSKUResult->getAllOfferListingsConsidered() . "\n";
            }
            if ($getLowestOfferListingsForSKUResult->isSetProduct()) {
                echo "                Product\n";
                $product = $getLowestOfferListingsForSKUResult->getProduct();
                if ($product->isSetIdentifiers()) {
                    echo "                    Identifiers\n";
                    $identifiers = $product->getIdentifiers();
                    if ($identifiers->isSetMarketplaceASIN()) {
                        echo "                        MarketplaceASIN\n";
                        $marketplaceASIN = $identifiers->getMarketplaceASIN();
                        if ($marketplaceASIN->isSetMarketplaceId()) {
                            echo "                            MarketplaceId\n";
                            echo "                                " . $marketplaceASIN->getMarketplaceId() . "\n";
                        }
                        if ($marketplaceASIN->isSetASIN()) {
                            echo "                            ASIN\n";
                            echo "                                " . $marketplaceASIN->getASIN() . "\n";
                        }
                    }
                    if ($identifiers->isSetSKUIdentifier()) {
                        echo "                        SKUIdentifier\n";
                        $SKUIdentifier = $identifiers->getSKUIdentifier();
                        if ($SKUIdentifier->isSetMarketplaceId()) {
                            echo "                            MarketplaceId\n";
                            echo "                                " . $SKUIdentifier->getMarketplaceId() . "\n";
                        }
                        if ($SKUIdentifier->isSetSellerId()) {
                            echo "                            SellerId\n";
                            echo "                                " . $SKUIdentifier->getSellerId() . "\n";
                        }
                        if ($SKUIdentifier->isSetSellerSKU()) {
                            echo "                            SellerSKU\n";
                            echo "                                " . $SKUIdentifier->getSellerSKU() . "\n";
                        }
                    }
                }
                if ($product->isSetCompetitivePricing()) {
                    echo "                    CompetitivePricing\n";
                    $competitivePricing = $product->getCompetitivePricing();
                    if ($competitivePricing->isSetCompetitivePrices()) {
                        echo "                        CompetitivePrices\n";
                        $competitivePrices = $competitivePricing->getCompetitivePrices();
                        $competitivePriceList = $competitivePrices->getCompetitivePrice();
                        foreach ($competitivePriceList as $competitivePrice) {
                            echo "                            CompetitivePrice\n";
                            if ($competitivePrice->isSetCondition()) {
                                echo "                        condition";
                                echo "\n";
                                echo "                                " . $competitivePrice->getCondition() . "\n";
                            }
                            if ($competitivePrice->isSetSubcondition()) {
                                echo "                        subcondition";
                                echo "\n";
                                echo "                                " . $competitivePrice->getSubcondition() . "\n";
                            }
                            if ($competitivePrice->isSetBelongsToRequester()) {
                                echo "                        belongsToRequester";
                                echo "\n";
                                echo "                                " . $competitivePrice->getBelongsToRequester() . "\n";
                            }
                            if ($competitivePrice->isSetCompetitivePriceId()) {
                                echo "                                CompetitivePriceId\n";
                                echo "                                    " . $competitivePrice->getCompetitivePriceId() . "\n";
                            }
                            if ($competitivePrice->isSetPrice()) {
                                echo "                                Price\n";
                                $price = $competitivePrice->getPrice();
                                if ($price->isSetLandedPrice()) {
                                    echo "                                    LandedPrice\n";
//.........这里部分代码省略.........
开发者ID:liubo2055,项目名称:amazon-mws-sdk,代码行数:101,代码来源:GetLowestOfferListingsForSKUSample.php


注:本文中的MarketplaceWebServiceProducts_Interface::getLowestOfferListingsForSKU方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。