checkdin 0.2.9 → 0.3.0

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.
Files changed (42) hide show
  1. data/lib/checkdin/users.rb +42 -0
  2. data/lib/checkdin/version.rb +1 -1
  3. metadata +168 -143
  4. data/.document +0 -5
  5. data/.rspec +0 -1
  6. data/Gemfile.lock +0 -59
  7. data/spec/checkdin/activities_spec.rb +0 -72
  8. data/spec/checkdin/campaigns_spec.rb +0 -32
  9. data/spec/checkdin/client_spec.rb +0 -29
  10. data/spec/checkdin/clients_spec.rb +0 -23
  11. data/spec/checkdin/custom_activities_spec.rb +0 -13
  12. data/spec/checkdin/leaderboard_spec.rb +0 -28
  13. data/spec/checkdin/promotions_spec.rb +0 -63
  14. data/spec/checkdin/push_api_subscriptions_spec.rb +0 -50
  15. data/spec/checkdin/user_bridge_spec.rb +0 -148
  16. data/spec/checkdin/users_spec.rb +0 -109
  17. data/spec/checkdin/won_rewards_spec.rb +0 -45
  18. data/spec/fixtures/vcr_cassettes/Checkdin_Activities/viewing_a_list_of_activities.yml +0 -44
  19. data/spec/fixtures/vcr_cassettes/Checkdin_Activities/viewing_a_single_activity.yml +0 -44
  20. data/spec/fixtures/vcr_cassettes/Checkdin_Activities/voting_for_an_activity/passing_an_email.yml +0 -48
  21. data/spec/fixtures/vcr_cassettes/Checkdin_Activities/voting_for_an_activity.yml +0 -48
  22. data/spec/fixtures/vcr_cassettes/Checkdin_Campaigns/viewing_a_list_of_campaigns.yml +0 -43
  23. data/spec/fixtures/vcr_cassettes/Checkdin_Campaigns/viewing_a_single_campaign.yml +0 -51
  24. data/spec/fixtures/vcr_cassettes/Checkdin_Clients/viewing_a_client_s_own_information.yml +0 -46
  25. data/spec/fixtures/vcr_cassettes/Checkdin_CustomActivities.yml +0 -47
  26. data/spec/fixtures/vcr_cassettes/Checkdin_Leaderboard/viewing_a_leaderboard_for_a_campaign.yml +0 -42
  27. data/spec/fixtures/vcr_cassettes/Checkdin_Leaderboard/viewing_a_leaderboard_for_a_campaign_s_classifications.yml +0 -46
  28. data/spec/fixtures/vcr_cassettes/Checkdin_Promotions/viewing_a_list_of_promotions.yml +0 -58
  29. data/spec/fixtures/vcr_cassettes/Checkdin_Promotions/viewing_a_single_promotion.yml +0 -51
  30. data/spec/fixtures/vcr_cassettes/Checkdin_Promotions/viewing_the_votes_leaderboard_for_a_promotion/limiting_the_number_of_records_returned.yml +0 -44
  31. data/spec/fixtures/vcr_cassettes/Checkdin_Promotions/viewing_the_votes_leaderboard_for_a_promotion.yml +0 -44
  32. data/spec/fixtures/vcr_cassettes/Checkdin_PushApiSubscriptions/disabling_a_push_api_subscription.yml +0 -32
  33. data/spec/fixtures/vcr_cassettes/Checkdin_PushApiSubscriptions/enabling_a_push_api_subscription.yml +0 -32
  34. data/spec/fixtures/vcr_cassettes/Checkdin_PushApiSubscriptions/viewing_a_list_of_push_api_subscriptions.yml +0 -32
  35. data/spec/fixtures/vcr_cassettes/Checkdin_PushApiSubscriptions/viewing_a_single_push_api_subscription.yml +0 -32
  36. data/spec/fixtures/vcr_cassettes/Checkdin_Users/viewing_a_list_of_users.yml +0 -42
  37. data/spec/fixtures/vcr_cassettes/Checkdin_Users/viewing_a_single_user.yml +0 -59
  38. data/spec/fixtures/vcr_cassettes/Checkdin_Votes/filtering_by_a_single_user.yml +0 -44
  39. data/spec/fixtures/vcr_cassettes/Checkdin_Votes/viewing_a_list_of_activities.yml +0 -44
  40. data/spec/fixtures/vcr_cassettes/Checkdin_WonRewards/viewing_a_list_of_won_rewards.yml +0 -53
  41. data/spec/fixtures/vcr_cassettes/Checkdin_WonRewards/viewing_a_single_won_reward.yml +0 -49
  42. data/spec/spec_helper.rb +0 -49
