OLD | NEW |
1 # Copyright (c) 2010 Chris Moyer http://coredumped.org/ | 1 # Copyright (c) 2010 Chris Moyer http://coredumped.org/ |
2 # | 2 # |
3 # Permission is hereby granted, free of charge, to any person obtaining a | 3 # Permission is hereby granted, free of charge, to any person obtaining a |
4 # copy of this software and associated documentation files (the | 4 # copy of this software and associated documentation files (the |
5 # "Software"), to deal in the Software without restriction, including | 5 # "Software"), to deal in the Software without restriction, including |
6 # without limitation the rights to use, copy, modify, merge, publish, dis- | 6 # without limitation the rights to use, copy, modify, merge, publish, dis- |
7 # tribute, sublicense, and/or sell copies of the Software, and to permit | 7 # tribute, sublicense, and/or sell copies of the Software, and to permit |
8 # persons to whom the Software is furnished to do so, subject to the fol- | 8 # persons to whom the Software is furnished to do so, subject to the fol- |
9 # lowing conditions: | 9 # lowing conditions: |
10 # | 10 # |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 import boto | 22 import boto |
23 from boto.connection import AWSQueryConnection, AWSAuthConnection | 23 from boto.connection import AWSQueryConnection, AWSAuthConnection |
24 import time | 24 import time |
25 import urllib | 25 import urllib |
26 import xml.sax | 26 import xml.sax |
27 from boto.ecs.item import ItemSet | 27 from boto.ecs.item import ItemSet |
28 from boto import handler | 28 from boto import handler |
29 | 29 |
30 class ECSConnection(AWSQueryConnection): | 30 class ECSConnection(AWSQueryConnection): |
31 """ECommerse Connection""" | 31 """ |
| 32 ECommerce Connection |
| 33 |
| 34 For more information on how to use this module see: |
| 35 |
| 36 http://blog.coredumped.org/2010/09/search-for-books-on-amazon-using-boto.htm
l |
| 37 """ |
32 | 38 |
33 APIVersion = '2010-11-01' | 39 APIVersion = '2010-11-01' |
34 | 40 |
35 def __init__(self, aws_access_key_id=None, aws_secret_access_key=None, | 41 def __init__(self, aws_access_key_id=None, aws_secret_access_key=None, |
36 is_secure=True, port=None, proxy=None, proxy_port=None, | 42 is_secure=True, port=None, proxy=None, proxy_port=None, |
37 proxy_user=None, proxy_pass=None, host='ecs.amazonaws.com', | 43 proxy_user=None, proxy_pass=None, host='ecs.amazonaws.com', |
38 debug=0, https_connection_factory=None, path='/'): | 44 debug=0, https_connection_factory=None, path='/'): |
39 AWSQueryConnection.__init__(self, aws_access_key_id, aws_secret_access_k
ey, | 45 AWSQueryConnection.__init__(self, aws_access_key_id, aws_secret_access_k
ey, |
40 is_secure, port, proxy, proxy_port, proxy_us
er, proxy_pass, | 46 is_secure, port, proxy, proxy_port, proxy_us
er, proxy_pass, |
41 host, debug, https_connection_factory, path) | 47 host, debug, https_connection_factory, path) |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 def item_search(self, search_index, **params): | 81 def item_search(self, search_index, **params): |
76 """ | 82 """ |
77 Returns items that satisfy the search criteria, including one or more se
arch | 83 Returns items that satisfy the search criteria, including one or more se
arch |
78 indices. | 84 indices. |
79 | 85 |
80 For a full list of search terms, | 86 For a full list of search terms, |
81 :see: http://docs.amazonwebservices.com/AWSECommerceService/2010-09-01/D
G/index.html?ItemSearch.html | 87 :see: http://docs.amazonwebservices.com/AWSECommerceService/2010-09-01/D
G/index.html?ItemSearch.html |
82 """ | 88 """ |
83 params['SearchIndex'] = search_index | 89 params['SearchIndex'] = search_index |
84 return self.get_response('ItemSearch', params) | 90 return self.get_response('ItemSearch', params) |
OLD | NEW |