amazon_pa_api 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b58d4eea3a6af7df87c5d39d0022be5491a43935
4
- data.tar.gz: c6dc032953e373889ccb94a0dba0cb58ea450a23
3
+ metadata.gz: edd7205207a1d63992e1ce76e00ea23a84da1dcf
4
+ data.tar.gz: 116ef6b511304f7902da9ab287c56022fba74ab6
5
5
  SHA512:
6
- metadata.gz: 5c27cde0d227b78ce348b1427c843546f5ec47fe33b744736ade7ec6c276f5bbde2653e9b1a980a9bd873e09f49b425c2b4433fb1a665fda665033044fcfd863
7
- data.tar.gz: eeb3e0e16b3192abb5ab335aea065734a6d2a82fda10e6be077d057206ea2fa750bb2a00b488f69cc481ea1b27cfa54c36511deae1c0ffbee57c6dbacca21a29
6
+ metadata.gz: 0f48685698d113ddb7e7dda899711959eef12f4423b59658c023e2290629e69cec65fbe2124af6a779795731322b6e355ab9f52d9021aa3bf38005239621b2e8
7
+ data.tar.gz: 1769d6dd9694c0330792a975bad26e2981e9500924ac89a57c934ade208561a7605faa8c133a1c384003702b1259ac450a31e17a739fc3afb020c2ea1e4a678a
data/README.md CHANGED
@@ -29,7 +29,7 @@ You can use easily Amazon Product Advertising API calls, like this.
29
29
 
30
30
  puts item_lookup.get.body # => XML
31
31
  ```
32
- Or, you can set Amazon credentials as hash, like this.
32
+ Or you can set Amazon credentials as hash, like this.
33
33
  ```ruby
34
34
  credentials = { access_key_id: "Your Amazon AWS access key id",
35
35
  secret_access_key: "Your Amazon AWS secret key",
@@ -43,7 +43,15 @@ Or, you can set Amazon credentials as hash, like this.
43
43
  item_lookup.credentials = credentials
44
44
  puts item_lookup.get.body # => XML
45
45
  ```
46
-
46
+ If you want to choice Amazon ECommerce end point, like this.
47
+ ```ruby
48
+ item_lookup = = AmazonPaApi::ItemLookup.new('B0026IAWMU', region: :uk)
49
+ ```
50
+ You can use Amazon Product Advertising API operation's request parameters as instance methods.
51
+ ```ruby
52
+ item_lookup.id_type = :ean
53
+ item_lookup.condition = :new
54
+ ```
47
55
  ## Development
48
56
 
49
57
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -1,3 +1,3 @@
1
1
  module AmazonPaApi
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amazon_pa_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - sakura-computer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-09-06 00:00:00.000000000 Z
11
+ date: 2015-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler