Пример #1
0
 /**
  * List Carts By Next Token
  * Returns the next page of results based on the next token given from a previous call to
  *         ListCarts or ListCartsByNextToken. The output includes a next token
  *         that can be used to obtain the next page of results, if there are any.
  *
  * @param mixed $request array of parameters for MWSCartService_Model_ListCartsByNextToken request or MWSCartService_Model_ListCartsByNextToken object itself
  * @see MWSCartService_Model_ListCartsByNextTokenRequest
  * @return MWSCartService_Model_ListCartsByNextTokenResponse
  *
  * @throws MWSCartService_Exception
  */
 public function listCartsByNextToken($request)
 {
     if (!$request instanceof MWSCartService_Model_ListCartsByNextTokenRequest) {
         require_once dirname(__FILE__) . '/Model/ListCartsByNextTokenRequest.php';
         $request = new MWSCartService_Model_ListCartsByNextTokenRequest($request);
     }
     $parameters = $request->toQueryParameterArray();
     $parameters['Action'] = 'ListCartsByNextToken';
     $httpResponse = $this->_invoke($parameters);
     require_once dirname(__FILE__) . '/Model/ListCartsByNextTokenResponse.php';
     $response = MWSCartService_Model_ListCartsByNextTokenResponse::fromXML($httpResponse['ResponseBody']);
     $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
     return $response;
 }
Пример #2
0
 /**
  * List Carts By Next Token
  * Returns the next page of results based on the next token given from a previous call to
  *         ListCarts or ListCartsByNextToken. The output includes a next token
  *         that can be used to obtain the next page of results, if there are any.
  *
  * @param mixed $request array of parameters for MWSCartService_Model_ListCartsByNextToken request or MWSCartService_Model_ListCartsByNextToken object itself
  * @see MWSCartService_Model_ListCartsByNextToken
  * @return MWSCartService_Model_ListCartsByNextTokenResponse
  *
  * @throws MWSCartService_Exception
  */
 public function listCartsByNextToken($request)
 {
     require_once dirname(__FILE__) . '/Model/ListCartsByNextTokenResponse.php';
     return MWSCartService_Model_ListCartsByNextTokenResponse::fromXML($this->_invoke('ListCartsByNextToken'));
 }