zoho_sign 0.2.0 → 0.2.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/CHANGELOG.md +4 -0
- data/README.md +9 -1
- data/lib/zoho_sign/auth.rb +2 -3
- data/lib/zoho_sign/version.rb +1 -1
- data/lib/zoho_sign.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3c46cf1b2d02de19a4ee38cfef80b99434821cd5b8fb2e522fa9d5451262f69f
|
|
4
|
+
data.tar.gz: 120c0544bc95cac4d0b4c4097f1883c845cad7807d1872b26740528be756a3c2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b986846dda6e3844e6acd6bb00f8ca7a71a24bd9164ab23ae8f9144e36445c8ef6f07948b6ba29b09a5e7ee6f712f4f95c99c79963d211784478f58b5e1c2701
|
|
7
|
+
data.tar.gz: '0297893e33d5effb14c80ed199402798642c56bcf2a56300f31ab3f6e3fa8688086c973bcb0c11261f65067904c2c424ef9a0476f09a19e8921a3d9c11665c1c'
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -48,7 +48,15 @@ ZohoSign.config.update(
|
|
|
48
48
|
params = ZohoSign::Auth.refresh_token(ENV["ZOHO_SIGN_REFRESH_TOKEN"])
|
|
49
49
|
ZohoSign.config.connection = params
|
|
50
50
|
```
|
|
51
|
-
|
|
51
|
+
### Configure regional domain (if applicable)
|
|
52
|
+
```ruby
|
|
53
|
+
ZohoSign.config.update(
|
|
54
|
+
api: {
|
|
55
|
+
auth_domain: "https://accounts.zoho.eu",
|
|
56
|
+
domain: "https://sign.zoho.eu"
|
|
57
|
+
}
|
|
58
|
+
)
|
|
59
|
+
```
|
|
52
60
|
### How to use `ZohoSign::Template`
|
|
53
61
|
|
|
54
62
|
Find all templetes:
|
data/lib/zoho_sign/auth.rb
CHANGED
|
@@ -11,8 +11,6 @@ module ZohoSign
|
|
|
11
11
|
class Auth
|
|
12
12
|
extend Forwardable
|
|
13
13
|
|
|
14
|
-
AUTH_DOMAIN_PATH = "https://accounts.zoho.com"
|
|
15
|
-
|
|
16
14
|
TOKEN_PATH = "/oauth/v2/token"
|
|
17
15
|
|
|
18
16
|
DEFAULT_SCOPES = %w[
|
|
@@ -27,6 +25,7 @@ module ZohoSign
|
|
|
27
25
|
@configuration = ZohoSign.config
|
|
28
26
|
@access_type = access_type
|
|
29
27
|
@scopes = scopes
|
|
28
|
+
@auth_domain_path = ZohoSign.config.api.auth_domain
|
|
30
29
|
end
|
|
31
30
|
|
|
32
31
|
def self.refresh_token(refresh_token)
|
|
@@ -57,7 +56,7 @@ module ZohoSign
|
|
|
57
56
|
end
|
|
58
57
|
|
|
59
58
|
def token_full_uri
|
|
60
|
-
Addressable::URI.join(
|
|
59
|
+
Addressable::URI.join(@auth_domain_path, TOKEN_PATH)
|
|
61
60
|
end
|
|
62
61
|
|
|
63
62
|
def self.get_token(grant_token)
|
data/lib/zoho_sign/version.rb
CHANGED
data/lib/zoho_sign.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zoho_sign
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Wecasa Developers Team
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: exe
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date: 2023-10-
|
|
14
|
+
date: 2023-10-03 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: activesupport
|