コード例 #1
0
ファイル: orders.py プロジェクト: JDBurnZ/python-amazon-mws
	def send_request(self, action, args_dict):
		"""
		Send an Orders API request to the Amazon MWS server.
		Args:
			action[str]: an Orders API supported action. UnsupportActionError is raises if this is an unknown action
			args_dict[dict]: dictionary of arguments that follow the Orders API argument guidelines
		"""
		args = self.new_args()
		args['Action'] = action

		query = self._combine_dicts( args, args_dict )
		new_query = {}
		for key, value in six.iteritems(query):
			self._update_query( new_query, key, value )

		return MWS.send_request(self, new_query, path=self.path )
コード例 #2
0
    def send_request(self, action, args_dict):
        """
		Send an Orders API request to the Amazon MWS server.
		Args:
			action[str]: an Orders API supported action. UnsupportActionError is raises if this is an unknown action
			args_dict[dict]: dictionary of arguments that follow the Orders API argument guidelines
		"""
        args = self.new_args()
        args['Action'] = action

        query = self._combine_dicts(args, args_dict)
        new_query = {}
        for key, value in six.iteritems(query):
            self._update_query(new_query, key, value)

        return MWS.send_request(self, new_query, path=self.path)
コード例 #3
0
ファイル: orders.py プロジェクト: wanfgh/python-amazon-mws-1
	def send_request(self, action, args_dict):
		"""
		Send an Orders API request to the Amazon MWS server.
		Args:
			action[str]: an Orders API supported action. UnsupportActionError is raises if this is an unknown action
			args_dict[dict]: dictionary of arguments that follow the Orders API argument guidelines
		"""
		#Have to make the timestamp just before sending it out
		args = self.new_args()

		if action not in self.supported_actions:
			raise UnsupportedActionError( "UnsupportedActionError! '%s' is not a supported action in the Orders API, supported actions are: %s"% (action, self.supported_actions) )
		args['Action'] = action


		query = self._combine_dicts( args, args_dict )
		new_query = {}
		for key, value in query.iteritems():
			self._update_query( new_query, key, value )

		return MWS.send_request(self, new_query, path=self.path )
コード例 #4
0
ファイル: orders.py プロジェクト: wanfgh/python-amazon-mws-1
	def __init__(self, *args, **kwargs):
		MWS.__init__(self, *args, **kwargs)