go_to_webinar 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -6
- data/lib/go_to_webinar/auth/client.rb +1 -1
- data/lib/go_to_webinar/version.rb +1 -1
- data/lib/go_to_webinar.rb +8 -8
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 030fc9f7cfb6d2822a0f5b5a256d6d331fcac1ddfdf8b58638e6955f19136f4a
|
4
|
+
data.tar.gz: 3f412135c3e04ad4b05933428bcbb66c50a52514ae8dddc6f01114f2b4299309
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93997131e929a036bf5d3da5d9b87cbfbbea7927c067504637a76747cc03735096def75cab82aeaf3c53f2ac27c63a4299ea05b6a65e3e636157cdf8b2cc279e
|
7
|
+
data.tar.gz: d9bb3ae9dc2ee6128d06eddd1c1bea5446108e3be17674bfb4f36aa1db3033bc077a55a150f1adc4e41f41db0623130305a404bf36dd4913f06e38a486bef634
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# GoToWebinar
|
2
2
|
|
3
|
-
A ruby client to connect GoToWebinar API.
|
3
|
+
A ruby client to connect GoToWebinar API V1. Will handle the complete OAuth lifecycle as well utilizing Redis and the OAuth2 gems.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -28,17 +28,23 @@ GoToWebinar.setup do |g2w|
|
|
28
28
|
g2w.organizer_key = ENV['G2W_ORGANIZER_KEY']
|
29
29
|
g2w.access_token = ENV['G2W_ACCESS_TOKEN']
|
30
30
|
end
|
31
|
-
```
|
32
31
|
|
33
|
-
|
32
|
+
GoToWebinar::Auth.setup do |oauth2|
|
33
|
+
oauth2.redis_url = ENV['REDISCLOUD_URL']
|
34
|
+
oauth2.consumer_key = ENV['G2W_CONSUMER_KEY']
|
35
|
+
oauth2.secret_key = ENV['G2W_SECRET_KEY']
|
36
|
+
oauth2.basic_auth_username = ENV['G2W_BASIC_AUTH_USERNAME']
|
37
|
+
oauth2.basic_auth_password = ENV['G2W_BASIC_AUTH_PASSWORD']
|
38
|
+
end
|
39
|
+
```
|
34
40
|
|
35
|
-
|
41
|
+
## Authentication Strategy
|
36
42
|
|
37
|
-
|
43
|
+
This gem will use your username and password to handle all OAuth authentication with GoToWebinar using a basic auth strategy. This does require use of the GoToWebinar log in credentials. It is advised you fully read and understand the different OAuth Flows and use the best one for your situation: https://auth0.com/docs/api-auth/which-oauth-flow-to-use
|
38
44
|
|
39
45
|
## Contributing
|
40
46
|
|
41
|
-
The repository maintainer only intends to add the functionality necessary for the maintainers need, this
|
47
|
+
The repository maintainer only intends to add the functionality necessary for the maintainers need, this may not include all functionality or support all API of GoToWebinar. If you would like to contribute, pull requests are welcome.
|
42
48
|
|
43
49
|
Bug reports and pull requests are welcome on GitHub at https://github.com/RecruitiFi/go_to_webinar.
|
44
50
|
|
@@ -6,7 +6,7 @@ module GoToWebinar
|
|
6
6
|
class Client
|
7
7
|
attr_accessor :basic_auth_username, :basic_auth_password, :consumer_key, :secret_key
|
8
8
|
|
9
|
-
def initialize(basic_auth_username
|
9
|
+
def initialize(basic_auth_username: nil, basic_auth_password: nil, consumer_key: nil, secret_key: nil)
|
10
10
|
config = GoToWebinar::Auth.configuration
|
11
11
|
@redis = Redis.new(url: config.redis_url)
|
12
12
|
@basic_auth_username = basic_auth_username || config.basic_auth_username
|
data/lib/go_to_webinar.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
require 'rest-client'
|
2
2
|
require 'json'
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
3
|
+
require 'go_to_webinar/attendee'
|
4
|
+
require 'go_to_webinar/client'
|
5
|
+
require 'go_to_webinar/configuration'
|
6
|
+
require 'go_to_webinar/auth'
|
7
|
+
require 'go_to_webinar/registrant'
|
8
|
+
require 'go_to_webinar/session'
|
9
|
+
require 'go_to_webinar/version'
|
10
|
+
require 'go_to_webinar/webinar'
|
11
11
|
|
12
12
|
module GoToWebinar
|
13
13
|
class << self
|