checkdin 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,6 +14,7 @@ module Checkdin
14
14
  include Votes
15
15
  include Clients
16
16
  include PushApiSubscriptions
17
+ include PointAccountEntries
17
18
 
18
19
  attr_reader :client_id, :client_secret
19
20
  attr_reader :ssl
@@ -0,0 +1,20 @@
1
+ module Checkdin
2
+ module PointAccountEntries
3
+
4
+ # Get a list of point account entries.
5
+ #
6
+ # @param [Hash] options
7
+ # @option options Integer :user_id - Return entries only for this user
8
+ # @option options Integer :campaign_id - Return entries only for this campaign
9
+ # @option options Integer :point_account_id - Return entries only for this point account.
10
+ # @option options Integer :limit - The maximum number of records to return.
11
+
12
+ def point_account_entries(options={})
13
+ response = connection.get do |req|
14
+ req.url "point_account_entries", options
15
+ end
16
+ return_error_or_body(response)
17
+ end
18
+
19
+ end
20
+ end
@@ -1,3 +1,3 @@
1
1
  module Checkdin
2
- VERSION = '0.3.3'
2
+ VERSION = '0.3.4'
3
3
  end
data/lib/checkdin.rb CHANGED
@@ -17,6 +17,7 @@ require 'checkdin/campaigns'
17
17
  require 'checkdin/votes'
18
18
  require 'checkdin/clients'
19
19
  require 'checkdin/push_api_subscriptions'
20
+ require 'checkdin/point_account_entries'
20
21
  require 'checkdin/client'
21
22
  require 'checkdin/api_error'
22
23
 
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.3
4
+ version: 0.3.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -223,6 +223,7 @@ files:
223
223
  - lib/checkdin/client.rb
224
224
  - lib/checkdin/custom_activities.rb
225
225
  - lib/checkdin/leaderboard.rb
226
+ - lib/checkdin/point_account_entries.rb
226
227
  - lib/checkdin/promotions.rb
227
228
  - lib/checkdin/push_api_subscriptions.rb
228
229
  - lib/checkdin/users.rb