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
@@ -0,0 +1,720 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens?debug_output=true&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: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
|
+
- '"d74f503c9be84187ed53874b43e3b80a"'
|
47
|
+
Cache-Control:
|
48
|
+
- max-age=0, private, must-revalidate
|
49
|
+
X-Request-Id:
|
50
|
+
- 4682ed7e-5c0a-4d27-b077-bd892918f58b
|
51
|
+
X-Runtime:
|
52
|
+
- '0.095130'
|
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
|
+
"links": {
|
91
|
+
"show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/11"
|
92
|
+
}
|
93
|
+
},
|
94
|
+
{
|
95
|
+
"application_id": 9,
|
96
|
+
"token": "e09a8a65c9d733656252ce480ce125e37100592adf5449b0570d7ebc3df85b95",
|
97
|
+
"expires_in": null,
|
98
|
+
"revoked_at": null,
|
99
|
+
"created_at": "2015-04-07T20:52:03.641Z",
|
100
|
+
"oauth_access_token_id": 501,
|
101
|
+
"application_name": "Great FUN - Connexions",
|
102
|
+
"application_owner_id": 9,
|
103
|
+
"application_owner_type": "Program",
|
104
|
+
"program_id": 106,
|
105
|
+
"program_name": "Great FUN",
|
106
|
+
"program_customer_identifier": "10792",
|
107
|
+
"program_start_dts": "2012-04-12T21:10:31.633Z",
|
108
|
+
"program_end_dts": "2025-12-31T00:00:00.000Z",
|
109
|
+
"organization_id": 100,
|
110
|
+
"organization_name": "AFFINION",
|
111
|
+
"organization_customer_identifier": "100",
|
112
|
+
"filter_id": 3,
|
113
|
+
"filter_name": "All Categories except EDUCATION ONLY",
|
114
|
+
"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]}}]}]}",
|
115
|
+
"program_filter_id": 2,
|
116
|
+
"domains": [
|
117
|
+
|
118
|
+
],
|
119
|
+
"application_scopes": [
|
120
|
+
"api",
|
121
|
+
"amt",
|
122
|
+
"docs",
|
123
|
+
"internal"
|
124
|
+
],
|
125
|
+
"token_status": "valid",
|
126
|
+
"links": {
|
127
|
+
"show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/501"
|
128
|
+
}
|
129
|
+
},
|
130
|
+
{
|
131
|
+
"application_id": 9,
|
132
|
+
"token": "cfe9e37bb0b3ea4244760291d90216837167e9b0e721585947c123e001319aef",
|
133
|
+
"expires_in": null,
|
134
|
+
"revoked_at": "2015-04-07T20:52:11.814Z",
|
135
|
+
"created_at": "2015-04-07T19:59:16.555Z",
|
136
|
+
"oauth_access_token_id": 500,
|
137
|
+
"application_name": "Great FUN - Connexions",
|
138
|
+
"application_owner_id": 9,
|
139
|
+
"application_owner_type": "Program",
|
140
|
+
"program_id": 106,
|
141
|
+
"program_name": "Great FUN",
|
142
|
+
"program_customer_identifier": "10792",
|
143
|
+
"program_start_dts": "2012-04-12T21:10:31.633Z",
|
144
|
+
"program_end_dts": "2025-12-31T00:00:00.000Z",
|
145
|
+
"organization_id": 100,
|
146
|
+
"organization_name": "AFFINION",
|
147
|
+
"organization_customer_identifier": "100",
|
148
|
+
"filter_id": 3,
|
149
|
+
"filter_name": "All Categories except EDUCATION ONLY",
|
150
|
+
"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]}}]}]}",
|
151
|
+
"program_filter_id": 2,
|
152
|
+
"domains": [
|
153
|
+
|
154
|
+
],
|
155
|
+
"application_scopes": [
|
156
|
+
"api",
|
157
|
+
"amt",
|
158
|
+
"docs",
|
159
|
+
"internal"
|
160
|
+
],
|
161
|
+
"token_status": "revoked",
|
162
|
+
"links": {
|
163
|
+
"show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/500"
|
164
|
+
}
|
165
|
+
},
|
166
|
+
{
|
167
|
+
"application_id": 9,
|
168
|
+
"token": "ad68ea1539b2cf47d33d3866650b50cb68212c6353b60e9e07921b11b479221c",
|
169
|
+
"expires_in": null,
|
170
|
+
"revoked_at": "2015-07-09T20:33:30.070Z",
|
171
|
+
"created_at": "2015-07-09T19:34:36.800Z",
|
172
|
+
"oauth_access_token_id": 3812,
|
173
|
+
"application_name": "Great FUN - Connexions",
|
174
|
+
"application_owner_id": 9,
|
175
|
+
"application_owner_type": "Program",
|
176
|
+
"program_id": 106,
|
177
|
+
"program_name": "Great FUN",
|
178
|
+
"program_customer_identifier": "10792",
|
179
|
+
"program_start_dts": "2012-04-12T21:10:31.633Z",
|
180
|
+
"program_end_dts": "2025-12-31T00:00:00.000Z",
|
181
|
+
"organization_id": 100,
|
182
|
+
"organization_name": "AFFINION",
|
183
|
+
"organization_customer_identifier": "100",
|
184
|
+
"filter_id": 3,
|
185
|
+
"filter_name": "All Categories except EDUCATION ONLY",
|
186
|
+
"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]}}]}]}",
|
187
|
+
"program_filter_id": 2,
|
188
|
+
"domains": [
|
189
|
+
|
190
|
+
],
|
191
|
+
"application_scopes": [
|
192
|
+
"api",
|
193
|
+
"amt",
|
194
|
+
"docs",
|
195
|
+
"internal"
|
196
|
+
],
|
197
|
+
"token_status": "revoked",
|
198
|
+
"links": {
|
199
|
+
"show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/3812"
|
200
|
+
}
|
201
|
+
},
|
202
|
+
{
|
203
|
+
"application_id": 9,
|
204
|
+
"token": "c0c578c72e0a7200403511d55671b793f11eece61cb1b724f81b131bc5f19d66",
|
205
|
+
"expires_in": null,
|
206
|
+
"revoked_at": null,
|
207
|
+
"created_at": "2015-07-28T16:12:19.388Z",
|
208
|
+
"oauth_access_token_id": 3831,
|
209
|
+
"application_name": "Great FUN - Connexions",
|
210
|
+
"application_owner_id": 9,
|
211
|
+
"application_owner_type": "Program",
|
212
|
+
"program_id": 106,
|
213
|
+
"program_name": "Great FUN",
|
214
|
+
"program_customer_identifier": "10792",
|
215
|
+
"program_start_dts": "2012-04-12T21:10:31.633Z",
|
216
|
+
"program_end_dts": "2025-12-31T00:00:00.000Z",
|
217
|
+
"organization_id": 100,
|
218
|
+
"organization_name": "AFFINION",
|
219
|
+
"organization_customer_identifier": "100",
|
220
|
+
"filter_id": 3,
|
221
|
+
"filter_name": "All Categories except EDUCATION ONLY",
|
222
|
+
"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]}}]}]}",
|
223
|
+
"program_filter_id": 2,
|
224
|
+
"domains": [
|
225
|
+
|
226
|
+
],
|
227
|
+
"application_scopes": [
|
228
|
+
"api",
|
229
|
+
"amt",
|
230
|
+
"docs",
|
231
|
+
"internal"
|
232
|
+
],
|
233
|
+
"token_status": "valid",
|
234
|
+
"links": {
|
235
|
+
"show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/3831"
|
236
|
+
}
|
237
|
+
}
|
238
|
+
]
|
239
|
+
}
|
240
|
+
http_version:
|
241
|
+
recorded_at: Mon, 22 Feb 2016 23:26:15 GMT
|
242
|
+
- request:
|
243
|
+
method: get
|
244
|
+
uri: https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens?per_page=1
|
245
|
+
body:
|
246
|
+
encoding: US-ASCII
|
247
|
+
string: ''
|
248
|
+
headers:
|
249
|
+
Access-Token:
|
250
|
+
- "<ACCESS_TOKEN>"
|
251
|
+
Content-Type:
|
252
|
+
- application/json
|
253
|
+
Accept:
|
254
|
+
- application/json
|
255
|
+
response:
|
256
|
+
status:
|
257
|
+
code: 200
|
258
|
+
message: OK
|
259
|
+
headers:
|
260
|
+
Server:
|
261
|
+
- nginx/1.8.0
|
262
|
+
Date:
|
263
|
+
- Mon, 22 Feb 2016 23:27:10 GMT
|
264
|
+
Content-Type:
|
265
|
+
- application/json
|
266
|
+
Transfer-Encoding:
|
267
|
+
- chunked
|
268
|
+
Connection:
|
269
|
+
- keep-alive
|
270
|
+
X-Frame-Options:
|
271
|
+
- SAMEORIGIN
|
272
|
+
X-Xss-Protection:
|
273
|
+
- 1; mode=block
|
274
|
+
X-Content-Type-Options:
|
275
|
+
- nosniff
|
276
|
+
Access-Control-Allow-Methods:
|
277
|
+
- POST, GET, PUT, DELETE, OPTIONS
|
278
|
+
Access-Control-Request-Method:
|
279
|
+
- GET
|
280
|
+
Access-Control-Allow-Headers:
|
281
|
+
- Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
|
282
|
+
Access-Control-Max-Age:
|
283
|
+
- '1728000'
|
284
|
+
Etag:
|
285
|
+
- '"d74f503c9be84187ed53874b43e3b80a"'
|
286
|
+
Cache-Control:
|
287
|
+
- max-age=0, private, must-revalidate
|
288
|
+
X-Request-Id:
|
289
|
+
- eb9feb81-9de5-4a38-a4f9-80c07a3985a3
|
290
|
+
X-Runtime:
|
291
|
+
- '0.125284'
|
292
|
+
body:
|
293
|
+
encoding: UTF-8
|
294
|
+
string: |-
|
295
|
+
{
|
296
|
+
"access_tokens": [
|
297
|
+
{
|
298
|
+
"application_id": 9,
|
299
|
+
"token": "68214283dc396fcb2f5c6442dae8c461718be2df77a19cc822f1f4f2953e13f3",
|
300
|
+
"expires_in": null,
|
301
|
+
"revoked_at": "2015-04-07T20:51:38.223Z",
|
302
|
+
"created_at": "2015-04-02T22:35:55.225Z",
|
303
|
+
"oauth_access_token_id": 11,
|
304
|
+
"application_name": "Great FUN - Connexions",
|
305
|
+
"application_owner_id": 9,
|
306
|
+
"application_owner_type": "Program",
|
307
|
+
"program_id": 106,
|
308
|
+
"program_name": "Great FUN",
|
309
|
+
"program_customer_identifier": "10792",
|
310
|
+
"program_start_dts": "2012-04-12T21:10:31.633Z",
|
311
|
+
"program_end_dts": "2025-12-31T00:00:00.000Z",
|
312
|
+
"organization_id": 100,
|
313
|
+
"organization_name": "AFFINION",
|
314
|
+
"organization_customer_identifier": "100",
|
315
|
+
"filter_id": 3,
|
316
|
+
"filter_name": "All Categories except EDUCATION ONLY",
|
317
|
+
"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]}}]}]}",
|
318
|
+
"program_filter_id": 2,
|
319
|
+
"domains": [
|
320
|
+
|
321
|
+
],
|
322
|
+
"application_scopes": [
|
323
|
+
"api",
|
324
|
+
"amt",
|
325
|
+
"docs",
|
326
|
+
"internal"
|
327
|
+
],
|
328
|
+
"token_status": "revoked",
|
329
|
+
"links": {
|
330
|
+
"show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/11"
|
331
|
+
}
|
332
|
+
},
|
333
|
+
{
|
334
|
+
"application_id": 9,
|
335
|
+
"token": "e09a8a65c9d733656252ce480ce125e37100592adf5449b0570d7ebc3df85b95",
|
336
|
+
"expires_in": null,
|
337
|
+
"revoked_at": null,
|
338
|
+
"created_at": "2015-04-07T20:52:03.641Z",
|
339
|
+
"oauth_access_token_id": 501,
|
340
|
+
"application_name": "Great FUN - Connexions",
|
341
|
+
"application_owner_id": 9,
|
342
|
+
"application_owner_type": "Program",
|
343
|
+
"program_id": 106,
|
344
|
+
"program_name": "Great FUN",
|
345
|
+
"program_customer_identifier": "10792",
|
346
|
+
"program_start_dts": "2012-04-12T21:10:31.633Z",
|
347
|
+
"program_end_dts": "2025-12-31T00:00:00.000Z",
|
348
|
+
"organization_id": 100,
|
349
|
+
"organization_name": "AFFINION",
|
350
|
+
"organization_customer_identifier": "100",
|
351
|
+
"filter_id": 3,
|
352
|
+
"filter_name": "All Categories except EDUCATION ONLY",
|
353
|
+
"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]}}]}]}",
|
354
|
+
"program_filter_id": 2,
|
355
|
+
"domains": [
|
356
|
+
|
357
|
+
],
|
358
|
+
"application_scopes": [
|
359
|
+
"api",
|
360
|
+
"amt",
|
361
|
+
"docs",
|
362
|
+
"internal"
|
363
|
+
],
|
364
|
+
"token_status": "valid",
|
365
|
+
"links": {
|
366
|
+
"show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/501"
|
367
|
+
}
|
368
|
+
},
|
369
|
+
{
|
370
|
+
"application_id": 9,
|
371
|
+
"token": "cfe9e37bb0b3ea4244760291d90216837167e9b0e721585947c123e001319aef",
|
372
|
+
"expires_in": null,
|
373
|
+
"revoked_at": "2015-04-07T20:52:11.814Z",
|
374
|
+
"created_at": "2015-04-07T19:59:16.555Z",
|
375
|
+
"oauth_access_token_id": 500,
|
376
|
+
"application_name": "Great FUN - Connexions",
|
377
|
+
"application_owner_id": 9,
|
378
|
+
"application_owner_type": "Program",
|
379
|
+
"program_id": 106,
|
380
|
+
"program_name": "Great FUN",
|
381
|
+
"program_customer_identifier": "10792",
|
382
|
+
"program_start_dts": "2012-04-12T21:10:31.633Z",
|
383
|
+
"program_end_dts": "2025-12-31T00:00:00.000Z",
|
384
|
+
"organization_id": 100,
|
385
|
+
"organization_name": "AFFINION",
|
386
|
+
"organization_customer_identifier": "100",
|
387
|
+
"filter_id": 3,
|
388
|
+
"filter_name": "All Categories except EDUCATION ONLY",
|
389
|
+
"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]}}]}]}",
|
390
|
+
"program_filter_id": 2,
|
391
|
+
"domains": [
|
392
|
+
|
393
|
+
],
|
394
|
+
"application_scopes": [
|
395
|
+
"api",
|
396
|
+
"amt",
|
397
|
+
"docs",
|
398
|
+
"internal"
|
399
|
+
],
|
400
|
+
"token_status": "revoked",
|
401
|
+
"links": {
|
402
|
+
"show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/500"
|
403
|
+
}
|
404
|
+
},
|
405
|
+
{
|
406
|
+
"application_id": 9,
|
407
|
+
"token": "ad68ea1539b2cf47d33d3866650b50cb68212c6353b60e9e07921b11b479221c",
|
408
|
+
"expires_in": null,
|
409
|
+
"revoked_at": "2015-07-09T20:33:30.070Z",
|
410
|
+
"created_at": "2015-07-09T19:34:36.800Z",
|
411
|
+
"oauth_access_token_id": 3812,
|
412
|
+
"application_name": "Great FUN - Connexions",
|
413
|
+
"application_owner_id": 9,
|
414
|
+
"application_owner_type": "Program",
|
415
|
+
"program_id": 106,
|
416
|
+
"program_name": "Great FUN",
|
417
|
+
"program_customer_identifier": "10792",
|
418
|
+
"program_start_dts": "2012-04-12T21:10:31.633Z",
|
419
|
+
"program_end_dts": "2025-12-31T00:00:00.000Z",
|
420
|
+
"organization_id": 100,
|
421
|
+
"organization_name": "AFFINION",
|
422
|
+
"organization_customer_identifier": "100",
|
423
|
+
"filter_id": 3,
|
424
|
+
"filter_name": "All Categories except EDUCATION ONLY",
|
425
|
+
"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]}}]}]}",
|
426
|
+
"program_filter_id": 2,
|
427
|
+
"domains": [
|
428
|
+
|
429
|
+
],
|
430
|
+
"application_scopes": [
|
431
|
+
"api",
|
432
|
+
"amt",
|
433
|
+
"docs",
|
434
|
+
"internal"
|
435
|
+
],
|
436
|
+
"token_status": "revoked",
|
437
|
+
"links": {
|
438
|
+
"show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/3812"
|
439
|
+
}
|
440
|
+
},
|
441
|
+
{
|
442
|
+
"application_id": 9,
|
443
|
+
"token": "c0c578c72e0a7200403511d55671b793f11eece61cb1b724f81b131bc5f19d66",
|
444
|
+
"expires_in": null,
|
445
|
+
"revoked_at": null,
|
446
|
+
"created_at": "2015-07-28T16:12:19.388Z",
|
447
|
+
"oauth_access_token_id": 3831,
|
448
|
+
"application_name": "Great FUN - Connexions",
|
449
|
+
"application_owner_id": 9,
|
450
|
+
"application_owner_type": "Program",
|
451
|
+
"program_id": 106,
|
452
|
+
"program_name": "Great FUN",
|
453
|
+
"program_customer_identifier": "10792",
|
454
|
+
"program_start_dts": "2012-04-12T21:10:31.633Z",
|
455
|
+
"program_end_dts": "2025-12-31T00:00:00.000Z",
|
456
|
+
"organization_id": 100,
|
457
|
+
"organization_name": "AFFINION",
|
458
|
+
"organization_customer_identifier": "100",
|
459
|
+
"filter_id": 3,
|
460
|
+
"filter_name": "All Categories except EDUCATION ONLY",
|
461
|
+
"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]}}]}]}",
|
462
|
+
"program_filter_id": 2,
|
463
|
+
"domains": [
|
464
|
+
|
465
|
+
],
|
466
|
+
"application_scopes": [
|
467
|
+
"api",
|
468
|
+
"amt",
|
469
|
+
"docs",
|
470
|
+
"internal"
|
471
|
+
],
|
472
|
+
"token_status": "valid",
|
473
|
+
"links": {
|
474
|
+
"show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/3831"
|
475
|
+
}
|
476
|
+
}
|
477
|
+
]
|
478
|
+
}
|
479
|
+
http_version:
|
480
|
+
recorded_at: Mon, 22 Feb 2016 23:27:13 GMT
|
481
|
+
- request:
|
482
|
+
method: get
|
483
|
+
uri: https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens?per_page=1
|
484
|
+
body:
|
485
|
+
encoding: US-ASCII
|
486
|
+
string: ''
|
487
|
+
headers:
|
488
|
+
Access-Token:
|
489
|
+
- "<ACCESS_TOKEN>"
|
490
|
+
Content-Type:
|
491
|
+
- application/json
|
492
|
+
Accept:
|
493
|
+
- application/json
|
494
|
+
response:
|
495
|
+
status:
|
496
|
+
code: 200
|
497
|
+
message: OK
|
498
|
+
headers:
|
499
|
+
Server:
|
500
|
+
- nginx/1.8.0
|
501
|
+
Date:
|
502
|
+
- Mon, 22 Feb 2016 23:28:34 GMT
|
503
|
+
Content-Type:
|
504
|
+
- application/json
|
505
|
+
Transfer-Encoding:
|
506
|
+
- chunked
|
507
|
+
Connection:
|
508
|
+
- keep-alive
|
509
|
+
X-Frame-Options:
|
510
|
+
- SAMEORIGIN
|
511
|
+
X-Xss-Protection:
|
512
|
+
- 1; mode=block
|
513
|
+
X-Content-Type-Options:
|
514
|
+
- nosniff
|
515
|
+
Access-Control-Allow-Methods:
|
516
|
+
- POST, GET, PUT, DELETE, OPTIONS
|
517
|
+
Access-Control-Request-Method:
|
518
|
+
- GET
|
519
|
+
Access-Control-Allow-Headers:
|
520
|
+
- Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
|
521
|
+
Access-Control-Max-Age:
|
522
|
+
- '1728000'
|
523
|
+
Etag:
|
524
|
+
- '"d74f503c9be84187ed53874b43e3b80a"'
|
525
|
+
Cache-Control:
|
526
|
+
- max-age=0, private, must-revalidate
|
527
|
+
X-Request-Id:
|
528
|
+
- 819796e1-df0d-4c64-b24b-b9886f4de218
|
529
|
+
X-Runtime:
|
530
|
+
- '0.116815'
|
531
|
+
body:
|
532
|
+
encoding: UTF-8
|
533
|
+
string: |-
|
534
|
+
{
|
535
|
+
"access_tokens": [
|
536
|
+
{
|
537
|
+
"application_id": 9,
|
538
|
+
"token": "68214283dc396fcb2f5c6442dae8c461718be2df77a19cc822f1f4f2953e13f3",
|
539
|
+
"expires_in": null,
|
540
|
+
"revoked_at": "2015-04-07T20:51:38.223Z",
|
541
|
+
"created_at": "2015-04-02T22:35:55.225Z",
|
542
|
+
"oauth_access_token_id": 11,
|
543
|
+
"application_name": "Great FUN - Connexions",
|
544
|
+
"application_owner_id": 9,
|
545
|
+
"application_owner_type": "Program",
|
546
|
+
"program_id": 106,
|
547
|
+
"program_name": "Great FUN",
|
548
|
+
"program_customer_identifier": "10792",
|
549
|
+
"program_start_dts": "2012-04-12T21:10:31.633Z",
|
550
|
+
"program_end_dts": "2025-12-31T00:00:00.000Z",
|
551
|
+
"organization_id": 100,
|
552
|
+
"organization_name": "AFFINION",
|
553
|
+
"organization_customer_identifier": "100",
|
554
|
+
"filter_id": 3,
|
555
|
+
"filter_name": "All Categories except EDUCATION ONLY",
|
556
|
+
"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]}}]}]}",
|
557
|
+
"program_filter_id": 2,
|
558
|
+
"domains": [
|
559
|
+
|
560
|
+
],
|
561
|
+
"application_scopes": [
|
562
|
+
"api",
|
563
|
+
"amt",
|
564
|
+
"docs",
|
565
|
+
"internal"
|
566
|
+
],
|
567
|
+
"token_status": "revoked",
|
568
|
+
"links": {
|
569
|
+
"show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/11"
|
570
|
+
}
|
571
|
+
},
|
572
|
+
{
|
573
|
+
"application_id": 9,
|
574
|
+
"token": "e09a8a65c9d733656252ce480ce125e37100592adf5449b0570d7ebc3df85b95",
|
575
|
+
"expires_in": null,
|
576
|
+
"revoked_at": null,
|
577
|
+
"created_at": "2015-04-07T20:52:03.641Z",
|
578
|
+
"oauth_access_token_id": 501,
|
579
|
+
"application_name": "Great FUN - Connexions",
|
580
|
+
"application_owner_id": 9,
|
581
|
+
"application_owner_type": "Program",
|
582
|
+
"program_id": 106,
|
583
|
+
"program_name": "Great FUN",
|
584
|
+
"program_customer_identifier": "10792",
|
585
|
+
"program_start_dts": "2012-04-12T21:10:31.633Z",
|
586
|
+
"program_end_dts": "2025-12-31T00:00:00.000Z",
|
587
|
+
"organization_id": 100,
|
588
|
+
"organization_name": "AFFINION",
|
589
|
+
"organization_customer_identifier": "100",
|
590
|
+
"filter_id": 3,
|
591
|
+
"filter_name": "All Categories except EDUCATION ONLY",
|
592
|
+
"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]}}]}]}",
|
593
|
+
"program_filter_id": 2,
|
594
|
+
"domains": [
|
595
|
+
|
596
|
+
],
|
597
|
+
"application_scopes": [
|
598
|
+
"api",
|
599
|
+
"amt",
|
600
|
+
"docs",
|
601
|
+
"internal"
|
602
|
+
],
|
603
|
+
"token_status": "valid",
|
604
|
+
"links": {
|
605
|
+
"show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/501"
|
606
|
+
}
|
607
|
+
},
|
608
|
+
{
|
609
|
+
"application_id": 9,
|
610
|
+
"token": "cfe9e37bb0b3ea4244760291d90216837167e9b0e721585947c123e001319aef",
|
611
|
+
"expires_in": null,
|
612
|
+
"revoked_at": "2015-04-07T20:52:11.814Z",
|
613
|
+
"created_at": "2015-04-07T19:59:16.555Z",
|
614
|
+
"oauth_access_token_id": 500,
|
615
|
+
"application_name": "Great FUN - Connexions",
|
616
|
+
"application_owner_id": 9,
|
617
|
+
"application_owner_type": "Program",
|
618
|
+
"program_id": 106,
|
619
|
+
"program_name": "Great FUN",
|
620
|
+
"program_customer_identifier": "10792",
|
621
|
+
"program_start_dts": "2012-04-12T21:10:31.633Z",
|
622
|
+
"program_end_dts": "2025-12-31T00:00:00.000Z",
|
623
|
+
"organization_id": 100,
|
624
|
+
"organization_name": "AFFINION",
|
625
|
+
"organization_customer_identifier": "100",
|
626
|
+
"filter_id": 3,
|
627
|
+
"filter_name": "All Categories except EDUCATION ONLY",
|
628
|
+
"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]}}]}]}",
|
629
|
+
"program_filter_id": 2,
|
630
|
+
"domains": [
|
631
|
+
|
632
|
+
],
|
633
|
+
"application_scopes": [
|
634
|
+
"api",
|
635
|
+
"amt",
|
636
|
+
"docs",
|
637
|
+
"internal"
|
638
|
+
],
|
639
|
+
"token_status": "revoked",
|
640
|
+
"links": {
|
641
|
+
"show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/500"
|
642
|
+
}
|
643
|
+
},
|
644
|
+
{
|
645
|
+
"application_id": 9,
|
646
|
+
"token": "ad68ea1539b2cf47d33d3866650b50cb68212c6353b60e9e07921b11b479221c",
|
647
|
+
"expires_in": null,
|
648
|
+
"revoked_at": "2015-07-09T20:33:30.070Z",
|
649
|
+
"created_at": "2015-07-09T19:34:36.800Z",
|
650
|
+
"oauth_access_token_id": 3812,
|
651
|
+
"application_name": "Great FUN - Connexions",
|
652
|
+
"application_owner_id": 9,
|
653
|
+
"application_owner_type": "Program",
|
654
|
+
"program_id": 106,
|
655
|
+
"program_name": "Great FUN",
|
656
|
+
"program_customer_identifier": "10792",
|
657
|
+
"program_start_dts": "2012-04-12T21:10:31.633Z",
|
658
|
+
"program_end_dts": "2025-12-31T00:00:00.000Z",
|
659
|
+
"organization_id": 100,
|
660
|
+
"organization_name": "AFFINION",
|
661
|
+
"organization_customer_identifier": "100",
|
662
|
+
"filter_id": 3,
|
663
|
+
"filter_name": "All Categories except EDUCATION ONLY",
|
664
|
+
"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]}}]}]}",
|
665
|
+
"program_filter_id": 2,
|
666
|
+
"domains": [
|
667
|
+
|
668
|
+
],
|
669
|
+
"application_scopes": [
|
670
|
+
"api",
|
671
|
+
"amt",
|
672
|
+
"docs",
|
673
|
+
"internal"
|
674
|
+
],
|
675
|
+
"token_status": "revoked",
|
676
|
+
"links": {
|
677
|
+
"show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/3812"
|
678
|
+
}
|
679
|
+
},
|
680
|
+
{
|
681
|
+
"application_id": 9,
|
682
|
+
"token": "c0c578c72e0a7200403511d55671b793f11eece61cb1b724f81b131bc5f19d66",
|
683
|
+
"expires_in": null,
|
684
|
+
"revoked_at": null,
|
685
|
+
"created_at": "2015-07-28T16:12:19.388Z",
|
686
|
+
"oauth_access_token_id": 3831,
|
687
|
+
"application_name": "Great FUN - Connexions",
|
688
|
+
"application_owner_id": 9,
|
689
|
+
"application_owner_type": "Program",
|
690
|
+
"program_id": 106,
|
691
|
+
"program_name": "Great FUN",
|
692
|
+
"program_customer_identifier": "10792",
|
693
|
+
"program_start_dts": "2012-04-12T21:10:31.633Z",
|
694
|
+
"program_end_dts": "2025-12-31T00:00:00.000Z",
|
695
|
+
"organization_id": 100,
|
696
|
+
"organization_name": "AFFINION",
|
697
|
+
"organization_customer_identifier": "100",
|
698
|
+
"filter_id": 3,
|
699
|
+
"filter_name": "All Categories except EDUCATION ONLY",
|
700
|
+
"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]}}]}]}",
|
701
|
+
"program_filter_id": 2,
|
702
|
+
"domains": [
|
703
|
+
|
704
|
+
],
|
705
|
+
"application_scopes": [
|
706
|
+
"api",
|
707
|
+
"amt",
|
708
|
+
"docs",
|
709
|
+
"internal"
|
710
|
+
],
|
711
|
+
"token_status": "valid",
|
712
|
+
"links": {
|
713
|
+
"show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/3831"
|
714
|
+
}
|
715
|
+
}
|
716
|
+
]
|
717
|
+
}
|
718
|
+
http_version:
|
719
|
+
recorded_at: Mon, 22 Feb 2016 23:28:36 GMT
|
720
|
+
recorded_with: VCR 3.0.1
|