checkdin 0.3.8 → 0.3.9
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.
- data/lib/checkdin/twitter_hashtag_streams.rb +30 -0
- data/lib/checkdin/version.rb +1 -1
- metadata +2 -1
@@ -0,0 +1,30 @@
|
|
1
|
+
module Checkdin
|
2
|
+
module TwitterHashtagStreams
|
3
|
+
|
4
|
+
# Retrieve Twitter Hashtag Streams for a campaign
|
5
|
+
#
|
6
|
+
# param [Integer] campaign_id The ID of the campaign to fetch the twitter hashtag stream for.
|
7
|
+
# @param [Hash] options
|
8
|
+
|
9
|
+
def twitter_hashtag_streams(campaign_id, options={})
|
10
|
+
response = connection.get do |req|
|
11
|
+
req.url "campaigns/#{campaign_id}/twitter_hashtag_streams", options
|
12
|
+
end
|
13
|
+
return_error_or_body(response)
|
14
|
+
end
|
15
|
+
|
16
|
+
# Retrieve Single Twitter Hashtag Stream for a campaign
|
17
|
+
#
|
18
|
+
# param [Integer] campaign_id The ID of the campaign to fetch the twitter hashtag stream for.
|
19
|
+
# param [Integer] id The ID of the twitter_hashtag_stream to fetch.
|
20
|
+
# @param [Hash] options
|
21
|
+
|
22
|
+
def twitter_hashtag_stream(campaign_id, id, options={})
|
23
|
+
response = connection.get do |req|
|
24
|
+
req.url "campaigns/#{campaign_id}/twitter_hashtag_streams/#{id}", options
|
25
|
+
end
|
26
|
+
return_error_or_body(response)
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
30
|
+
end
|
data/lib/checkdin/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: checkdin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -232,6 +232,7 @@ files:
|
|
232
232
|
- lib/checkdin/votes.rb
|
233
233
|
- lib/checkdin/clients.rb
|
234
234
|
- lib/checkdin/won_rewards.rb
|
235
|
+
- lib/checkdin/twitter_hashtag_streams.rb
|
235
236
|
homepage: http://github.com/mattmueller/checkdin-ruby
|
236
237
|
licenses:
|
237
238
|
- MIT
|