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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4ca64d2d13639388a6daf7ba99da1d04ac57d98c
4
- data.tar.gz: 88b7658ac926863dcc4e7fdfb392e3926bfd688e
3
+ metadata.gz: c73ec0eef721417a7e9923af36eb3ed8c1129024
4
+ data.tar.gz: bf09e6faf8e76679a51d2a7690926e19e894cf24
5
5
  SHA512:
6
- metadata.gz: 478ddf860025ad14b5c65339ba1e2fa296dbccaaf145cf602789fd35620f500e69049e410607a2963d40e099efbbf9818d86e450852e6848643eca237ac172c4
7
- data.tar.gz: 53a4c6f6744e3db1ce184e3427e30a6374e1d133d75a05449ecb164096ebd3597c5876bd9dca119bef8488c2df9ce550719cbe00a6604a4895478bee6fce8c4b
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
- TODO: Write usage instructions here
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
- ## Development
35
+ #### Pass in the 'webinar_id' to retrieve the specific webinar:
36
+ ```ruby
37
+ client.get_webinar(webinar_id)
38
+ ```
28
39
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
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
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
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/[USERNAME]/webinarjam_api.
56
+ Bug reports and pull requests are welcome on GitHub at https://github.com/jzntam/webinarjam_api.
36
57
 
37
58
 
38
59
  ## License
@@ -1,3 +1,3 @@
1
1
  module WebinarjamApi
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
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.1
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-10-28 00:00:00.000000000 Z
11
+ date: 2015-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty