nylas 4.6.0 → 4.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nylas/api.rb +12 -0
- data/lib/nylas/contact.rb +0 -1
- data/lib/nylas/event.rb +1 -0
- data/lib/nylas/message.rb +4 -0
- data/lib/nylas/model/attributable.rb +1 -1
- data/lib/nylas/thread.rb +4 -0
- data/lib/nylas/types.rb +1 -0
- data/lib/nylas/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70ffcaf730f5d3ee22c56de4a93675f0d2a180515226be18efcb4f772450a2ec
|
4
|
+
data.tar.gz: de98665b0ca9f325ba70d7bc7c6336a5ff5cc6e71b6d95e36f13f78ec2fc4b1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c894b283e65168725049ab8f08e130d19d94e953969575487dcefe0c43f0e89d1c00249122d47ea917b7f1fada1080c133be1c02293b6b8195f9789c3789770e
|
7
|
+
data.tar.gz: 724bc969684a5e113903f31c4ef32263bd16e49b359bd3aa349660199a19570c3f62ce47ae99732978ddb95d6eb0a25552de5ec221b434a319ef47a7cb4a7774
|
data/lib/nylas/api.rb
CHANGED
@@ -36,6 +36,18 @@ module Nylas
|
|
36
36
|
)
|
37
37
|
end
|
38
38
|
|
39
|
+
def exchange_code_for_token(code)
|
40
|
+
data = {
|
41
|
+
"client_id" => app_id,
|
42
|
+
"client_secret" => client.app_secret,
|
43
|
+
"grant_type" => "authorization_code",
|
44
|
+
"code" => code
|
45
|
+
}
|
46
|
+
|
47
|
+
response_json = execute(method: :post, path: "/oauth/token", payload: data)
|
48
|
+
response_json[:access_token]
|
49
|
+
end
|
50
|
+
|
39
51
|
# @return [Collection<Contact>] A queryable collection of Contacts
|
40
52
|
def contacts
|
41
53
|
@contacts ||= Collection.new(model: Contact, api: self)
|
data/lib/nylas/contact.rb
CHANGED
data/lib/nylas/event.rb
CHANGED
data/lib/nylas/message.rb
CHANGED
data/lib/nylas/thread.rb
CHANGED
data/lib/nylas/types.rb
CHANGED
data/lib/nylas/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nylas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.6.
|
4
|
+
version: 4.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nylas, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -336,7 +336,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
336
336
|
- !ruby/object:Gem::Version
|
337
337
|
version: '0'
|
338
338
|
requirements: []
|
339
|
-
|
339
|
+
rubyforge_project:
|
340
|
+
rubygems_version: 2.7.6.2
|
340
341
|
signing_key:
|
341
342
|
specification_version: 4
|
342
343
|
summary: Gem for interacting with the Nylas API
|