ringcentral-rss 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c6627647cd565186e2efd9299aa2591d25768ce5
4
- data.tar.gz: e8629c4031f2bebf5858260d5f379ee8b1506812
3
+ metadata.gz: 3d844f42c65b7365305378fcf2cd7d0415b22f09
4
+ data.tar.gz: 370dd56d4b7c40a60c134564935009d2933108f2
5
5
  SHA512:
6
- metadata.gz: df0121ba74796b9a7fa15ed395193e818f21dc79a1d52bd492f25e2cf8170a7d27dc0b6016fe85c38900337b42acbe6b9da9ccfc3634896da8dfdb331e9a9a8d
7
- data.tar.gz: 20498982cf5f979acdbcebda2ab94900ed2a3c504a8bd4ac8680da6e45615db9636882de3e64eaa32e79854f0127fdb97a4c87092760959d32c8e4175bab4c45
6
+ metadata.gz: 0cec2cecf9aa6f228dd652691a62c02746b9a7db46893c00e3c5eb00bb146d6f9132a1230da7093ae7f6ec740cf76b0756fa053747040fb88cca99b679ed63b7
7
+ data.tar.gz: 77b292b6f30e799c2d7d9eded33f673608cfa350a228c837fcbead940775fa22e98bb8a5c57d58c05ebe6e246f2754493dc7a26cbc656333c873b0caaed2e33c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,6 @@
1
1
  CHANGELOG
2
2
  ---------
3
+ - **2016-01-08**: 0.0.2
4
+ - Doc fixes
3
5
  - **2016-01-07**: 0.0.1
4
- - Misc
5
- - Initial commit
6
+ - Initial commit
data/README.md CHANGED
@@ -13,16 +13,27 @@ RingCentral RSS
13
13
 
14
14
  Ruby library to create XML syndication feeds for RingCentral `message-store` REST API responses.
15
15
 
16
- This library was originally created in response to a question on (archiving RingCentral SMS data using Smarsh via a RSS feed](https://devcommunity.ringcentral.com/ringcentraldev/topics/archive-sms-using-rss).
16
+ This library was originally created in response to a question on [archiving RingCentral SMS data using Smarsh via a RSS feed](https://devcommunity.ringcentral.com/ringcentraldev/topics/archive-sms-using-rss).
17
+
18
+ ## Installation
19
+
20
+ ```bash
21
+ gem install ringcentral-rss
22
+ ```
23
+
24
+ While `ringcentral_sdk` isn't strictly required for this SDK, it does build feeds based on the `Faraday::Response` objects returned by the SDK.
17
25
 
18
26
  ## Usage
19
27
 
20
28
  ```ruby
29
+ require 'ringcentral-rss'
30
+ require 'ringcentral_sdk'
31
+
21
32
  client = RingCentralSdk.new [...]
22
33
  client.authorize [...]
23
34
 
24
35
  res = client.http.get do |req|
25
- req.url = 'account/~/extension/~/message-store'
36
+ req.url 'account/~/extension/~/message-store'
26
37
  req.params['direction'] = 'Outbound'
27
38
  req.params['messageType'] = 'SMS'
28
39
  end
@@ -38,7 +49,17 @@ xml = RingCentral::RSS::AtomFeed.new(res).feed.to_xml
38
49
  Demo scripts are located in the [`scripts` directory of the GitHub repo](https://github.com/ringcentral-ruby/ringcentral-rss-ruby/tree/master/scripts). The following demos are included:
39
50
 
40
51
  * CLI script to retrieve `message-store` endpoint and print out XML
41
- * Sinatra web service to display XML
52
+ * Sinatra web service to display XML proof of concept for protected services (no included auth)
53
+
54
+ ## Background
55
+
56
+ The genesis of this is the requirement to have RingCentral SMS messages available via a RSS feed. There are 3 ways to accomplish this:
57
+
58
+ 1. Have a proxy feed that always retrieves the message-store API response and converts it to RSS
59
+ 1. Have a script that polls the message-store API and publishes to a remote feed
60
+ 1. Have a script that subscribes to the message-store eventFilter and publishes to a remote feed
61
+
62
+ The library code will convert RingCentral message-store API response and message objects into an XML feed. The included Sinatra web service will host this as a proxy feed (option #1 above).
42
63
 
43
64
  ### Change Log
44
65
 
@@ -3,6 +3,6 @@ require 'ringcentral-rss/atom_feed'
3
3
 
4
4
  module RingCentral
5
5
  module RSS
6
- VERSION = '0.0.1'.freeze
6
+ VERSION = '0.0.2'.freeze
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ringcentral-rss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Wang