access 2.0.48 → 2.0.49
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 +4 -4
- data/.env.sample +8 -0
- data/.gitignore +1 -0
- data/Gemfile.lock +3 -1
- data/README.md +4 -0
- data/access.gemspec +1 -0
- data/bin/console +2 -1
- data/lib/access/api.rb +4 -4
- data/lib/access/favorite.rb +2 -2
- data/lib/access/version.rb +1 -1
- data/test/access/autocomplete_test.rb +5 -5
- data/test/access/campaign_test.rb +3 -3
- data/test/access/category_test.rb +5 -5
- data/test/access/channel_test.rb +6 -6
- data/test/access/device_test.rb +4 -4
- data/test/access/favorite_test.rb +61 -54
- data/test/access/filter_test.rb +3 -3
- data/test/access/location_test.rb +4 -4
- data/test/access/member_test.rb +3 -3
- data/test/access/oauth_application_test.rb +6 -7
- data/test/access/offer_test.rb +9 -9
- data/test/access/redeem_test.rb +3 -3
- data/test/access/redemption_test.rb +4 -5
- data/test/access/report_test.rb +14 -14
- data/test/access/spot_test.rb +4 -4
- data/test/access/store_test.rb +5 -5
- data/test/access/token_test.rb +3 -3
- data/test/access/user_test.rb +19 -15
- data/test/access/verify_test.rb +2 -2
- data/test/test_helper.rb +6 -3
- data/test/vcr/cassettes/{autocomplete_search_categories.yml → autocomplete/search_categories.yml} +8 -8
- data/test/vcr/cassettes/autocomplete/search_first.yml +94 -0
- data/test/vcr/cassettes/autocomplete/search_locations.yml +71 -0
- data/test/vcr/cassettes/{autocomplete_search_offers.yml → autocomplete/search_offers.yml} +10 -10
- data/test/vcr/cassettes/{autocomplete_search_stores.yml → autocomplete/search_stores.yml} +11 -11
- data/test/vcr/cassettes/campaign/search.yml +1021 -0
- data/test/vcr/cassettes/{category_find.yml → category/find.yml} +29 -29
- data/test/vcr/cassettes/category/search.yml +1588 -0
- data/test/vcr/cassettes/{location_search_fail_member_key.yml → category/search_fail_member_key.yml} +6 -6
- data/test/vcr/cassettes/{category_search.yml → category/search_first.yml} +739 -787
- data/test/vcr/cassettes/{subcategory_find.yml → category/subcategory_find.yml} +28 -28
- data/test/vcr/cassettes/{channel_search.yml → channel/search.yml} +3 -3
- data/test/vcr/cassettes/favorite/create_generic_with_offer.yml +126 -0
- data/test/vcr/cassettes/{favorite_create_offer.yml → favorite/create_location.yml} +7 -7
- data/test/vcr/cassettes/favorite/create_offer.yml +126 -0
- data/test/vcr/cassettes/favorite/create_store.yml +94 -0
- data/test/vcr/cassettes/favorite/delete_generic_with_offer.yml +171 -0
- data/test/vcr/cassettes/favorite/delete_location.yml +203 -0
- data/test/vcr/cassettes/favorite/delete_offer.yml +294 -0
- data/test/vcr/cassettes/favorite/delete_store.yml +258 -0
- data/test/vcr/cassettes/favorite/find_generic_with_offer.yml +323 -0
- data/test/vcr/cassettes/favorite/find_location.yml +158 -0
- data/test/vcr/cassettes/favorite/find_offer.yml +323 -0
- data/test/vcr/cassettes/favorite/find_store.yml +213 -0
- data/test/vcr/cassettes/{favorite_one_of_everything.yml → favorite/one_of_everything.yml} +181 -58
- data/test/vcr/cassettes/favorite/search.yml +346 -0
- data/test/vcr/cassettes/favorite/search_bad_member.yml +66 -0
- data/test/vcr/cassettes/favorite/search_locations.yml +113 -0
- data/test/vcr/cassettes/favorite/search_no_favorites.yml +66 -0
- data/test/vcr/cassettes/favorite/search_offers.yml +200 -0
- data/test/vcr/cassettes/favorite/search_stores.yml +178 -0
- data/test/vcr/cassettes/filter/find.yml +66 -0
- data/test/vcr/cassettes/{filter_search.yml → filter/search.yml} +12 -12
- data/test/vcr/cassettes/filter/search_first.yml +75 -0
- data/test/vcr/cassettes/location/find.yml +680 -0
- data/test/vcr/cassettes/location/search.yml +123 -0
- data/test/vcr/cassettes/{category_search_fail_member_key.yml → location/search_fail_member_key.yml} +6 -6
- data/test/vcr/cassettes/location/search_first.yml +123 -0
- data/test/vcr/cassettes/{member_show_failure.yml → member/show_failure.yml} +3 -3
- data/test/vcr/cassettes/{member_show_success.yml → member/show_success.yml} +5 -5
- data/test/vcr/cassettes/{favorite_delete_generic_with_offer.yml → member/update_success.yml} +7 -7
- data/test/vcr/cassettes/{member_authenticate_cvt_failure.yml → member_authenticate/cvt_failure.yml} +4 -4
- data/test/vcr/cassettes/{member_authenticate_cvt_success.yml → member_authenticate/cvt_success.yml} +6 -6
- data/test/vcr/cassettes/{member_authenticate_failure.yml → member_authenticate/failure.yml} +4 -4
- data/test/vcr/cassettes/{member_authenticate_member_key_failure.yml → member_authenticate/member_key_failure.yml} +3 -3
- data/test/vcr/cassettes/{member_authenticate_member_key_success.yml → member_authenticate/member_key_success.yml} +3 -3
- data/test/vcr/cassettes/{member_authenticate_success.yml → member_authenticate/success.yml} +5 -5
- data/test/vcr/cassettes/{member_device_search_failure.yml → member_device/search_failure.yml} +3 -3
- data/test/vcr/cassettes/member_device/search_success.yml +63 -0
- data/test/vcr/cassettes/{oauth_application_find.yml → oauth_application/find.yml} +19 -15
- data/test/vcr/cassettes/{oauth_application_search.yml → oauth_application/search.yml} +23 -19
- data/test/vcr/cassettes/oauth_application/search_oauth_first.yml +95 -0
- data/test/vcr/cassettes/oauth_application/token_find.yml +95 -0
- data/test/vcr/cassettes/oauth_application/token_search.yml +720 -0
- data/test/vcr/cassettes/oauth_application/token_search_tokens_first.yml +242 -0
- data/test/vcr/cassettes/offer/find.yml +158 -0
- data/test/vcr/cassettes/{offer_find_uses_remaining.yml → offer/find_uses_remaining.yml} +10 -10
- data/test/vcr/cassettes/offer/find_with_offer_uses_remaining.yml +158 -0
- data/test/vcr/cassettes/offer/search.yml +159 -0
- data/test/vcr/cassettes/{offer_search_fail_member_key.yml → offer/search_fail_member_key.yml} +6 -6
- data/test/vcr/cassettes/offer/search_first.yml +159 -0
- data/test/vcr/cassettes/offer/search_for_redeem.yml +159 -0
- data/test/vcr/cassettes/offer/with_aggregations.yml +1046 -0
- data/test/vcr/cassettes/redeem/offer_no_redeem_type.yml +36 -0
- data/test/vcr/cassettes/redeem/offer_with_redeem_type.yml +36 -0
- data/test/vcr/cassettes/redeem/redeem_offer_with_redeem_type_for_uses_remaining_test.yml +36 -0
- data/test/vcr/cassettes/redemption/find_by_member_key.yml +133 -0
- data/test/vcr/cassettes/redemption/search_by_member_key.yml +495 -0
- data/test/vcr/cassettes/redemption/search_by_member_key_first.yml +495 -0
- data/test/vcr/cassettes/{search_redemption_by_member_key_without_redemptions.yml → redemption/search_by_member_key_without_redemptions.yml} +6 -6
- data/test/vcr/cassettes/report/all_usage.yml +156 -0
- data/test/vcr/cassettes/{member_location_frequent.yml → report/member_location_frequent.yml} +6 -10
- data/test/vcr/cassettes/{member_location_recent.yml → report/member_location_recent.yml} +6 -6
- data/test/vcr/cassettes/{member_query_frequent.yml → report/member_query_frequent.yml} +6 -6
- data/test/vcr/cassettes/{member_query_recent.yml → report/member_query_recent.yml} +6 -6
- data/test/vcr/cassettes/report/usage.yml +156 -0
- data/test/vcr/cassettes/report/usage_other.yml +156 -0
- data/test/vcr/cassettes/{spot_find.yml → spot/find.yml} +3 -3
- data/test/vcr/cassettes/spot/search_by_campaign.yml +2727 -0
- data/test/vcr/cassettes/spot/search_by_channel.yml +956 -0
- data/test/vcr/cassettes/spot/search_by_channel_first.yml +956 -0
- data/test/vcr/cassettes/{store_find.yml → store/find.yml} +17 -17
- data/test/vcr/cassettes/store/national_stores.yml +3057 -0
- data/test/vcr/cassettes/{store_search.yml → store/search.yml} +21 -21
- data/test/vcr/cassettes/{store_search_fail_member_key.yml → store/search_fail_member_key.yml} +6 -6
- data/test/vcr/cassettes/store/search_first.yml +95 -0
- data/test/vcr/cassettes/token/find.yml +107 -0
- data/test/vcr/cassettes/token/get_first_token.yml +121 -0
- data/test/vcr/cassettes/token/search.yml +121 -0
- data/test/vcr/cassettes/{user_register_failure.yml → user_register/failure.yml} +4 -4
- data/test/vcr/cassettes/user_register/success.yml +101 -0
- data/test/vcr/cassettes/{user_update_success.yml → user_update/success.yml} +8 -6
- data/test/vcr/cassettes/{verify_filter.yml → verify/filter.yml} +41 -124
- data/test/vcr/cassettes/{verify_token.yml → verify/token.yml} +14 -11
- metadata +205 -174
- data/test/vcr/cassettes/all_usage.yml +0 -84
- data/test/vcr/cassettes/autocomplete_search.yml +0 -84
- data/test/vcr/cassettes/autocomplete_search_locations.yml +0 -66
- data/test/vcr/cassettes/campaign_find.yml +0 -232
- data/test/vcr/cassettes/campaign_search.yml +0 -1258
- data/test/vcr/cassettes/channel_find.yml +0 -57
- data/test/vcr/cassettes/favorite_create_generic_with_offer.yml +0 -93
- data/test/vcr/cassettes/favorite_create_location.yml +0 -91
- data/test/vcr/cassettes/favorite_create_store.yml +0 -92
- data/test/vcr/cassettes/favorite_delete_location.yml +0 -94
- data/test/vcr/cassettes/favorite_delete_offer.yml +0 -93
- data/test/vcr/cassettes/favorite_delete_store.yml +0 -94
- data/test/vcr/cassettes/favorite_find_generic_with_offer.yml +0 -93
- data/test/vcr/cassettes/favorite_find_location.yml +0 -179
- data/test/vcr/cassettes/favorite_find_offer.yml +0 -93
- data/test/vcr/cassettes/favorite_find_store.yml +0 -181
- data/test/vcr/cassettes/favorite_search.yml +0 -131
- data/test/vcr/cassettes/favorite_search_bad_member.yml +0 -49
- data/test/vcr/cassettes/favorite_search_locations.yml +0 -99
- data/test/vcr/cassettes/favorite_search_no_favorites.yml +0 -49
- data/test/vcr/cassettes/favorite_search_offers.yml +0 -169
- data/test/vcr/cassettes/favorite_search_stores.yml +0 -92
- data/test/vcr/cassettes/filter_find.yml +0 -174
- data/test/vcr/cassettes/find_redemption_by_member_key.yml +0 -131
- data/test/vcr/cassettes/location_find.yml +0 -505
- data/test/vcr/cassettes/location_search.yml +0 -123
- data/test/vcr/cassettes/member_device_search_success.yml +0 -48
- data/test/vcr/cassettes/member_update_success.yml +0 -183
- data/test/vcr/cassettes/national_stores.yml +0 -1914
- data/test/vcr/cassettes/oauth_application_token_find.yml +0 -92
- data/test/vcr/cassettes/oauth_application_token_search.yml +0 -95
- data/test/vcr/cassettes/offer_find.yml +0 -149
- data/test/vcr/cassettes/offer_find_with_offer_uses_remaining.yml +0 -149
- data/test/vcr/cassettes/offer_search.yml +0 -148
- data/test/vcr/cassettes/offer_with_aggregations.yml +0 -934
- data/test/vcr/cassettes/redeem_offer_no_redeem_type.yml +0 -38
- data/test/vcr/cassettes/redeem_offer_with_redeem_type.yml +0 -38
- data/test/vcr/cassettes/redeem_offer_with_redeem_type_for_uses_remaining_test.yml +0 -38
- data/test/vcr/cassettes/search_redemption_by_member_key.yml +0 -762
- data/test/vcr/cassettes/spot_search_by_campaign.yml +0 -2954
- data/test/vcr/cassettes/spot_search_by_channel.yml +0 -1192
- data/test/vcr/cassettes/token_find.yml +0 -99
- data/test/vcr/cassettes/token_get_first_token.yml +0 -113
- data/test/vcr/cassettes/token_search.yml +0 -113
- data/test/vcr/cassettes/usage.yml +0 -84
- data/test/vcr/cassettes/usage_other.yml +0 -84
- data/test/vcr/cassettes/user_register_success.yml +0 -50
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Access-Token:
|
11
|
-
- ACCESS_TOKEN
|
11
|
+
- "<ACCESS_TOKEN>"
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
@@ -39,7 +39,7 @@ http_interactions:
|
|
39
39
|
Transfer-Encoding:
|
40
40
|
- chunked
|
41
41
|
Date:
|
42
|
-
-
|
42
|
+
- Mon, 22 Feb 2016 23:05:56 GMT
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: '{"users":[{"program_id":2412,"program_key":"TYP123","program_name":"Access
|
@@ -51,5 +51,5 @@ http_interactions:
|
|
51
51
|
Extras","provisioning_method":"MEMBER_CID"},"member":{"member_id":54967340,"member_key":"226872","email":null,"first_name":"ROBERT","last_name":"W
|
52
52
|
CANTRELL","cvt":"d7926ca8f22fcf998195faedfc448cef99306e9b","postal_code":"35950"}}]}'
|
53
53
|
http_version:
|
54
|
-
recorded_at:
|
54
|
+
recorded_at: Mon, 22 Feb 2016 23:05:59 GMT
|
55
55
|
recorded_with: VCR 3.0.1
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: '{"email":"ben@test.com","password":"password"}'
|
9
9
|
headers:
|
10
10
|
Access-Token:
|
11
|
-
- ACCESS_TOKEN
|
11
|
+
- "<ACCESS_TOKEN>"
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
@@ -39,14 +39,14 @@ http_interactions:
|
|
39
39
|
Transfer-Encoding:
|
40
40
|
- chunked
|
41
41
|
Date:
|
42
|
-
- Mon,
|
42
|
+
- Mon, 22 Feb 2016 23:05:58 GMT
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: '{"users":[{"program_id":2412,"program_key":"TYP123","program_name":"Access
|
46
46
|
Perks Demo","organization_id":2000896,"organization_key":"TYPDEMO","organization_name":"Access
|
47
47
|
Perks Demo","member_id":89665693,"member_key":"226865","email":"ben@test.com","first_name":"Ben","last_name":"Eggett","reg_id":1077263,"cvt":"5d7c9927d4cc1720e1fff4681a3dc6e51c9145dd","postal_code":"84010","roles":[],"program_provisioning_method":"SHARED_SECRET","user_has_password":true}],"members":[{"organization":{"organization_id":2000896,"organization_key":"TYPDEMO","name":"Access
|
48
48
|
Perks Demo"},"program":{"program_id":2412,"program_key":"TYP123","name":"Access
|
49
|
-
Perks Demo","provisioning_method":"SHARED_SECRET"},"member":{"member_id":89665693,"member_key":"226865","email":"ben@test.com","first_name":"Ben","last_name":"Eggett","cvt":"5d7c9927d4cc1720e1fff4681a3dc6e51c9145dd","postal_code":"84010"},"user":{"email":"ben@test.com","first_name":"Ben","last_name":"Eggett","reg_id":1077263,"roles":[],"has_password":true}}]}'
|
49
|
+
Perks Demo","provisioning_method":"SHARED_SECRET"},"member":{"member_id":89665693,"member_key":"226865","email":"ben@test.com","first_name":"Ben","last_name":"Eggett","cvt":"5d7c9927d4cc1720e1fff4681a3dc6e51c9145dd","postal_code":"84010"},"user":{"email":"ben@test.com","first_name":"Ben","last_name":"Eggett","reg_id":1077263,"roles":[],"has_password":true,"password_expired":false}}]}'
|
50
50
|
http_version:
|
51
|
-
recorded_at: Mon,
|
52
|
-
recorded_with: VCR 3.0.
|
51
|
+
recorded_at: Mon, 22 Feb 2016 23:06:00 GMT
|
52
|
+
recorded_with: VCR 3.0.1
|
data/test/vcr/cassettes/{member_device_search_failure.yml → member_device/search_failure.yml}
RENAMED
@@ -39,11 +39,11 @@ http_interactions:
|
|
39
39
|
Transfer-Encoding:
|
40
40
|
- chunked
|
41
41
|
Date:
|
42
|
-
-
|
42
|
+
- Mon, 22 Feb 2016 20:31:16 GMT
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: '{"message":"Member does not exist(provider_member_cid: 12345, program_id
|
46
46
|
112233). ","status":404}'
|
47
47
|
http_version:
|
48
|
-
recorded_at:
|
49
|
-
recorded_with: VCR 3.0.
|
48
|
+
recorded_at: Mon, 22 Feb 2016 20:31:19 GMT
|
49
|
+
recorded_with: VCR 3.0.1
|
@@ -0,0 +1,63 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://mms-stage.adcrws.com/v1/members/226872/devices?program_id=2412
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Access-Token:
|
11
|
+
- ACCESS_TOKEN
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept:
|
15
|
+
- application/json
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- Apache-Coyote/1.1
|
23
|
+
X-Content-Type-Options:
|
24
|
+
- nosniff
|
25
|
+
X-Xss-Protection:
|
26
|
+
- 1; mode=block
|
27
|
+
Cache-Control:
|
28
|
+
- no-cache, no-store, max-age=0, must-revalidate
|
29
|
+
Pragma:
|
30
|
+
- no-cache
|
31
|
+
Expires:
|
32
|
+
- '0'
|
33
|
+
X-Frame-Options:
|
34
|
+
- DENY
|
35
|
+
X-Application-Context:
|
36
|
+
- application:main,stage:10110
|
37
|
+
Content-Type:
|
38
|
+
- application/json;charset=UTF-8
|
39
|
+
Transfer-Encoding:
|
40
|
+
- chunked
|
41
|
+
Date:
|
42
|
+
- Mon, 22 Feb 2016 20:31:17 GMT
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"info":{"total_results":8},"devices":[{"udid":"9AC5650E-75CE-441B-A920-1A5DBE8A1A1C","os":"iPhone
|
46
|
+
OS","os_version":"9.2.1","device_type":"iPhone","device_model":"Unknown iPhone","device_version":null,"software_version":"0.1.0","last_used_at":"2016-01-27T16:58:19.000+0000","name":"iPhone","push_opt_in":true,"push_token":"35d1dbf098bd519145c3c303a2d8de21800cb9726d3cbdafe381909f9a8f35b2","disabled":false,"created_dts":"2016-01-13T00:45:35.175+0000","modified_dts":"2016-01-27T16:58:22.759+0000","disabled_dts":null},{"udid":"680B04B4-6823-4B51-9A87-3FF0BF2C2772","os":"iPhone
|
47
|
+
OS","os_version":"9.2.1","device_type":"iPhone","device_model":"Unknown iPhone","device_version":null,"software_version":"0.1.0","last_used_at":"2016-01-27T16:59:00.000+0000","name":"iPhone","push_opt_in":true,"push_token":"7642398c05ab8085e0924d3096a3b80791af0fd58dc1650b474c94503c167c2b","disabled":false,"created_dts":"2016-01-12T17:25:14.105+0000","modified_dts":"2016-01-27T16:59:03.941+0000","disabled_dts":null},{"udid":"FF353D3B-88FC-4F37-9734-FEEB49CE84AC","os":"iPhone
|
48
|
+
OS","os_version":"8.4","device_type":"iPhone Simulator","device_model":"iPhone
|
49
|
+
Simulator","device_version":null,"software_version":"0.1.0","last_used_at":"2016-01-15T22:21:37.000+0000","name":"iPhone
|
50
|
+
Simulator","push_opt_in":false,"push_token":"","disabled":false,"created_dts":"2016-01-15T22:20:55.484+0000","modified_dts":"2016-01-15T22:21:38.287+0000","disabled_dts":null},{"udid":"55B6B7B0-D0B7-4E31-A844-BF62ADDC7680","os":"iPhone
|
51
|
+
OS","os_version":"9.2","device_type":"iPhone","device_model":"iPhone Simulator","device_version":null,"software_version":"0.1.0","last_used_at":"2016-01-21T20:31:19.000+0000","name":"iPhone
|
52
|
+
Simulator","push_opt_in":false,"push_token":"","disabled":false,"created_dts":"2016-01-21T16:42:44.258+0000","modified_dts":"2016-01-21T20:31:19.951+0000","disabled_dts":null},{"udid":"302B4553-D7AD-40EF-8790-2F8D9353AA8E","os":"iPhone
|
53
|
+
OS","os_version":"9.2","device_type":"iPhone","device_model":"iPhone Simulator","device_version":null,"software_version":"0.1.0","last_used_at":"2016-01-23T00:15:57.000+0000","name":"iPhone
|
54
|
+
Simulator","push_opt_in":false,"push_token":"","disabled":false,"created_dts":"2016-01-20T16:39:17.522+0000","modified_dts":"2016-01-23T00:15:58.822+0000","disabled_dts":null},{"udid":"58FB56FA-F05A-409F-9AA2-0930EA305506","os":"iPhone
|
55
|
+
OS","os_version":"9.2","device_type":"iPhone","device_model":"iPhone Simulator","device_version":null,"software_version":"0.1.0","last_used_at":"2016-01-27T21:08:11.000+0000","name":"iPhone
|
56
|
+
Simulator","push_opt_in":false,"push_token":"","disabled":false,"created_dts":"2016-01-27T21:08:48.664+0000","modified_dts":"2016-01-27T21:08:12.019+0000","disabled_dts":null},{"udid":"4A95957E-1045-43BC-96B6-0BF30DC8B849","os":"iPhone
|
57
|
+
OS","os_version":"9.2","device_type":"iPhone","device_model":"iPhone Simulator","device_version":null,"software_version":"0.1.0","last_used_at":"2016-01-27T23:56:28.000+0000","name":"iPhone
|
58
|
+
Simulator","push_opt_in":false,"push_token":"","disabled":false,"created_dts":"2016-01-27T20:54:55.672+0000","modified_dts":"2016-01-27T23:56:29.154+0000","disabled_dts":null},{"udid":"25AB674D-4F16-4FD1-9693-41B48BC212D2","os":"iPhone
|
59
|
+
OS","os_version":"9.2","device_type":"iPhone","device_model":"iPhone Simulator","device_version":null,"software_version":"0.1.0","last_used_at":"2016-01-27T18:48:49.000+0000","name":"iPhone
|
60
|
+
Simulator","push_opt_in":false,"push_token":"","disabled":false,"created_dts":"2016-01-25T18:41:14.424+0000","modified_dts":"2016-01-27T18:48:50.750+0000","disabled_dts":null}]}'
|
61
|
+
http_version:
|
62
|
+
recorded_at: Mon, 22 Feb 2016 20:31:20 GMT
|
63
|
+
recorded_with: VCR 3.0.1
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://token-
|
5
|
+
uri: https://token-stage.adcrws.com/v1/oauth_applications/9
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Access-Token:
|
11
|
-
- ACCESS_TOKEN
|
11
|
+
- "<ACCESS_TOKEN>"
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
@@ -21,7 +21,7 @@ http_interactions:
|
|
21
21
|
Server:
|
22
22
|
- nginx/1.8.0
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Mon, 22 Feb 2016 23:26:14 GMT
|
25
25
|
Content-Type:
|
26
26
|
- application/json
|
27
27
|
Transfer-Encoding:
|
@@ -43,38 +43,42 @@ http_interactions:
|
|
43
43
|
Access-Control-Max-Age:
|
44
44
|
- '1728000'
|
45
45
|
Etag:
|
46
|
-
- '"
|
46
|
+
- '"2640e5943e06503452381af7cdfb7989"'
|
47
47
|
Cache-Control:
|
48
48
|
- max-age=0, private, must-revalidate
|
49
49
|
X-Request-Id:
|
50
|
-
-
|
50
|
+
- 5b71bf9e-2fcf-4073-89e0-7b2688af7c75
|
51
51
|
X-Runtime:
|
52
|
-
- '0.
|
52
|
+
- '0.039212'
|
53
53
|
body:
|
54
54
|
encoding: UTF-8
|
55
55
|
string: |-
|
56
56
|
{
|
57
57
|
"oauth_applications": [
|
58
58
|
{
|
59
|
-
"id":
|
60
|
-
"name": "
|
61
|
-
"owner_id":
|
59
|
+
"id": 9,
|
60
|
+
"name": "Great FUN - Connexions",
|
61
|
+
"owner_id": 106,
|
62
62
|
"owner_type": "Program",
|
63
63
|
"domain_urls": null,
|
64
64
|
"scopes": [
|
65
|
-
"
|
65
|
+
"api",
|
66
|
+
"amt",
|
67
|
+
"docs",
|
68
|
+
"internal"
|
66
69
|
],
|
67
70
|
"active_tokens": [
|
68
|
-
"
|
71
|
+
"e09a8a65c9d733656252ce480ce125e37100592adf5449b0570d7ebc3df85b95",
|
72
|
+
"c0c578c72e0a7200403511d55671b793f11eece61cb1b724f81b131bc5f19d66"
|
69
73
|
],
|
70
74
|
"filter": {
|
71
|
-
"filter_id":
|
72
|
-
"filter_name": "
|
75
|
+
"filter_id": 3,
|
76
|
+
"filter_name": "All Categories except EDUCATION ONLY"
|
73
77
|
},
|
74
78
|
"links": null
|
75
79
|
}
|
76
80
|
]
|
77
81
|
}
|
78
82
|
http_version:
|
79
|
-
recorded_at:
|
80
|
-
recorded_with: VCR 3.0.
|
83
|
+
recorded_at: Mon, 22 Feb 2016 23:26:17 GMT
|
84
|
+
recorded_with: VCR 3.0.1
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://token-
|
5
|
+
uri: https://token-stage.adcrws.com/v1/oauth_applications?per_page=1
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Access-Token:
|
11
|
-
- ACCESS_TOKEN
|
11
|
+
- "<ACCESS_TOKEN>"
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
@@ -21,7 +21,7 @@ http_interactions:
|
|
21
21
|
Server:
|
22
22
|
- nginx/1.8.0
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Mon, 22 Feb 2016 23:26:14 GMT
|
25
25
|
Content-Type:
|
26
26
|
- application/json
|
27
27
|
Transfer-Encoding:
|
@@ -43,49 +43,53 @@ http_interactions:
|
|
43
43
|
Access-Control-Max-Age:
|
44
44
|
- '1728000'
|
45
45
|
Etag:
|
46
|
-
- '"
|
46
|
+
- '"9a25641923a20fd5288927ec32e6910d"'
|
47
47
|
Cache-Control:
|
48
48
|
- max-age=0, private, must-revalidate
|
49
49
|
X-Request-Id:
|
50
|
-
-
|
50
|
+
- a121ba3b-0700-4bc3-abf6-9e2a70a974d7
|
51
51
|
X-Runtime:
|
52
|
-
- '0.
|
52
|
+
- '0.050972'
|
53
53
|
body:
|
54
54
|
encoding: UTF-8
|
55
55
|
string: |-
|
56
56
|
{
|
57
57
|
"info": {
|
58
|
-
"total_results":
|
58
|
+
"total_results": 3960,
|
59
59
|
"results_per_page": 1,
|
60
60
|
"current_page": 1,
|
61
|
-
"total_pages":
|
61
|
+
"total_pages": 3960
|
62
62
|
},
|
63
63
|
"oauth_applications": [
|
64
64
|
{
|
65
|
-
"id":
|
66
|
-
"name": "
|
67
|
-
"owner_id":
|
65
|
+
"id": 9,
|
66
|
+
"name": "Great FUN - Connexions",
|
67
|
+
"owner_id": 106,
|
68
68
|
"owner_type": "Program",
|
69
69
|
"domain_urls": null,
|
70
70
|
"scopes": [
|
71
|
-
"
|
71
|
+
"api",
|
72
|
+
"amt",
|
73
|
+
"docs",
|
74
|
+
"internal"
|
72
75
|
],
|
73
76
|
"active_tokens": [
|
74
|
-
"
|
77
|
+
"e09a8a65c9d733656252ce480ce125e37100592adf5449b0570d7ebc3df85b95",
|
78
|
+
"c0c578c72e0a7200403511d55671b793f11eece61cb1b724f81b131bc5f19d66"
|
75
79
|
],
|
76
80
|
"filter": {
|
77
|
-
"filter_id":
|
78
|
-
"filter_name": "
|
81
|
+
"filter_id": 3,
|
82
|
+
"filter_name": "All Categories except EDUCATION ONLY"
|
79
83
|
},
|
80
84
|
"links": {
|
81
|
-
"show_application": "https://token-
|
85
|
+
"show_application": "https://token-stage.adcrws.com/v1/oauth_applications/9"
|
82
86
|
}
|
83
87
|
}
|
84
88
|
],
|
85
89
|
"links": {
|
86
|
-
"next_page": "https://report-
|
90
|
+
"next_page": "https://report-stage.adcrws.com/v1/oauth_applications?page=2"
|
87
91
|
}
|
88
92
|
}
|
89
93
|
http_version:
|
90
|
-
recorded_at:
|
91
|
-
recorded_with: VCR 3.0.
|
94
|
+
recorded_at: Mon, 22 Feb 2016 23:26:16 GMT
|
95
|
+
recorded_with: VCR 3.0.1
|
@@ -0,0 +1,95 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://token-stage.adcrws.com/v1/oauth_applications?per_page=1
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Access-Token:
|
11
|
+
- "<ACCESS_TOKEN>"
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept:
|
15
|
+
- application/json
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx/1.8.0
|
23
|
+
Date:
|
24
|
+
- Mon, 22 Feb 2016 23:26:12 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
X-Frame-Options:
|
32
|
+
- SAMEORIGIN
|
33
|
+
X-Xss-Protection:
|
34
|
+
- 1; mode=block
|
35
|
+
X-Content-Type-Options:
|
36
|
+
- nosniff
|
37
|
+
Access-Control-Allow-Methods:
|
38
|
+
- POST, GET, PUT, DELETE, OPTIONS
|
39
|
+
Access-Control-Request-Method:
|
40
|
+
- GET
|
41
|
+
Access-Control-Allow-Headers:
|
42
|
+
- Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
|
43
|
+
Access-Control-Max-Age:
|
44
|
+
- '1728000'
|
45
|
+
Etag:
|
46
|
+
- '"9a25641923a20fd5288927ec32e6910d"'
|
47
|
+
Cache-Control:
|
48
|
+
- max-age=0, private, must-revalidate
|
49
|
+
X-Request-Id:
|
50
|
+
- 2dbf228c-27ef-406d-a0f1-a412fdf1952e
|
51
|
+
X-Runtime:
|
52
|
+
- '0.084730'
|
53
|
+
body:
|
54
|
+
encoding: UTF-8
|
55
|
+
string: |-
|
56
|
+
{
|
57
|
+
"info": {
|
58
|
+
"total_results": 3960,
|
59
|
+
"results_per_page": 1,
|
60
|
+
"current_page": 1,
|
61
|
+
"total_pages": 3960
|
62
|
+
},
|
63
|
+
"oauth_applications": [
|
64
|
+
{
|
65
|
+
"id": 9,
|
66
|
+
"name": "Great FUN - Connexions",
|
67
|
+
"owner_id": 106,
|
68
|
+
"owner_type": "Program",
|
69
|
+
"domain_urls": null,
|
70
|
+
"scopes": [
|
71
|
+
"api",
|
72
|
+
"amt",
|
73
|
+
"docs",
|
74
|
+
"internal"
|
75
|
+
],
|
76
|
+
"active_tokens": [
|
77
|
+
"e09a8a65c9d733656252ce480ce125e37100592adf5449b0570d7ebc3df85b95",
|
78
|
+
"c0c578c72e0a7200403511d55671b793f11eece61cb1b724f81b131bc5f19d66"
|
79
|
+
],
|
80
|
+
"filter": {
|
81
|
+
"filter_id": 3,
|
82
|
+
"filter_name": "All Categories except EDUCATION ONLY"
|
83
|
+
},
|
84
|
+
"links": {
|
85
|
+
"show_application": "https://token-stage.adcrws.com/v1/oauth_applications/9"
|
86
|
+
}
|
87
|
+
}
|
88
|
+
],
|
89
|
+
"links": {
|
90
|
+
"next_page": "https://report-stage.adcrws.com/v1/oauth_applications?page=2"
|
91
|
+
}
|
92
|
+
}
|
93
|
+
http_version:
|
94
|
+
recorded_at: Mon, 22 Feb 2016 23:26:15 GMT
|
95
|
+
recorded_with: VCR 3.0.1
|
@@ -0,0 +1,95 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/11
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Access-Token:
|
11
|
+
- "<ACCESS_TOKEN>"
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept:
|
15
|
+
- application/json
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx/1.8.0
|
23
|
+
Date:
|
24
|
+
- Mon, 22 Feb 2016 23:26:13 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
X-Frame-Options:
|
32
|
+
- SAMEORIGIN
|
33
|
+
X-Xss-Protection:
|
34
|
+
- 1; mode=block
|
35
|
+
X-Content-Type-Options:
|
36
|
+
- nosniff
|
37
|
+
Access-Control-Allow-Methods:
|
38
|
+
- POST, GET, PUT, DELETE, OPTIONS
|
39
|
+
Access-Control-Request-Method:
|
40
|
+
- GET
|
41
|
+
Access-Control-Allow-Headers:
|
42
|
+
- Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
|
43
|
+
Access-Control-Max-Age:
|
44
|
+
- '1728000'
|
45
|
+
Etag:
|
46
|
+
- '"14461abf8ef3aeb8b2435ee3f8ec97b1"'
|
47
|
+
Cache-Control:
|
48
|
+
- max-age=0, private, must-revalidate
|
49
|
+
X-Request-Id:
|
50
|
+
- 8d4509a4-e9b6-4622-85ab-d4f0b77f4c07
|
51
|
+
X-Runtime:
|
52
|
+
- '0.048897'
|
53
|
+
body:
|
54
|
+
encoding: UTF-8
|
55
|
+
string: |-
|
56
|
+
{
|
57
|
+
"access_tokens": [
|
58
|
+
{
|
59
|
+
"application_id": 9,
|
60
|
+
"token": "68214283dc396fcb2f5c6442dae8c461718be2df77a19cc822f1f4f2953e13f3",
|
61
|
+
"expires_in": null,
|
62
|
+
"revoked_at": "2015-04-07T20:51:38.223Z",
|
63
|
+
"created_at": "2015-04-02T22:35:55.225Z",
|
64
|
+
"oauth_access_token_id": 11,
|
65
|
+
"application_name": "Great FUN - Connexions",
|
66
|
+
"application_owner_id": 9,
|
67
|
+
"application_owner_type": "Program",
|
68
|
+
"program_id": 106,
|
69
|
+
"program_name": "Great FUN",
|
70
|
+
"program_customer_identifier": "10792",
|
71
|
+
"program_start_dts": "2012-04-12T21:10:31.633Z",
|
72
|
+
"program_end_dts": "2025-12-31T00:00:00.000Z",
|
73
|
+
"organization_id": 100,
|
74
|
+
"organization_name": "AFFINION",
|
75
|
+
"organization_customer_identifier": "100",
|
76
|
+
"filter_id": 3,
|
77
|
+
"filter_name": "All Categories except EDUCATION ONLY",
|
78
|
+
"filter": "{\"offers\":[{\"terms\":{\"offer_set\":[\"DISCOUNT\"]}},{\"or\":[{\"terms\":{\"categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"categories\":[{\"or\":[{\"terms\":{\"category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"stores\":[{\"or\":[{\"terms\":{\"store_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"store_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"locations\":[{\"or\":[{\"terms\":{\"location_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"location_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}]}",
|
79
|
+
"program_filter_id": 2,
|
80
|
+
"domains": [
|
81
|
+
|
82
|
+
],
|
83
|
+
"application_scopes": [
|
84
|
+
"api",
|
85
|
+
"amt",
|
86
|
+
"docs",
|
87
|
+
"internal"
|
88
|
+
],
|
89
|
+
"token_status": "revoked"
|
90
|
+
}
|
91
|
+
]
|
92
|
+
}
|
93
|
+
http_version:
|
94
|
+
recorded_at: Mon, 22 Feb 2016 23:26:16 GMT
|
95
|
+
recorded_with: VCR 3.0.1
|