shoptet 0.0.51 → 0.0.52
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/lib/shoptet.rb +5 -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: 15fcbfedaa4b4ea58a0d7445279327a24b68fa15d72769f6f4db309a3825c2cd
|
|
4
|
+
data.tar.gz: 8f1e5a6ff4c35e1646353e8dca4bbe9d2cb5a658454aca05744f2a0f553c7605
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: da18bc74211075d1647a3d40577c189ec51f7e1ff08a3916b1f7a1de93b15665251d9d4b6769f5ac607efd6dc6063214da2e3b590ac04f4b03e7e17775f4fd4e
|
|
7
|
+
data.tar.gz: e774443131ad00a503f6fb77705f9b3e47ac6422e5773e6a83b24d4d0a33ac9ef0b437a0650b98d542dab74e2dd493217f60971064d36f7db16fa2321de8cc88
|
data/lib/shoptet.rb
CHANGED
|
@@ -28,7 +28,7 @@ class Shoptet
|
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
def self.version
|
|
31
|
-
'0.0.
|
|
31
|
+
'0.0.52'
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
def self.ar_on_token_error(model)
|
|
@@ -234,6 +234,10 @@ class Shoptet
|
|
|
234
234
|
enumerize("https://api.myshoptet.com/api/webhooks", api_params)
|
|
235
235
|
end
|
|
236
236
|
|
|
237
|
+
def endpoints(api_params={})
|
|
238
|
+
enumerize("https://api.myshoptet.com/api/system/endpoints", api_params)
|
|
239
|
+
end
|
|
240
|
+
|
|
237
241
|
def new_api_token
|
|
238
242
|
headers = { 'Authorization' => "Bearer #{@oauth_token}" }
|
|
239
243
|
|