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
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://offer-
|
5
|
+
uri: https://offer-stage.adcrws.com/v1/stores?member_key=API_RUBY_GEM_TEST&per_page=1
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -21,7 +21,7 @@ http_interactions:
|
|
21
21
|
Server:
|
22
22
|
- nginx/1.8.0
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Mon, 22 Feb 2016 20:17:07 GMT
|
25
25
|
Content-Type:
|
26
26
|
- application/json
|
27
27
|
Transfer-Encoding:
|
@@ -43,53 +43,53 @@ http_interactions:
|
|
43
43
|
Access-Control-Max-Age:
|
44
44
|
- '1728000'
|
45
45
|
Etag:
|
46
|
-
- '"
|
46
|
+
- '"7c92334b892c06d17052b72e50160a55"'
|
47
47
|
Cache-Control:
|
48
48
|
- max-age=0, private, must-revalidate
|
49
49
|
X-Request-Id:
|
50
|
-
-
|
50
|
+
- b72b9f16-9c46-4196-95c3-04741c42c284
|
51
51
|
X-Runtime:
|
52
|
-
- '0.
|
52
|
+
- '0.015883'
|
53
53
|
body:
|
54
54
|
encoding: UTF-8
|
55
55
|
string: |-
|
56
56
|
{
|
57
57
|
"info": {
|
58
|
-
"total_results":
|
58
|
+
"total_results": 26312,
|
59
59
|
"current_page": 1,
|
60
|
-
"total_pages":
|
60
|
+
"total_pages": 26312,
|
61
61
|
"results_per_page": 1
|
62
62
|
},
|
63
63
|
"stores": [
|
64
64
|
{
|
65
65
|
"search_relevance": 1.0,
|
66
|
-
"store_key":
|
67
|
-
"name": "
|
68
|
-
"description": "
|
69
|
-
"logo_url": "https://static-demo.accessdevelopment.com/
|
66
|
+
"store_key": 261817158,
|
67
|
+
"name": "Pho 85",
|
68
|
+
"description": "",
|
69
|
+
"logo_url": "https://static-demo.accessdevelopment.com/icons/store.png",
|
70
70
|
"national": false,
|
71
71
|
"active_location_count": 1,
|
72
72
|
"active_offer_count": 1,
|
73
73
|
"store_categories": [
|
74
74
|
{
|
75
|
-
"category_name": "
|
76
|
-
"category_key":
|
77
|
-
"category_parent_key":
|
78
|
-
"category_parent_name": "
|
75
|
+
"category_name": "Casual & Fine Dining",
|
76
|
+
"category_key": 1009,
|
77
|
+
"category_parent_key": 39,
|
78
|
+
"category_parent_name": "Dining & Food",
|
79
79
|
"category_type": "subcategory"
|
80
80
|
}
|
81
81
|
],
|
82
82
|
"links": {
|
83
|
-
"show_store": "https://offer-
|
84
|
-
"find_offers_for_this_store": "https://offer-
|
85
|
-
"find_locations_for_this_store": "https://offer-
|
83
|
+
"show_store": "https://offer-stage.adcrws.com/v1/stores/261817158",
|
84
|
+
"find_offers_for_this_store": "https://offer-stage.adcrws.com/v1/offers?store_key=261817158",
|
85
|
+
"find_locations_for_this_store": "https://offer-stage.adcrws.com/v1/locations?store_key=261817158"
|
86
86
|
}
|
87
87
|
}
|
88
88
|
],
|
89
89
|
"links": {
|
90
|
-
"next_page": "https://offer-
|
90
|
+
"next_page": "https://offer-stage.adcrws.com/v1/stores?member_key=API_RUBY_GEM_TEST&page=2&per_page=1"
|
91
91
|
}
|
92
92
|
}
|
93
93
|
http_version:
|
94
|
-
recorded_at:
|
95
|
-
recorded_with: VCR 3.0.
|
94
|
+
recorded_at: Mon, 22 Feb 2016 20:17:09 GMT
|
95
|
+
recorded_with: VCR 3.0.1
|
data/test/vcr/cassettes/{store_search_fail_member_key.yml → store/search_fail_member_key.yml}
RENAMED
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://offer-
|
5
|
+
uri: https://offer-stage.adcrws.com/v1/stores?query=pizza
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -21,7 +21,7 @@ http_interactions:
|
|
21
21
|
Server:
|
22
22
|
- nginx/1.8.0
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Mon, 22 Feb 2016 20:17:06 GMT
|
25
25
|
Content-Type:
|
26
26
|
- application/json
|
27
27
|
Transfer-Encoding:
|
@@ -45,9 +45,9 @@ http_interactions:
|
|
45
45
|
Cache-Control:
|
46
46
|
- no-cache
|
47
47
|
X-Request-Id:
|
48
|
-
-
|
48
|
+
- 21cc70b8-c30b-48ef-a830-3ec956e31c1c
|
49
49
|
X-Runtime:
|
50
|
-
- '0.
|
50
|
+
- '0.009244'
|
51
51
|
body:
|
52
52
|
encoding: UTF-8
|
53
53
|
string: |-
|
@@ -56,5 +56,5 @@ http_interactions:
|
|
56
56
|
"status": 401
|
57
57
|
}
|
58
58
|
http_version:
|
59
|
-
recorded_at:
|
60
|
-
recorded_with: VCR 3.0.
|
59
|
+
recorded_at: Mon, 22 Feb 2016 20:17:09 GMT
|
60
|
+
recorded_with: VCR 3.0.1
|
@@ -0,0 +1,95 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://offer-stage.adcrws.com/v1/stores?member_key=API_RUBY_GEM_TEST&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 20:17:06 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
|
+
- '"7c92334b892c06d17052b72e50160a55"'
|
47
|
+
Cache-Control:
|
48
|
+
- max-age=0, private, must-revalidate
|
49
|
+
X-Request-Id:
|
50
|
+
- 010c67fc-a06a-466c-91a5-0f8c884883b4
|
51
|
+
X-Runtime:
|
52
|
+
- '0.016263'
|
53
|
+
body:
|
54
|
+
encoding: UTF-8
|
55
|
+
string: |-
|
56
|
+
{
|
57
|
+
"info": {
|
58
|
+
"total_results": 26312,
|
59
|
+
"current_page": 1,
|
60
|
+
"total_pages": 26312,
|
61
|
+
"results_per_page": 1
|
62
|
+
},
|
63
|
+
"stores": [
|
64
|
+
{
|
65
|
+
"search_relevance": 1.0,
|
66
|
+
"store_key": 261817158,
|
67
|
+
"name": "Pho 85",
|
68
|
+
"description": "",
|
69
|
+
"logo_url": "https://static-demo.accessdevelopment.com/icons/store.png",
|
70
|
+
"national": false,
|
71
|
+
"active_location_count": 1,
|
72
|
+
"active_offer_count": 1,
|
73
|
+
"store_categories": [
|
74
|
+
{
|
75
|
+
"category_name": "Casual & Fine Dining",
|
76
|
+
"category_key": 1009,
|
77
|
+
"category_parent_key": 39,
|
78
|
+
"category_parent_name": "Dining & Food",
|
79
|
+
"category_type": "subcategory"
|
80
|
+
}
|
81
|
+
],
|
82
|
+
"links": {
|
83
|
+
"show_store": "https://offer-stage.adcrws.com/v1/stores/261817158",
|
84
|
+
"find_offers_for_this_store": "https://offer-stage.adcrws.com/v1/offers?store_key=261817158",
|
85
|
+
"find_locations_for_this_store": "https://offer-stage.adcrws.com/v1/locations?store_key=261817158"
|
86
|
+
}
|
87
|
+
}
|
88
|
+
],
|
89
|
+
"links": {
|
90
|
+
"next_page": "https://offer-stage.adcrws.com/v1/stores?member_key=API_RUBY_GEM_TEST&page=2&per_page=1"
|
91
|
+
}
|
92
|
+
}
|
93
|
+
http_version:
|
94
|
+
recorded_at: Mon, 22 Feb 2016 20:17:09 GMT
|
95
|
+
recorded_with: VCR 3.0.1
|
@@ -0,0 +1,107 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://token-stage.adcrws.com/v1/tokens/1f4cfbfec58ce429ac089dea6502473d380e8a32b6960eac40b118b8a9964da3
|
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 20:16:57 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
|
+
- '"730f58e760958b4a8cd7f27bb5e2961a"'
|
47
|
+
Cache-Control:
|
48
|
+
- max-age=0, private, must-revalidate
|
49
|
+
X-Request-Id:
|
50
|
+
- d1bd95e3-e847-4371-b0c4-7463e62c8dcd
|
51
|
+
X-Runtime:
|
52
|
+
- '0.013507'
|
53
|
+
body:
|
54
|
+
encoding: UTF-8
|
55
|
+
string: |-
|
56
|
+
{
|
57
|
+
"oauth_token": {
|
58
|
+
"application_id": 3960,
|
59
|
+
"token": "1f4cfbfec58ce429ac089dea6502473d380e8a32b6960eac40b118b8a9964da3",
|
60
|
+
"expires_in": null,
|
61
|
+
"revoked_at": null,
|
62
|
+
"created_at": "2016-02-16T13:34:42.793-07:00",
|
63
|
+
"oauth_access_token_id": 3995,
|
64
|
+
"application_name": "RWS API - RBI_MCID (pcid:200278)",
|
65
|
+
"application_owner_id": 279477590,
|
66
|
+
"application_owner_type": "Program",
|
67
|
+
"program_id": 279477590,
|
68
|
+
"program_name": "RWS API - RBI_MCID",
|
69
|
+
"program_customer_identifier": "200278",
|
70
|
+
"program_start_dts": "2016-02-16T06:30:18.392-07:00",
|
71
|
+
"program_end_dts": "2019-02-16T06:30:18.392-07:00",
|
72
|
+
"organization_id": 160,
|
73
|
+
"organization_name": "Access Development",
|
74
|
+
"organization_customer_identifier": "160",
|
75
|
+
"filter_id": null,
|
76
|
+
"filter_name": null,
|
77
|
+
"filter": null,
|
78
|
+
"program_filter_id": null,
|
79
|
+
"domains": [
|
80
|
+
|
81
|
+
],
|
82
|
+
"application_scopes": [
|
83
|
+
"internal"
|
84
|
+
],
|
85
|
+
"help_phone_number": "1-800-331-8867",
|
86
|
+
"program_info_id": 279477590,
|
87
|
+
"default_distance": 25,
|
88
|
+
"force_update": false,
|
89
|
+
"color_theme": {
|
90
|
+
"name": "default",
|
91
|
+
"primary": "#2c3e50",
|
92
|
+
"primary-light": "#3e5871",
|
93
|
+
"accent": "#3498db",
|
94
|
+
"accent-light": "#5faee3"
|
95
|
+
},
|
96
|
+
"email_opt_out": false,
|
97
|
+
"mobile_logo": null,
|
98
|
+
"mobile_teaser": null,
|
99
|
+
"member_key_label": "Member ID",
|
100
|
+
"member_key_hint_label": null,
|
101
|
+
"indexed_at": "2016-02-16T20:29:32.163Z",
|
102
|
+
"token_status": "valid"
|
103
|
+
}
|
104
|
+
}
|
105
|
+
http_version:
|
106
|
+
recorded_at: Mon, 22 Feb 2016 20:16:59 GMT
|
107
|
+
recorded_with: VCR 3.0.1
|
@@ -0,0 +1,121 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://token-stage.adcrws.com/v1/tokens?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 20:16:57 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
|
+
- '"8ad5faac2f01b1880e45c5ac956880f7"'
|
47
|
+
Cache-Control:
|
48
|
+
- max-age=0, private, must-revalidate
|
49
|
+
X-Request-Id:
|
50
|
+
- 1b1f9bd3-98aa-4da2-858b-fb643c90f606
|
51
|
+
X-Runtime:
|
52
|
+
- '0.014174'
|
53
|
+
body:
|
54
|
+
encoding: UTF-8
|
55
|
+
string: |-
|
56
|
+
{
|
57
|
+
"info": {
|
58
|
+
"total_results": 1092,
|
59
|
+
"results_per_page": 1,
|
60
|
+
"current_page": 1,
|
61
|
+
"total_pages": 1092
|
62
|
+
},
|
63
|
+
"oauth_tokens": [
|
64
|
+
{
|
65
|
+
"application_id": 3960,
|
66
|
+
"token": "1f4cfbfec58ce429ac089dea6502473d380e8a32b6960eac40b118b8a9964da3",
|
67
|
+
"expires_in": null,
|
68
|
+
"revoked_at": null,
|
69
|
+
"created_at": "2016-02-16T13:34:42.793-07:00",
|
70
|
+
"oauth_access_token_id": 3995,
|
71
|
+
"application_name": "RWS API - RBI_MCID (pcid:200278)",
|
72
|
+
"application_owner_id": 279477590,
|
73
|
+
"application_owner_type": "Program",
|
74
|
+
"program_id": 279477590,
|
75
|
+
"program_name": "RWS API - RBI_MCID",
|
76
|
+
"program_customer_identifier": "200278",
|
77
|
+
"program_start_dts": "2016-02-16T06:30:18.392-07:00",
|
78
|
+
"program_end_dts": "2019-02-16T06:30:18.392-07:00",
|
79
|
+
"organization_id": 160,
|
80
|
+
"organization_name": "Access Development",
|
81
|
+
"organization_customer_identifier": "160",
|
82
|
+
"filter_id": null,
|
83
|
+
"filter_name": null,
|
84
|
+
"filter": null,
|
85
|
+
"program_filter_id": null,
|
86
|
+
"domains": [
|
87
|
+
|
88
|
+
],
|
89
|
+
"application_scopes": [
|
90
|
+
"internal"
|
91
|
+
],
|
92
|
+
"help_phone_number": "1-800-331-8867",
|
93
|
+
"program_info_id": 279477590,
|
94
|
+
"default_distance": 25,
|
95
|
+
"force_update": false,
|
96
|
+
"color_theme": {
|
97
|
+
"name": "default",
|
98
|
+
"primary": "#2c3e50",
|
99
|
+
"primary-light": "#3e5871",
|
100
|
+
"accent": "#3498db",
|
101
|
+
"accent-light": "#5faee3"
|
102
|
+
},
|
103
|
+
"email_opt_out": false,
|
104
|
+
"mobile_logo": null,
|
105
|
+
"mobile_teaser": null,
|
106
|
+
"member_key_label": "Member ID",
|
107
|
+
"member_key_hint_label": null,
|
108
|
+
"indexed_at": "2016-02-16T20:29:32.163Z",
|
109
|
+
"token_status": "valid",
|
110
|
+
"links": {
|
111
|
+
"show_oauth_token": "http://token-stage.adcrws.com/v1/tokens/1f4cfbfec58ce429ac089dea6502473d380e8a32b6960eac40b118b8a9964da3"
|
112
|
+
}
|
113
|
+
}
|
114
|
+
],
|
115
|
+
"links": {
|
116
|
+
"next_page": "https://token-stage.adcrws.com/v1/tokens?page=2&per_page=1"
|
117
|
+
}
|
118
|
+
}
|
119
|
+
http_version:
|
120
|
+
recorded_at: Mon, 22 Feb 2016 20:16:59 GMT
|
121
|
+
recorded_with: VCR 3.0.1
|