* Uncomment to try out Mock Service that simulates FBAInboundServiceMWS
 * responses without calling FBAInboundServiceMWS service.
 *
 * Responses are loaded from local XML files. You can tweak XML files to
 * experiment with various outputs during development
 *
 * XML files available under FBAInboundServiceMWS/Mock tree
 *
 ***********************************************************************/
// $service = new FBAInboundServiceMWS_Mock();
/************************************************************************
 * Setup request parameters and uncomment invoke to try out
 * sample for List Inbound Shipment Items By Next Token Action
 ***********************************************************************/
// @TODO: set request. Action can be passed as FBAInboundServiceMWS_Model_ListInboundShipmentItemsByNextToken
$request = new FBAInboundServiceMWS_Model_ListInboundShipmentItemsByNextTokenRequest();
$request->setSellerId(MERCHANT_ID);
// object or array of parameters
invokeListInboundShipmentItemsByNextToken($service, $request);
/**
 * Get List Inbound Shipment Items By Next Token Action Sample
 * Gets competitive pricing and related information for a product identified by
 * the MarketplaceId and ASIN.
 *
 * @param FBAInboundServiceMWS_Interface $service instance of FBAInboundServiceMWS_Interface
 * @param mixed $request FBAInboundServiceMWS_Model_ListInboundShipmentItemsByNextToken or array of parameters
 */
function invokeListInboundShipmentItemsByNextToken(FBAInboundServiceMWS_Interface $service, $request)
{
    try {
        $response = $service->ListInboundShipmentItemsByNextToken($request);
コード例 #2
0
 /**
  * List Inbound Shipment Items By Next Token
  * Gets the next set of inbound shipment items with the NextToken 
  * which can be used to iterate through the remaining inbound shipment 
  * items. If a NextToken is not returned, it indicates the end-of-data. 
  * You must first call ListInboundShipmentItems to get a 'NextToken'.
  *
  * @param mixed $request array of parameters for FBAInboundServiceMWS_Model_ListInboundShipmentItemsByNextToken request or FBAInboundServiceMWS_Model_ListInboundShipmentItemsByNextToken object itself
  * @see FBAInboundServiceMWS_Model_ListInboundShipmentItemsByNextTokenRequest
  * @return FBAInboundServiceMWS_Model_ListInboundShipmentItemsByNextTokenResponse
  *
  * @throws FbaInbound_Exception
  */
 public function listInboundShipmentItemsByNextToken($request)
 {
     if (!$request instanceof Model\FBAInboundServiceMWS_Model_ListInboundShipmentItemsByNextTokenRequest) {
         //require_once (dirname(__FILE__) . '/Model/ListInboundShipmentItemsByNextTokenRequest.php');
         $request = new FBAInboundServiceMWS_Model_ListInboundShipmentItemsByNextTokenRequest($request);
     }
     $parameters = $request->toQueryParameterArray();
     $parameters['Action'] = 'ListInboundShipmentItemsByNextToken';
     $httpResponse = $this->_invoke($parameters);
     //require_once (dirname(__FILE__) . '/Model/ListInboundShipmentItemsByNextTokenResponse.php');
     $response = Model\FBAInboundServiceMWS_Model_ListInboundShipmentItemsByNextTokenResponse::fromXML($httpResponse['ResponseBody']);
     $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
     return $response;
 }