easyship-rates-ruby-api 0.6.5 → 0.6.6
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58757210cfdc667b5a1204e3e4dae3aca59c1c0c
|
4
|
+
data.tar.gz: 7ca4058f86defec99e3292a0cf467ccfbedce0a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11cec373c46c7f26612b88c03ec1319dacfa4fa543a5b3ba233bbced05f7b7dc5c47f0d6206adfb8a5beba0d1cf826e9ae91e3dd1543472fe287819c6963ea69
|
7
|
+
data.tar.gz: a959de9ccca0c9e5af6168c711bcaff827f0a58649f64259adf9302871141ac4d2e4542d205f1b9559a6679edf4bc41c2842cf017b21360e23d6324d01a0755b
|
@@ -14,6 +14,32 @@ module EasyshipRatesRubyApi
|
|
14
14
|
defaults = {}
|
15
15
|
Mash.from_json(post(path, defaults.merge(options)).body)
|
16
16
|
end
|
17
|
+
|
18
|
+
# Create API key and secret
|
19
|
+
# only used by internal service
|
20
|
+
# @return [Easyship::Rates::Ruby::Mash]
|
21
|
+
def create_with_api_key_and_secret(options = {})
|
22
|
+
path = '/users/create_with_api_key_and_secret'
|
23
|
+
defaults = {}
|
24
|
+
Mash.from_json(post(path, defaults.merge(options)).body)
|
25
|
+
end
|
26
|
+
|
27
|
+
# Show user's all API keys and secrets
|
28
|
+
# only used by internal service
|
29
|
+
# @return [Easyship::Rates::Ruby::Mash]
|
30
|
+
def index_api_key_and_secret(options = {})
|
31
|
+
path = '/users/index_api_key_and_secret'
|
32
|
+
simple_query(path, options)
|
33
|
+
end
|
34
|
+
|
35
|
+
# Delete user's API key and secret
|
36
|
+
# only used by internal service
|
37
|
+
# @return [Easyship::Rates::Ruby::Mash]
|
38
|
+
def delete_api_key_and_secret(options = {})
|
39
|
+
path = '/users/delete_api_key_and_secret'
|
40
|
+
defaults = {}
|
41
|
+
Mash.from_json(delete(path, defaults.merge(options)).body)
|
42
|
+
end
|
17
43
|
end
|
18
44
|
end
|
19
45
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: easyship-rates-ruby-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- aloha
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oauth2
|