dotloop-ruby 0.1.0 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0ea45a664b65e4d47429fa29d74e526ac3ca6ebb
4
- data.tar.gz: 6935a5327aa3fee3daf1cee706dfc58d8bd895b4
3
+ metadata.gz: 0d421bcffcb78f4d210a2b95130fd85064a23678
4
+ data.tar.gz: 0cd34bd62aed9f440e83e9b66727c61acff03151
5
5
  SHA512:
6
- metadata.gz: 5a8766fd9534e93261be7606469592fcb8ad7f5c1fc6508dd570e7f21eb788cd86f0a6193b15516fb50a741fae05e1827cba64af6dcd08323af543d5818027db
7
- data.tar.gz: f9d0ed7347e1b063e4a3be49bf929bd3345b3af5b7e3379262667b69cc3a8dad55e14cf567fd55b0e1468035f9bef433522b1abb940b16ae145ec5e82acfb484
6
+ metadata.gz: f05a65dc835ae5bd53d252c0435b3264ac51c814ae85b32701f96468317403c69647b0f7d2db4fd37c215013efe5330f32a932df23a6ab1ba063ab35b00bc0f9
7
+ data.tar.gz: 626a959fe1fd0481fb7565c10f045997428b13e3de435334411030bdea3fa54a111d620cdfdfd1a0c018c45c93ef2bdc4769d7ea1b344806747e8c471372a65e
data/README.md CHANGED
@@ -62,7 +62,19 @@ Dotloop uses OAuth2 for authentication (https://dotloop.github.io/public-api/#au
62
62
  "token_type": "Bearer",
63
63
  "refresh_token": "19bfda68-ca62-480c-9c62-2ba408458fc7",
64
64
  "expires_in": 43145,
65
- "scope": "profile:*, loop:*"
65
+ "scope": "account:read, profile:*, loop:*, contact:*, template:read"
66
+ }
67
+
68
+ # refresh access token - https://dotloop.github.io/public-api/#refreshing-access-token-after-expiration
69
+
70
+ response = dotloop_auth.refresh_access_token(refresh_token)
71
+
72
+ {
73
+ "access_token": "86609772-aa95-4071-ad7f-25ad2d0be295",
74
+ "token_type": "Bearer",
75
+ "refresh_token": "19bfda68-ca62-480c-9c62-2ba408458fc7",
76
+ "expires_in": 43199,
77
+ "scope": "account:read, profile:*, loop:*, contact:*, template:read"
66
78
  }
67
79
  ```
68
80
 
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["sampat.badhe@kiprosh.com"]
11
11
 
12
12
  spec.summary = %(Dotloop library)
13
- spec.description = %(dotloop-ruby id Ruby library for Dotloop API v2.)
13
+ spec.description = %(dotloop-ruby is Ruby library for Dotloop API v2.)
14
14
  spec.homepage = "https://github.com/sampatbadhe/dotloop-ruby"
15
15
  spec.license = "MIT"
16
16
 
@@ -45,11 +45,8 @@ module Dotloop
45
45
  end
46
46
 
47
47
  def upload(profile_id:, loop_id:, folder_id:, params: {})
48
- file_url = params["file_url"]
49
48
  file_name = params["file_name"]
50
49
  file_content = params["file_content"]
51
- # url = relative_path_S3(file_url)
52
- # file = Aws::S3::Object.new(S3_CREDENTIALS['bucket'], url, region: S3_CREDENTIALS["region"]).get.data.body.read
53
50
 
54
51
  post_body = []
55
52
 
@@ -1,3 +1,3 @@
1
1
  module Dotloop
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dotloop-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - sampatbadhe
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-12-10 00:00:00.000000000 Z
11
+ date: 2018-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simplecov
@@ -192,7 +192,7 @@ dependencies:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
194
  version: '1.8'
195
- description: dotloop-ruby id Ruby library for Dotloop API v2.
195
+ description: dotloop-ruby is Ruby library for Dotloop API v2.
196
196
  email:
197
197
  - sampat.badhe@kiprosh.com
198
198
  executables: []