my-dropbox-api 1.0.1 → 1.0.3
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/my-dropbox-api.rb +5 -5
- 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: 33f27c6ef69f829b72c5d1a107101e762a8f6a50ec96902ec4f407c900bd2da1
|
4
|
+
data.tar.gz: 1766e4b83f27c4fc2929abd49b2f0d8e52029c9fc1911b817ce056e6f8c5c682
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3709805d187bd4938ad33051147981651291794c2ed090ee2ebf7a9bfb47db0f4c81bb333c81cee40e0162fb8776f1ef31f43a589d1d4c6dd8cc3fd4baea2975
|
7
|
+
data.tar.gz: 8c2013dc3a63438ad4689c533bbd57f4889d7a92331c9ce3c206fc2abfaff67383cd42599a2d2b36cc9710790593d1d870d5725d63a5996f299bf2ceef0e2cdb
|
data/lib/my-dropbox-api.rb
CHANGED
@@ -7,8 +7,8 @@ module BlackStack
|
|
7
7
|
DROPBOX_APP_KEY = 'lnystcoayzse5at'
|
8
8
|
|
9
9
|
# ConnectionSphere API-KEY
|
10
|
-
@@
|
11
|
-
@@
|
10
|
+
@@vymeco_api_key = nil
|
11
|
+
@@vymeco_token_url = 'http://massprospecting.com:3000/api1.0/dropbox-token-helper/get_access_token.json'
|
12
12
|
|
13
13
|
# mysaas end-user "refresh-token" to grab a new "access-code" every time is needed.
|
14
14
|
@@dropbox_refresh_token = nil
|
@@ -29,7 +29,7 @@ module BlackStack
|
|
29
29
|
def self.set(h)
|
30
30
|
@@dropbox_refresh_token = h[:dropbox_refresh_token]
|
31
31
|
@@destinations = h[:destinations]
|
32
|
-
@@
|
32
|
+
@@vymeco_api_key = h[:vymeco_api_key]
|
33
33
|
end # set
|
34
34
|
|
35
35
|
# Get a short-live access code using the refresh token.
|
@@ -40,10 +40,10 @@ module BlackStack
|
|
40
40
|
# get the refresh token
|
41
41
|
begin
|
42
42
|
params = {
|
43
|
-
'api_key' => "#{@@
|
43
|
+
'api_key' => "#{@@vymeco_api_key}",
|
44
44
|
'refresh_token' => "#{@@dropbox_refresh_token}"
|
45
45
|
}
|
46
|
-
res = BlackStack::Netting::call_post(@@
|
46
|
+
res = BlackStack::Netting::call_post(@@vymeco_token_url, params)
|
47
47
|
h = JSON.parse(res.body)
|
48
48
|
raise h['status'] if h['status']!='success'
|
49
49
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: my-dropbox-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leandro Daniel Sardi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|