Q:

python requests 400 error

Hi I am using python requests module. My code is:
import requests

payload = {'AWSAccessKeyId':'AKIAJHSXAECVML4XJT7NvVLAQ',
      'Action':'ListOrders',
      'CreatedAfter':'2015-05-31T18%3A30%3A00Z',
      'MarketplaceId':'A21TJRUUN4KGV',
      'SellerId':'A3AZITEDAVC4SLU02M7',
      'SignatureMethod':'HmacSHA256',
      'SignatureVersion':2,
      'Timestamp':'2015-06-03T10%3A13%3A48Z',
      'Version':'2013-09-01'}

response = requests.post('https://mws.amazonservices.in/Orders/2013-09-01', params=payload)

print response.status_code

These are Fake credentials
I get this :
400 
What I am i doing wring?

A:

I found this Third party tool called TEMBOO who provides API SDKs for many websites and there is a SKD for Amazon AWS in Python and when i downloaded it and checked the code for ListOrders.py i found these code below which makes it clear that it's expecting date in ISO 8601 date format (i.e. 2012-01-01).
super(ListOrdersInputSet, self)._set_input('AWSSecretKeyId', value)
def set_CreatedAfter(self, value):
"""
Set the value of the CreatedAfter input for this Choreo. ((optional, date) A date used for selecting orders created after (or at) a specified time, in ISO 8601 date format (i.e. 2012-01-01). Defaults to today's date if not provided.)

