newegg 1.0.0 → 1.0.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 +4 -3
- data/lib/newegg/client.rb +3 -1
- data/lib/newegg/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: 026dabfa68098fa118788528256987a18bdb0644
|
|
4
|
+
data.tar.gz: 191d46f35fb1c62ab76defb22b1df0ba1a05d539
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f68a910052f2bad61a24e02ea1459f2fa77e22cff87f769c00dd45c871d6cae92df75c312ccd4b5447f72265e762c5a2034ca62c1ae6c9a7dd5b826406b6edf7
|
|
7
|
+
data.tar.gz: 494dd55223abba4762f83ccb180fc7063d6db2b233b6673279fd3dc28d99eff965431853dd3d34c1ce80303eea9ab86d8ee02df9980666e79275f5d800690c18
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Newegg
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Newegg Marketplace API wrapper
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -20,11 +20,12 @@ Or install it yourself as:
|
|
|
20
20
|
|
|
21
21
|
## Usage
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
client = Newegg::Client.new(app_key: 'your_app_key', access_token: 'your_access_token')
|
|
24
|
+
client.order_details('1843243242343')
|
|
24
25
|
|
|
25
26
|
## Contributing
|
|
26
27
|
|
|
27
|
-
1. Fork it ( https://github.com/
|
|
28
|
+
1. Fork it ( https://github.com/ryancheung/newegg/fork )
|
|
28
29
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
29
30
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
30
31
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/lib/newegg/client.rb
CHANGED
|
@@ -8,7 +8,7 @@ module Newegg
|
|
|
8
8
|
class Client
|
|
9
9
|
include Newegg::API
|
|
10
10
|
|
|
11
|
-
DEFAULT_ENDPOINT = 'https://api.newegg.
|
|
11
|
+
DEFAULT_ENDPOINT = 'https://api.newegg.cn'
|
|
12
12
|
|
|
13
13
|
attr_reader :app_key, :access_token
|
|
14
14
|
|
|
@@ -16,9 +16,11 @@ module Newegg
|
|
|
16
16
|
# @param options [Hash]
|
|
17
17
|
# @option options [String] :app_key Required.
|
|
18
18
|
# @option options [String] :access_token Required.
|
|
19
|
+
# @option options [String] :endpoint Optional.
|
|
19
20
|
def initialize(options)
|
|
20
21
|
@app_key = options.fetch(:app_key)
|
|
21
22
|
@access_token = options.fetch(:access_token)
|
|
23
|
+
@endpoint = options[:endpoint]
|
|
22
24
|
end
|
|
23
25
|
|
|
24
26
|
# @return [String]
|
data/lib/newegg/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: newegg
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ryancheung
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-09-
|
|
11
|
+
date: 2014-09-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|