amazon_pa_api 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +10 -2
- data/lib/amazon_pa_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: edd7205207a1d63992e1ce76e00ea23a84da1dcf
|
|
4
|
+
data.tar.gz: 116ef6b511304f7902da9ab287c56022fba74ab6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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.
|
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.
|
|
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-
|
|
11
|
+
date: 2015-09-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|