Advertisement
Guest User

Untitled

a guest
Mar 20th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.65 KB | None | 0 0
  1. import boto3
  2. import datetime
  3. import base64
  4. import hmac
  5. import hashlib
  6. from myawis import *
  7.  
  8.  
  9. access_key = '
  10. secret_access = '
  11.  
  12. """http://webservices.amazon.com/onca/xml?
  13. Service=AWSECommerceService&
  14. Operation=ItemSearch&
  15. AWSAccessKeyId=[Access Key ID]&
  16. AssociateTag=[Associate ID]&
  17. SearchIndex=Apparel&
  18. Keywords=Shirt&
  19. Timestamp=[YYYY-MM-DDThh:mm:ssZ]&
  20. Signature=[Request Signature]""".format(access_key, associate_ID, timestamp, request_signature)
  21.  
  22. hashed = base64.b64encode(hmac.new(secret_access, WhatGoesHere?, sha1).digest())
  23.  
  24. obj = CallAwis('github.com', 'UsageStats', access_key, secret_access)
  25. urlinfo = obj.urlinfo()
  26. print (urlinfo)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement