webinarjam_api 1.0.1 → 1.0.2
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/README.md +30 -9
- data/lib/webinarjam_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c73ec0eef721417a7e9923af36eb3ed8c1129024
|
4
|
+
data.tar.gz: bf09e6faf8e76679a51d2a7690926e19e894cf24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b637ed504fad7a4e95296f5e76d46d9371424564e856be94abed455a58ca570c37c9dffe3687057ff16b5d66c661a0954b5103bd783bdc78dcc28202a0d392f4
|
7
|
+
data.tar.gz: be1a9e130bc5f89a7d9c26059bb58ad2de9ce7912e28635d4e8847534e2be5faa6ccc41375a21a5d31b19103040014dc2ee0e6a03ae015e30fcc5f4835b9d629
|
data/README.md
CHANGED
@@ -1,8 +1,5 @@
|
|
1
1
|
# WebinarjamApi
|
2
|
-
|
3
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/webinarjam_api`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
2
|
+
A simple ruby API wrapper for retrieving webinar data from WebinarJam. Currently WebinarJam's API only supports retrieval of webinars, no registrants. However you can add registrants to a webinar.
|
6
3
|
|
7
4
|
## Installation
|
8
5
|
|
@@ -22,17 +19,41 @@ Or install it yourself as:
|
|
22
19
|
|
23
20
|
## Usage
|
24
21
|
|
25
|
-
|
22
|
+
### Configuration
|
23
|
+
|
24
|
+
#### Create a client object:
|
25
|
+
```ruby
|
26
|
+
client = ::WebinarjamApi::Client.new('Your API Key')
|
27
|
+
```
|
28
|
+
Note: Pass in the API Key as a string, wrap it in quotes.
|
29
|
+
|
30
|
+
#### Retrieve all your webinars:
|
31
|
+
```ruby
|
32
|
+
client.get_webinars
|
33
|
+
```
|
26
34
|
|
27
|
-
|
35
|
+
#### Pass in the 'webinar_id' to retrieve the specific webinar:
|
36
|
+
```ruby
|
37
|
+
client.get_webinar(webinar_id)
|
38
|
+
```
|
28
39
|
|
29
|
-
|
40
|
+
#### Add registrants to the webinar
|
41
|
+
Create a registrant, required fields are name and email.
|
42
|
+
```ruby
|
43
|
+
registrant = {
|
44
|
+
'name' => 'Chico Manzana',
|
45
|
+
'email' => 'chico@manzana.com'
|
46
|
+
}
|
47
|
+
```
|
30
48
|
|
31
|
-
|
49
|
+
Pass in registrant, along with webinar_id and schedule into the register_person method.
|
50
|
+
```ruby
|
51
|
+
client.register_person(webinar_id, schedule, registrant)
|
52
|
+
```
|
32
53
|
|
33
54
|
## Contributing
|
34
55
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
56
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/jzntam/webinarjam_api.
|
36
57
|
|
37
58
|
|
38
59
|
## License
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webinarjam_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Tam
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|