rakuten_product_api 0.5.0 → 0.5.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 +1 -1
- data/lib/rakuten_product_api/client.rb +1 -1
- data/lib/rakuten_product_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5b57e335a7c9993cd59f1099d0646e870f18d2cb5645e3bc5be8f01ba49da917
|
|
4
|
+
data.tar.gz: aa0cb5c7123ae0c566897405846cea7c5db173bfbaf56b1ca694d5b7ae9c4095
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: df703638dddca412f96e5cffb7465985a5963acc008fc486061188174a29c5bb544d1a82fddba93d5923667e24be9d9c1d7dd9a4e7a8411c75d9363e6667d38c
|
|
7
|
+
data.tar.gz: a7a612761471e79d03b6f6f636ad8559f63a460940c5b5a95400edca3ceaa44d7c7fcf932da537577fa7400a5d510d4d52f34b3376994c7824a1df958efc34ec
|
data/README.md
CHANGED
|
@@ -56,7 +56,7 @@ This library needs to query the API to retreive an `access_token` which has an `
|
|
|
56
56
|
You can initialise the library with the `access_token` and `access_token_expires_at` values to avoid this lookup. If the `access_token_expires_at` is nil or in the past, the library will fetch the value so you can safely cache this value and use it without checking it's expiry.
|
|
57
57
|
|
|
58
58
|
```ruby
|
|
59
|
-
client = RakutenProductApi::Client.new(access_token: 'abcd1234',
|
|
59
|
+
client = RakutenProductApi::Client.new(access_token: 'abcd1234', access_token_expires_at: 1613362973)
|
|
60
60
|
|
|
61
61
|
client.endpoint
|
|
62
62
|
=> "https://api.linksynergy.com"
|
|
@@ -7,7 +7,7 @@ require "nokogiri"
|
|
|
7
7
|
module RakutenProductApi
|
|
8
8
|
class Client
|
|
9
9
|
extend Forwardable
|
|
10
|
-
def_delegators :@authenticate, :access_token, :
|
|
10
|
+
def_delegators :@authenticate, :access_token, :access_token_expires_at
|
|
11
11
|
REFRESH_TOKEN_LEEWAY = 60 * 10 # Ten minutes prior to expiry we should refresh token
|
|
12
12
|
|
|
13
13
|
attr_accessor :sid, :username, :password, :authenticate
|