@@ -1,51 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :get
5
- uri: https://app.checkd.in:443/api/v1/campaigns/2?client_id={client_id}&client_secret={client_secret}
6
- body: !!null
7
- headers:
8
- accept:
9
- - application/json
10
- user-agent:
11
- - Ruby gem
12
- accept-encoding:
13
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
- response: !ruby/struct:VCR::Response
15
- status: !ruby/struct:VCR::ResponseStatus
16
- code: 200
17
- message: OK
18
- headers:
19
- server:
20
- - nginx/0.8.54
21
- date:
22
- - Tue, 14 Feb 2012 16:41:56 GMT
23
- content-type:
24
- - application/json; charset=utf-8
25
- transfer-encoding:
26
- - chunked
27
- connection:
28
- - keep-alive
29
- strict-transport-security:
30
- - max-age=31536000
31
- x-ua-compatible:
32
- - IE=Edge,chrome=1
33
- etag:
34
- - ! '"83ceef90ebd0f230d5475f7d9da461bd"'
35
- cache-control:
36
- - max-age=0, private, must-revalidate
37
- x-runtime:
38
- - '0.181049'
39
- x-rack-cache:
40
- - miss
41
- body: ! '{"campaign":{"name":"Check In To Win!","description":"Check in
42
- to win free coffee and more!","start_date":"2011-10-17","end_date":"2012-10-17","href":"https://app.checkd.in/api/v1/campaigns/2.json","promotions":[{"promotion":{"title":"Get
43
- a FREE coffee for every 5 check ins!","description":"Every 5 times you check
44
- in at our new location you will be rewarded with a free
45
- coffee! Enjoy!","terms":"Offer only good at some locations.","above_21_only":false,"ends_at":"2012-10-16T07:51:32-05:00","href":"https://app.checkd.in/api/v1/promotions/8.json","type":"promotion_lbs_checkin","place_groups":[{"place_group":{"name":"Stores","href":"https://app.checkd.in/api/v1/place_groups/2.json"}}],"reward":{"private_delivery_description":"Thank
46
- you for checking-in five times! Because you
47
- are such a loyal customer, we would like to treat you to a free medium coffee!
48
- ","public_delivery_description":"Free coffee
49
- for every 5 visits - check it out - http://something.com","single_delivery":false,"type":"badge_reward","reward_file":"5thCheckinBarcode.png"},"trigger_schedule":{"rewarding":"once","winner_picked":"activity_interval","interval":5,"human_readable":"Rewarded
50
- once when a user reaches 5 relevant actions or points."}}}]}}'
51
- http_version: '1.1'
@@ -1,46 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :get
5
- uri: https://staging.checkd.in:443/api/v1/clients/me?client_id={client_id}&client_secret={client_secret}
6
- body:
7
- headers:
8
- accept:
9
- - application/json
10
- user-agent:
11
- - checkdin ruby gem 0.2.6
12
- accept-encoding:
13
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
- response: !ruby/struct:VCR::Response
15
- status: !ruby/struct:VCR::ResponseStatus
16
- code: 200
17
- message: OK
18
- headers:
19
- server:
20
- - nginx/1.0.11
21
- date:
22
- - Mon, 30 Jul 2012 13:53:06 GMT
23
- content-type:
24
- - application/json; charset=utf-8
25
- transfer-encoding:
26
- - chunked
27
- connection:
28
- - keep-alive
29
- status:
30
- - 200 OK
31
- strict-transport-security:
32
- - max-age=31536000
33
- x-ua-compatible:
34
- - IE=Edge,chrome=1
35
- etag:
36
- - "\"41ec4e0bf40b05f1cb6942e8ad224fc5\""
37
- cache-control:
38
- - must-revalidate, private, max-age=0
39
- x-request-id:
40
- - 6d1c115ae2577724a25b9596b1ac492e
41
- x-runtime:
42
- - "0.054093"
43
- x-rack-cache:
44
- - miss
45
- body: "{\"client\":{\"name\":\"A Test\",\"website\":\"http://example.com\",\"signup_redirect\":\"http://example.com/users/return_from_checkdin\",\"custom_domain\":\"custom.staging.checkd.in\",\"shared_authentication_secret\":\"12345\",\"push_api_secret\":null}}"
46
- http_version: "1.1"
@@ -1,47 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: https://app.checkd.in:443/api/v1/custom_activities?client_id={client_id}&client_secret={client_secret}&custom_activity_node_id=1&email=muellermr@gmail.com
6
- body: !!null
7
- headers:
8
- accept:
9
- - application/json
10
- user-agent:
11
- - Ruby gem
12
- content-length:
13
- - '0'
14
- response: !ruby/struct:VCR::Response
15
- status: !ruby/struct:VCR::ResponseStatus
16
- code: 200
17
- message: OK
18
- headers:
19
- server:
20
- - nginx/0.8.54
21
- date:
22
- - Tue, 14 Feb 2012 19:24:10 GMT
23
- content-type:
24
- - application/json; charset=utf-8
25
- transfer-encoding:
26
- - chunked
27
- connection:
28
- - keep-alive
29
- strict-transport-security:
30
- - max-age=31536000
31
- x-ua-compatible:
32
- - IE=Edge,chrome=1
33
- etag:
34
- - ! '"504422348827b80461a74d114bceb8f9"'
35
- cache-control:
36
- - max-age=0, private, must-revalidate
37
- set-cookie:
38
- - _checkdin_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWY2NTA3Nzk2Zjc1NWNlNTRiMDVkOTQ3YzJlNjM4NGZkBjsAVA%3D%3D--dd01c8f87c4d5c24b17a19a97d9ccb018ac40333;
39
- path=/; HttpOnly; secure
40
- x-runtime:
41
- - '0.021071'
42
- x-rack-cache:
43
- - invalidate, pass
44
- body: ! '{"result":"success"}
45
-
46
- '
47
- http_version: '1.1'
@@ -1,42 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :get
5
- uri: https://app.checkd.in:443/api/v1/campaigns/2/leaderboard?client_id={client_id}&client_secret={client_secret}&limit=5
6
- body: !!null
7
- headers:
8
- accept:
9
- - application/json
10
- user-agent:
11
- - Ruby gem
12
- accept-encoding:
13
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
- response: !ruby/struct:VCR::Response
15
- status: !ruby/struct:VCR::ResponseStatus
16
- code: 200
17
- message: OK
18
- headers:
19
- server:
20
- - nginx/0.8.54
21
- date:
22
- - Tue, 14 Feb 2012 20:03:30 GMT
23
- content-type:
24
- - application/json; charset=utf-8
25
- transfer-encoding:
26
- - chunked
27
- connection:
28
- - keep-alive
29
- strict-transport-security:
30
- - max-age=31536000
31
- x-ua-compatible:
32
- - IE=Edge,chrome=1
33
- etag:
34
- - ! '"29ad4660ee71a8dcc548d4727d934287"'
35
- cache-control:
36
- - max-age=0, private, must-revalidate
37
- x-runtime:
38
- - '0.045086'
39
- x-rack-cache:
40
- - miss
41
- body: ! '{"total_pages":18,"leaders":[{"leader":{"id":58,"username":"hshapley","created_at":"2011-10-19T00:39:20-05:00","first_name":null,"last_name":null,"birth_date":"1989-03-07","gender":"male","avatar_url":"https://prod-checkdin-user.s3.amazonaws.com/uploads/58/275338_1146001474_2106650627_q.jpg","points":0,"activities_url":"https://app.checkd.in/api/v1/activities.json?campaign_id=2&user_id=58"}},{"leader":{"id":65,"username":"ladova5","created_at":"2011-10-19T09:00:21-05:00","first_name":null,"last_name":null,"birth_date":"1986-06-09","gender":null,"avatar_url":"https://prod-checkdin-user.s3.amazonaws.com/uploads/65/132QMI3KGAHLT0O2.jpg","points":0,"activities_url":"https://app.checkd.in/api/v1/activities.json?campaign_id=2&user_id=65"}},{"leader":{"id":2,"username":"theferf","created_at":"2011-09-18T17:37:49-05:00","first_name":null,"last_name":null,"birth_date":"1978-12-08","gender":"male","avatar_url":"https://prod-checkdin-user.s3.amazonaws.com/uploads/2/41676_500816616_5622_q.jpg","points":0,"activities_url":"https://app.checkd.in/api/v1/activities.json?campaign_id=2&user_id=2"}},{"leader":{"id":106,"username":"wadetc","created_at":"2011-10-29T07:53:57-05:00","first_name":null,"last_name":null,"birth_date":"1973-02-02","gender":"male","avatar_url":"https://prod-checkdin-user.s3.amazonaws.com/uploads/106/211346_4701888_4625429_q.jpg","points":0,"activities_url":"https://app.checkd.in/api/v1/activities.json?campaign_id=2&user_id=106"}},{"leader":{"id":113,"username":"Chloecadence","created_at":"2011-11-03T17:53:12-05:00","first_name":null,"last_name":null,"birth_date":"1992-10-30","gender":"female","avatar_url":"https://prod-checkdin-user.s3.amazonaws.com/uploads/113/371098_591174303_536840876_q.jpg","points":0,"activities_url":"https://app.checkd.in/api/v1/activities.json?campaign_id=2&user_id=113"}}]}'
42
- http_version: '1.1'
@@ -1,46 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :get
5
- uri: https://staging:cKGdyvb4gQD9YJg3cACV@staging.checkd.in:443/api/v1/campaigns/35/classification_leaderboard?client_id={client_id}&client_secret={client_secret}
6
- body:
7
- headers:
8
- accept:
9
- - application/json
10
- user-agent:
11
- - checkdin ruby gem 0.2.7
12
- accept-encoding:
13
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
- response: !ruby/struct:VCR::Response
15
- status: !ruby/struct:VCR::ResponseStatus
16
- code: 200
17
- message: OK
18
- headers:
19
- server:
20
- - nginx/1.0.11
21
- date:
22
- - Thu, 16 Aug 2012 14:06:50 GMT
23
- content-type:
24
- - application/json; charset=utf-8
25
- transfer-encoding:
26
- - chunked
27
- connection:
28
- - keep-alive
29
- status:
30
- - 200 OK
31
- strict-transport-security:
32
- - max-age=31536000
33
- x-ua-compatible:
34
- - IE=Edge,chrome=1
35
- etag:
36
- - "\"0016a5775b88d5dbd81551ebc2148c1b\""
37
- cache-control:
38
- - must-revalidate, private, max-age=0
39
- x-request-id:
40
- - 707edb8903bd34be9db20d17dc393e6d
41
- x-runtime:
42
- - "0.159060"
43
- x-rack-cache:
44
- - miss
45
- body: "{\"classifications\":[{\"classification\":\"grouped\",\"total_points\":10,\"members\":1}]}"
46
- http_version: "1.1"
@@ -1,58 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :get
5
- uri: https://app.checkd.in:443/api/v1/promotions?client_id={client_id}&client_secret={client_secret}&limit=2
6
- body: !!null
7
- headers:
8
- accept:
9
- - application/json
10
- user-agent:
11
- - Ruby gem
12
- accept-encoding:
13
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
- response: !ruby/struct:VCR::Response
15
- status: !ruby/struct:VCR::ResponseStatus
16
- code: 200
17
- message: OK
18
- headers:
19
- server:
20
- - nginx/0.8.54
21
- date:
22
- - Tue, 14 Feb 2012 17:14:39 GMT
23
- content-type:
24
- - application/json; charset=utf-8
25
- transfer-encoding:
26
- - chunked
27
- connection:
28
- - keep-alive
29
- strict-transport-security:
30
- - max-age=31536000
31
- x-ua-compatible:
32
- - IE=Edge,chrome=1
33
- etag:
34
- - ! '"1f726f1e8b376c20e89fd5c921b2c46f"'
35
- cache-control:
36
- - max-age=0, private, must-revalidate
37
- x-runtime:
38
- - '0.044074'
39
- x-rack-cache:
40
- - miss
41
- body: ! '{"total_pages":2,"promotions":[{"promotion":{"title":"Get a FREE coffee
42
- for every 5 check ins!","description":"Every 5 times you check in at our new
43
- location you will be rewarded with a free coffee! Enjoy!","terms":"Offer
44
- only good redeem same or next business day.","above_21_only":false,"ends_at":"2012-10-16T07:51:32-05:00","href":"https://app.checkd.in/api/v1/promotions/8.json","type":"promotion_lbs_checkin","place_groups":[{"place_group":{"name":"Stores","href":"https://app.checkd.in/api/v1/place_groups/2.json"}}],"reward":{"private_delivery_description":"Thank
45
- you for checking-in five times","public_delivery_description":"Free coffee
46
- for every 5 visits - check it out - http://something.com","single_delivery":false,"type":"badge_reward","reward_file":"5thCheckinBarcode.png"},"trigger_schedule":{"rewarding":"once","winner_picked":"activity_interval","interval":5,"human_readable":"Rewarded
47
- once when a user reaches 5 relevant actions or points."},"campaign":{"name":"Check
48
- In To Win","description":"Check in to win free coffee and
49
- more!","start_date":"2011-10-17","end_date":"2012-10-17","href":"https://app.checkd.in/api/v1/campaigns/2.json"}}},{"promotion":{"title":"Check
50
- in and get breakfast for 99 cents!","description":"Check in at our new location
51
- receive a bagel with cream cheese
52
- or sausage biscuit for only 99 cents!","terms":"","above_21_only":false,"ends_at":"2012-10-16T07:51:32-05:00","href":"https://app.checkd.in/api/v1/promotions/7.json","type":"promotion_lbs_checkin","place_groups":[{"place_group":{"name":"Stores","href":"https://app.checkd.in/api/v1/place_groups/2.json"}}],"reward":{"private_delivery_description":"Thanks
53
- for checking-in!","public_delivery_description":"I
54
- just got breakfast for 99 cents by checking in","single_delivery":false,"type":"badge_reward","reward_file":"FreeBreakfastBarcode.png"},"trigger_schedule":{"rewarding":"once","winner_picked":"activity_interval","interval":1,"human_readable":"Rewarded
55
- once when a user reaches 1 relevant actions or points."},"campaign":{"name":"Check
56
- In To Win","description":"Check in to win free coffee and
57
- more!","start_date":"2011-10-17","end_date":"2012-10-17","href":"https://app.checkd.in/api/v1/campaigns/2.json"}}}]}'
58
- http_version: '1.1'
@@ -1,51 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :get
5
- uri: https://app.checkd.in:443/api/v1/promotions/8?client_id={client_id}&client_secret={client_secret}
6
- body: !!null
7
- headers:
8
- accept:
9
- - application/json
10
- user-agent:
11
- - Ruby gem
12
- accept-encoding:
13
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
- response: !ruby/struct:VCR::Response
15
- status: !ruby/struct:VCR::ResponseStatus
16
- code: 200
17
- message: OK
18
- headers:
19
- server:
20
- - nginx/0.8.54
21
- date:
22
- - Tue, 14 Feb 2012 17:14:39 GMT
23
- content-type:
24
- - application/json; charset=utf-8
25
- transfer-encoding:
26
- - chunked
27
- connection:
28
- - keep-alive
29
- strict-transport-security:
30
- - max-age=31536000
31
- x-ua-compatible:
32
- - IE=Edge,chrome=1
33
- etag:
34
- - ! '"2dacbfa7e11a4f930c329b8c3feab8ad"'
35
- cache-control:
36
- - max-age=0, private, must-revalidate
37
- x-runtime:
38
- - '0.436008'
39
- x-rack-cache:
40
- - miss
41
- body: ! '{"promotion":{"title":"Get a FREE coffee for every 5 check ins!","description":"Every
42
- 5 times you check in you will be
43
- rewarded with a free coffee! Enjoy!","terms":"Offer only good some places.","above_21_only":false,"ends_at":"2012-10-16T07:51:32-05:00","href":"https://app.checkd.in/api/v1/promotions/8.json","type":"promotion_lbs_checkin","place_groups":[{"place_group":{"name":"Stores","href":"https://app.checkd.in/api/v1/place_groups/2.json"}}],"reward":{"private_delivery_description":"Thank
44
- you for checking-in five times! Because you
45
- are such a loyal customer, we would like to treat you to a free medium coffee!
46
- ","public_delivery_description":"Free coffee
47
- for every 5 visits - check it out - http://something.com","single_delivery":false,"type":"badge_reward","reward_file":"DD-5thCheckinBarcode.png"},"trigger_schedule":{"rewarding":"once","winner_picked":"activity_interval","interval":5,"human_readable":"Rewarded
48
- once when a user reaches 5 relevant actions or points."},"campaign":{"name":"Check
49
- In To Win","description":"Check in to win free coffee and
50
- more!","start_date":"2011-10-17","end_date":"2012-10-17","href":"https://app.checkd.in/api/v1/campaigns/2.json"}}}'
51
- http_version: '1.1'
@@ -1,44 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :get
5
- uri: https://app.checkd.in:443/api/v1/promotions/54/votes_leaderboard?client_id={client_id}&client_secret={client_secret}&limit=1
6
- body:
7
- headers:
8
- accept:
9
- - application/json
10
- user-agent:
11
- - checkdin ruby gem 0.2.1
12
- accept-encoding:
13
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
- response: !ruby/struct:VCR::Response
15
- status: !ruby/struct:VCR::ResponseStatus
16
- code: 200
17
- message: OK
18
- headers:
19
- server:
20
- - nginx/1.0.11
21
- date:
22
- - Mon, 09 Apr 2012 11:02:11 GMT
23
- content-type:
24
- - application/json; charset=utf-8
25
- transfer-encoding:
26
- - chunked
27
- connection:
28
- - keep-alive
29
- status:
30
- - 200 OK
31
- strict-transport-security:
32
- - max-age=31536000
33
- x-ua-compatible:
34
- - IE=Edge,chrome=1
35
- etag:
36
- - "\"616689e5a2d0af0ef532965e0f6aad51\""
37
- cache-control:
38
- - must-revalidate, private, max-age=0
39
- x-runtime:
40
- - "0.128383"
41
- x-rack-cache:
42
- - miss
43
- body: "{\"promotion\":{\"title\":\"A voting promotion!\",\"description\":\"You iz winning\",\"terms\":\"\",\"above_21_only\":false,\"ends_at\":\"2012-05-08T05:42:00-05:00\",\"href\":\"https://app.checkd.in/api/v1/promotions/54.json\",\"type\":\"promotion_photo\",\"twitter_hashtag\":\"#mynordstrom\",\"participant_status_message\":null,\"reward\":{\"private_delivery_description\":\"\",\"public_delivery_description\":\"\",\"single_delivery\":false,\"type\":\"point_reward\",\"reward_points\":100},\"trigger_schedule\":{\"rewarding\":\"many\",\"winner_picked\":\"activity_interval\",\"interval\":1,\"human_readable\":\"Rewarded every time the same user performs a relevant action.\"},\"votes_leaderboard\":{\"total_pages\":3,\"activities\":[{\"activity\":{\"type\":\"twitter_status\",\"id\":18881,\"created_at\":\"2012-02-21T16:08:55-06:00\",\"acted_on\":{\"type\":\"twitter_status\",\"tweet_fk\":172080368760000512,\"status\":\"Check out what I purchased at #mynordstrom http://t.co/DKUXa41E\",\"photo_url\":\"https://p.twimg.com/AmNaLwUCEAIt1v3.jpg\",\"photo_thumbnail_url\":\"https://p.twimg.com/AmNaLwUCEAIt1v3.jpg:thumb\"},\"user\":{\"id\":36,\"username\":\"demomattloadtest\",\"avatar_url\":null,\"href\":\"https://app.checkd.in/api/v1/activities.json?user_id=36\"},\"href\":\"https://app.checkd.in/api/v1/activities/18881.json\",\"vote_count\":7}}]},\"campaign\":{\"name\":\"Nordstrom Rewards\",\"description\":\"Earn discounts and other great rewards for joining Nordstrom Fashion Rewards!\",\"start_date\":\"2011-12-14\",\"end_date\":\"2012-06-01\",\"href\":\"https://app.checkd.in/api/v1/campaigns/11.json\"}}}"
44
- http_version: "1.1"
@@ -1,44 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :get
5
- uri: https://app.checkd.in:443/api/v1/promotions/54/votes_leaderboard?client_id={client_id}&client_secret={client_secret}&limit
6
- body:
7
- headers:
8
- accept:
9
- - application/json
10
- user-agent:
11
- - checkdin ruby gem 0.2.1
12
- accept-encoding:
13
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
- response: !ruby/struct:VCR::Response
15
- status: !ruby/struct:VCR::ResponseStatus
16
- code: 200
17
- message: OK
18
- headers:
19
- server:
20
- - nginx/1.0.11
21
- date:
22
- - Mon, 09 Apr 2012 11:00:42 GMT
23
- content-type:
24
- - application/json; charset=utf-8
25
- transfer-encoding:
26
- - chunked
27
- connection:
28
- - keep-alive
29
- status:
30
- - 200 OK
31
- strict-transport-security:
32
- - max-age=31536000
33
- x-ua-compatible:
34
- - IE=Edge,chrome=1
35
- etag:
36
- - "\"5e76880528d8f34bcf0b8faae48936d6\""
37
- cache-control:
38
- - must-revalidate, private, max-age=0
39
- x-runtime:
40
- - "0.123999"
41
- x-rack-cache:
42
- - miss
43
- body: "{\"promotion\":{\"title\":\"A voting promotion!\",\"description\":\"You iz winning.\",\"terms\":\"\",\"above_21_only\":false,\"ends_at\":\"2012-05-08T05:42:00-05:00\",\"href\":\"https://app.checkd.in/api/v1/promotions/54.json\",\"type\":\"promotion_photo\",\"twitter_hashtag\":\"#mynordstrom\",\"participant_status_message\":null,\"reward\":{\"private_delivery_description\":\"You won\",\"public_delivery_description\":\"\",\"single_delivery\":false,\"type\":\"point_reward\",\"reward_points\":100},\"trigger_schedule\":{\"rewarding\":\"many\",\"winner_picked\":\"activity_interval\",\"interval\":1,\"human_readable\":\"Rewarded every time the same user performs a relevant action.\"},\"votes_leaderboard\":{\"total_pages\":1,\"activities\":[{\"activity\":{\"type\":\"twitter_status\",\"id\":18881,\"created_at\":\"2012-02-21T16:08:55-06:00\",\"acted_on\":{\"type\":\"twitter_status\",\"tweet_fk\":172080368760000512,\"status\":\"Check out what I purchased at #mynordstrom http://t.co/DKUXa41E\",\"photo_url\":\"https://p.twimg.com/AmNaLwUCEAIt1v3.jpg\",\"photo_thumbnail_url\":\"https://p.twimg.com/AmNaLwUCEAIt1v3.jpg:thumb\"},\"user\":{\"id\":36,\"username\":\"demomattloadtest\",\"avatar_url\":null,\"href\":\"https://app.checkd.in/api/v1/activities.json?user_id=36\"},\"href\":\"https://app.checkd.in/api/v1/activities/18881.json\",\"vote_count\":7}},{\"activity\":{\"type\":\"twitter_status\",\"id\":18882,\"created_at\":\"2012-02-22T09:08:47-06:00\",\"acted_on\":{\"type\":\"twitter_status\",\"tweet_fk\":172337035716198401,\"status\":\"Check out #mynordstrom http://t.co/bvqmQX7B\",\"photo_url\":\"https://p.twimg.com/AmRDnvPCAAIYYMY.jpg\",\"photo_thumbnail_url\":\"https://p.twimg.com/AmRDnvPCAAIYYMY.jpg:thumb\"},\"user\":{\"id\":36,\"username\":\"demomattloadtest\",\"avatar_url\":null,\"href\":\"https://app.checkd.in/api/v1/activities.json?user_id=36\"},\"href\":\"https://app.checkd.in/api/v1/activities/18882.json\",\"vote_count\":0}},{\"activity\":{\"type\":\"twitter_status\",\"id\":18883,\"created_at\":\"2012-02-22T09:55:58-06:00\",\"acted_on\":{\"type\":\"twitter_status\",\"tweet_fk\":172348911032336384,\"status\":\"Check out this cool purchase #mynordstrom http://t.co/JKXzWuVu\",\"photo_url\":\"https://p.twimg.com/AmROa-PCAAAcMe1.jpg\",\"photo_thumbnail_url\":\"https://p.twimg.com/AmROa-PCAAAcMe1.jpg:thumb\"},\"user\":{\"id\":36,\"username\":\"demomattloadtest\",\"avatar_url\":null,\"href\":\"https://app.checkd.in/api/v1/activities.json?user_id=36\"},\"href\":\"https://app.checkd.in/api/v1/activities/18883.json\",\"vote_count\":0}}]},\"campaign\":{\"name\":\"Nordstrom Rewards\",\"description\":\"Earn discounts and other great rewards for joining Nordstrom Fashion Rewards!\",\"start_date\":\"2011-12-14\",\"end_date\":\"2012-06-01\",\"href\":\"https://app.checkd.in/api/v1/campaigns/11.json\"}}}"
44
- http_version: "1.1"
@@ -1,32 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :put
5
- uri: http://checkd-in-core.dev:80/api/v1/push_api_subscriptions/1/disable?client_id={client_id}&client_secret={client_secret}
6
- body:
7
- headers:
8
- accept:
9
- - application/json
10
- user-agent:
11
- - checkdin ruby gem 0.2.8
12
- content-length:
13
- - "0"
14
- response: !ruby/struct:VCR::Response
15
- status: !ruby/struct:VCR::ResponseStatus
16
- code: 200
17
- message: OK
18
- headers:
19
- content-type:
20
- - application/json; charset=utf-8
21
- x-ua-compatible:
22
- - IE=Edge
23
- etag:
24
- - "\"5dc194884d762f9b11af7d509861636d\""
25
- cache-control:
26
- - max-age=0, private, must-revalidate
27
- x-request-id:
28
- - 65ef6ad8a9be72f97cbb4f1480e3f575
29
- x-runtime:
30
- - "0.114155"
31
- body: "{\"push_api_subscription\":{\"push_url\":\"http://test.com\",\"state\":\"disabled\",\"reward_won_monitored\":false,\"activity_created_monitored\":true,\"user_created_monitored\":false,\"secret\":\"6dec79a3034468c530fc\",\"campaign\":null}}"
32
- http_version: "1.1"
@@ -1,32 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :put
5
- uri: http://checkd-in-core.dev:80/api/v1/push_api_subscriptions/2/enable?client_id={client_id}&client_secret={client_secret}
6
- body:
7
- headers:
8
- accept:
9
- - application/json
10
- user-agent:
11
- - checkdin ruby gem 0.2.8
12
- content-length:
13
- - "0"
14
- response: !ruby/struct:VCR::Response
15
- status: !ruby/struct:VCR::ResponseStatus
16
- code: 200
17
- message: OK
18
- headers:
19
- content-type:
20
- - application/json; charset=utf-8
21
- x-ua-compatible:
22
- - IE=Edge
23
- etag:
24
- - "\"9f2a4641681422d0e3958302e9dc7f15\""
25
- cache-control:
26
- - max-age=0, private, must-revalidate
27
- x-request-id:
28
- - 05ba934d598cec7b44ef90346ea4f515
29
- x-runtime:
30
- - "0.061926"
31
- body: "{\"push_api_subscription\":{\"push_url\":\"http://campaign-specific.com\",\"state\":\"enabled\",\"reward_won_monitored\":false,\"activity_created_monitored\":false,\"user_created_monitored\":true,\"secret\":\"06c5b4a97848faec4a94\",\"campaign\":{\"href\":\"{api_url}/campaigns/7.json\",\"id\":7}}}"
32
- http_version: "1.1"
@@ -1,32 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :get
5
- uri: http://checkd-in-core.dev:80/api/v1/push_api_subscriptions?client_id={client_id}&client_secret={client_secret}
6
- body:
7
- headers:
8
- accept:
9
- - application/json
10
- user-agent:
11
- - checkdin ruby gem 0.2.8
12
- accept-encoding:
13
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
- response: !ruby/struct:VCR::Response
15
- status: !ruby/struct:VCR::ResponseStatus
16
- code: 200
17
- message: OK
18
- headers:
19
- content-type:
20
- - application/json; charset=utf-8
21
- x-ua-compatible:
22
- - IE=Edge
23
- etag:
24
- - "\"e05a34bf305d4016a48df13b2b82f668\""
25
- cache-control:
26
- - max-age=0, private, must-revalidate
27
- x-request-id:
28
- - 81063280e22214167c45926165975d79
29
- x-runtime:
30
- - "0.161668"
31
- body: "[{\"push_api_subscription\":{\"push_url\":\"http://test.com\",\"state\":\"enabled\",\"reward_won_monitored\":false,\"activity_created_monitored\":true,\"user_created_monitored\":false,\"secret\":\"6dec79a3034468c530fc\",\"campaign\":null}},{\"push_api_subscription\":{\"push_url\":\"http://campaign-specific.com\",\"state\":\"disabled\",\"reward_won_monitored\":false,\"activity_created_monitored\":false,\"user_created_monitored\":true,\"secret\":\"06c5b4a97848faec4a94\",\"campaign\":{\"href\":\"{api_url}/campaigns/7.json\",\"id\":7}}}]"
32
- http_version: "1.1"
@@ -1,32 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :get
5
- uri: http://checkd-in-core.dev:80/api/v1/push_api_subscriptions/1?client_id={client_id}&client_secret={client_secret}
6
- body:
7
- headers:
8
- accept:
9
- - application/json
10
- user-agent:
11
- - checkdin ruby gem 0.2.8
12
- accept-encoding:
13
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
- response: !ruby/struct:VCR::Response
15
- status: !ruby/struct:VCR::ResponseStatus
16
- code: 200
17
- message: OK
18
- headers:
19
- content-type:
20
- - application/json; charset=utf-8
21
- x-ua-compatible:
22
- - IE=Edge
23
- etag:
24
- - "\"9d54b3e26adb43319412054e434f95b4\""
25
- cache-control:
26
- - max-age=0, private, must-revalidate
27
- x-request-id:
28
- - 229fde8356e2089293d1970696570ade
29
- x-runtime:
30
- - "0.135453"
31
- body: "{\"push_api_subscription\":{\"push_url\":\"http://test.com\",\"state\":\"enabled\",\"reward_won_monitored\":false,\"activity_created_monitored\":true,\"user_created_monitored\":false,\"secret\":\"6dec79a3034468c530fc\",\"campaign\":null}}"
32
- http_version: "1.1"
@@ -1,42 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :get
5
- uri: https://app.checkd.in:443/api/v1/users?client_id={client_id}&client_secret={client_secret}&limit=2
6
- body: !!null
7
- headers:
8
- accept:
9
- - application/json
10
- user-agent:
11
- - Ruby gem
12
- accept-encoding:
13
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
- response: !ruby/struct:VCR::Response
15
- status: !ruby/struct:VCR::ResponseStatus
16
- code: 200
17
- message: OK
18
- headers:
19
- server:
20
- - nginx/0.8.54
21
- date:
22
- - Tue, 14 Feb 2012 19:09:21 GMT
23
- content-type:
24
- - application/json; charset=utf-8
25
- transfer-encoding:
26
- - chunked
27
- connection:
28
- - keep-alive
29
- strict-transport-security:
30
- - max-age=31536000
31
- x-ua-compatible:
32
- - IE=Edge,chrome=1
33
- etag:
34
- - ! '"14e240ca9c8aebdd4b026df22d2f3d0c"'
35
- cache-control:
36
- - max-age=0, private, must-revalidate
37
- x-runtime:
38
- - '0.032334'
39
- x-rack-cache:
40
- - miss
41
- body: ! '{"total_pages":71,"users":[{"user":{"id":196,"username":"jclandes","created_at":"2012-02-11T18:28:04-06:00","first_name":null,"last_name":null,"birth_date":"1979-02-06","gender":null,"avatar_url":null,"campaign_count":1,"href":"https://app.checkd.in/api/v1/users/196.json"}},{"user":{"id":187,"username":"krhoch","created_at":"2012-01-26T08:16:48-06:00","first_name":null,"last_name":null,"birth_date":"1986-05-29","gender":"male","avatar_url":"https://prod-checkdin-user.s3.amazonaws.com/uploads/187/ROPQUJ0DZBN00OQB.jpg","campaign_count":1,"href":"https://app.checkd.in/api/v1/users/187.json"}}]}'
42
- http_version: '1.1'