test/vcr/cassettes/oauth_application/token_search.yml in access-2.2.0 vs test/vcr/cassettes/oauth_application/token_search.yml in access-2.3.0.pre.rc1
- old
+ new
@@ -1,10 +1,10 @@
---
http_interactions:
- request:
method: get
- uri: https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens?debug_output=true&per_page=1
+ uri: https://token-stage.adcrws.com/v1/oauth_applications/503/access_tokens?per_page=1
body:
encoding: US-ASCII
string: ''
headers:
Access-Token:
@@ -17,19 +17,17 @@
status:
code: 200
message: OK
headers:
Server:
- - nginx/1.8.0
+ - nginx/1.12.2
Date:
- - Mon, 22 Feb 2016 23:26:13 GMT
+ - Thu, 28 Jun 2018 20:29:09 GMT
Content-Type:
- application/json
Transfer-Encoding:
- chunked
- Connection:
- - keep-alive
X-Frame-Options:
- SAMEORIGIN
X-Xss-Protection:
- 1; mode=block
X-Content-Type-Options:
@@ -40,210 +38,67 @@
- GET
Access-Control-Allow-Headers:
- Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
Access-Control-Max-Age:
- '1728000'
+ X-Ratelimit-Limit:
+ - '10000'
+ X-Ratelimit-Remaining:
+ - '9769'
Etag:
- - '"d74f503c9be84187ed53874b43e3b80a"'
+ - '"b113acf22d793bbb1cf58213d86e2fe7"'
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- - 4682ed7e-5c0a-4d27-b077-bd892918f58b
+ - f827423f-3d1e-4498-b6e7-aedc81f167a7
X-Runtime:
- - '0.095130'
+ - '0.043608'
body:
encoding: UTF-8
string: |-
{
"access_tokens": [
{
- "application_id": 9,
- "token": "68214283dc396fcb2f5c6442dae8c461718be2df77a19cc822f1f4f2953e13f3",
+ "application_id": 503,
+ "token": "c30f1d24a8c10e0fd3e36bc4fe79631025e890849b7deb6dc830e31a3c571393",
"expires_in": null,
- "revoked_at": "2015-04-07T20:51:38.223Z",
- "created_at": "2015-04-02T22:35:55.225Z",
- "oauth_access_token_id": 11,
- "application_name": "Great FUN - Connexions",
- "application_owner_id": 9,
- "application_owner_type": "Program",
- "program_id": 106,
- "program_name": "Great FUN",
- "program_customer_identifier": "10792",
- "program_start_dts": "2012-04-12T21:10:31.633Z",
- "program_end_dts": "2025-12-31T00:00:00.000Z",
- "organization_id": 100,
- "organization_name": "AFFINION",
- "organization_customer_identifier": "100",
- "filter_id": 3,
- "filter_name": "All Categories except EDUCATION ONLY",
- "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]}}]}]}",
- "program_filter_id": 2,
- "domains": [
-
- ],
- "application_scopes": [
- "api",
- "amt",
- "docs",
- "internal"
- ],
- "token_status": "revoked",
- "links": {
- "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/11"
- }
- },
- {
- "application_id": 9,
- "token": "e09a8a65c9d733656252ce480ce125e37100592adf5449b0570d7ebc3df85b95",
- "expires_in": null,
"revoked_at": null,
- "created_at": "2015-04-07T20:52:03.641Z",
- "oauth_access_token_id": 501,
- "application_name": "Great FUN - Connexions",
- "application_owner_id": 9,
+ "created_at": "2015-05-04T18:51:26.621Z",
+ "oauth_access_token_id": 523,
+ "application_name": "TCICP Travel Services (pcid:200073)",
+ "application_owner_id": 503,
"application_owner_type": "Program",
- "program_id": 106,
- "program_name": "Great FUN",
- "program_customer_identifier": "10792",
- "program_start_dts": "2012-04-12T21:10:31.633Z",
- "program_end_dts": "2025-12-31T00:00:00.000Z",
- "organization_id": 100,
- "organization_name": "AFFINION",
- "organization_customer_identifier": "100",
- "filter_id": 3,
- "filter_name": "All Categories except EDUCATION ONLY",
- "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]}}]}]}",
- "program_filter_id": 2,
+ "program_id": 253970117,
+ "program_name": "TCICP Travel Services",
+ "program_customer_identifier": "200073",
+ "program_start_dts": "2015-05-04T12:51:07.219Z",
+ "program_end_dts": "2015-12-04T00:00:00.000Z",
+ "organization_id": 2001964,
+ "organization_name": "TCICP Travel Services",
+ "organization_customer_identifier": "2001964",
+ "filter_id": 23,
+ "filter_name": "ACCESS PERKS - PROFESSIONAL (auto, car rental, dining, entertainment/rec, health/beauty, hotel, shopping)",
+ "filter": "{\"offers\":[{\"term\":{\"offer_set\":\"DISCOUNT\"}},{\"bool\":{\"should\":[{\"terms\":{\"categories.category_key\":[51,58,39,59,53,44,45]}},{\"terms\":{\"categories.category_parent_key\":[51,58,39,59,53,44,45]}}]}}],\"categories\":[{\"bool\":{\"should\":[{\"terms\":{\"category_key\":[51,58,39,59,53,44,45]}},{\"terms\":{\"category_parent_key\":[51,58,39,59,53,44,45]}}]}}],\"stores\":[{\"bool\":{\"should\":[{\"terms\":{\"store_categories.category_key\":[51,58,39,59,53,44,45]}},{\"terms\":{\"store_categories.category_parent_key\":[51,58,39,59,53,44,45]}}]}}],\"locations\":[{\"bool\":{\"should\":[{\"terms\":{\"location_categories.category_key\":[51,58,39,59,53,44,45]}},{\"terms\":{\"location_categories.category_parent_key\":[51,58,39,59,53,44,45]}}]}}]}",
+ "program_filter_id": 502,
"domains": [
],
"application_scopes": [
- "api",
- "amt",
- "docs",
- "internal"
+ "api"
],
- "token_status": "valid",
+ "token_status": "inactive",
"links": {
- "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/501"
+ "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/503/access_tokens/523"
}
- },
- {
- "application_id": 9,
- "token": "cfe9e37bb0b3ea4244760291d90216837167e9b0e721585947c123e001319aef",
- "expires_in": null,
- "revoked_at": "2015-04-07T20:52:11.814Z",
- "created_at": "2015-04-07T19:59:16.555Z",
- "oauth_access_token_id": 500,
- "application_name": "Great FUN - Connexions",
- "application_owner_id": 9,
- "application_owner_type": "Program",
- "program_id": 106,
- "program_name": "Great FUN",
- "program_customer_identifier": "10792",
- "program_start_dts": "2012-04-12T21:10:31.633Z",
- "program_end_dts": "2025-12-31T00:00:00.000Z",
- "organization_id": 100,
- "organization_name": "AFFINION",
- "organization_customer_identifier": "100",
- "filter_id": 3,
- "filter_name": "All Categories except EDUCATION ONLY",
- "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]}}]}]}",
- "program_filter_id": 2,
- "domains": [
-
- ],
- "application_scopes": [
- "api",
- "amt",
- "docs",
- "internal"
- ],
- "token_status": "revoked",
- "links": {
- "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/500"
- }
- },
- {
- "application_id": 9,
- "token": "ad68ea1539b2cf47d33d3866650b50cb68212c6353b60e9e07921b11b479221c",
- "expires_in": null,
- "revoked_at": "2015-07-09T20:33:30.070Z",
- "created_at": "2015-07-09T19:34:36.800Z",
- "oauth_access_token_id": 3812,
- "application_name": "Great FUN - Connexions",
- "application_owner_id": 9,
- "application_owner_type": "Program",
- "program_id": 106,
- "program_name": "Great FUN",
- "program_customer_identifier": "10792",
- "program_start_dts": "2012-04-12T21:10:31.633Z",
- "program_end_dts": "2025-12-31T00:00:00.000Z",
- "organization_id": 100,
- "organization_name": "AFFINION",
- "organization_customer_identifier": "100",
- "filter_id": 3,
- "filter_name": "All Categories except EDUCATION ONLY",
- "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]}}]}]}",
- "program_filter_id": 2,
- "domains": [
-
- ],
- "application_scopes": [
- "api",
- "amt",
- "docs",
- "internal"
- ],
- "token_status": "revoked",
- "links": {
- "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/3812"
- }
- },
- {
- "application_id": 9,
- "token": "c0c578c72e0a7200403511d55671b793f11eece61cb1b724f81b131bc5f19d66",
- "expires_in": null,
- "revoked_at": null,
- "created_at": "2015-07-28T16:12:19.388Z",
- "oauth_access_token_id": 3831,
- "application_name": "Great FUN - Connexions",
- "application_owner_id": 9,
- "application_owner_type": "Program",
- "program_id": 106,
- "program_name": "Great FUN",
- "program_customer_identifier": "10792",
- "program_start_dts": "2012-04-12T21:10:31.633Z",
- "program_end_dts": "2025-12-31T00:00:00.000Z",
- "organization_id": 100,
- "organization_name": "AFFINION",
- "organization_customer_identifier": "100",
- "filter_id": 3,
- "filter_name": "All Categories except EDUCATION ONLY",
- "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]}}]}]}",
- "program_filter_id": 2,
- "domains": [
-
- ],
- "application_scopes": [
- "api",
- "amt",
- "docs",
- "internal"
- ],
- "token_status": "valid",
- "links": {
- "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/3831"
- }
}
]
}
http_version:
- recorded_at: Mon, 22 Feb 2016 23:26:15 GMT
+ recorded_at: Thu, 28 Jun 2018 20:29:09 GMT
- request:
method: get
- uri: https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens?per_page=1
+ uri: https://token-stage.adcrws.com/v1/oauth_applications/503/access_tokens?per_page=1
body:
encoding: US-ASCII
string: ''
headers:
Access-Token:
@@ -256,19 +111,17 @@
status:
code: 200
message: OK
headers:
Server:
- - nginx/1.8.0
+ - nginx/1.12.2
Date:
- - Mon, 22 Feb 2016 23:27:10 GMT
+ - Sun, 01 Jul 2018 04:19:31 GMT
Content-Type:
- application/json
Transfer-Encoding:
- chunked
- Connection:
- - keep-alive
X-Frame-Options:
- SAMEORIGIN
X-Xss-Protection:
- 1; mode=block
X-Content-Type-Options:
@@ -279,210 +132,67 @@
- GET
Access-Control-Allow-Headers:
- Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
Access-Control-Max-Age:
- '1728000'
+ X-Ratelimit-Limit:
+ - '10000'
+ X-Ratelimit-Remaining:
+ - '9907'
Etag:
- - '"d74f503c9be84187ed53874b43e3b80a"'
+ - '"b113acf22d793bbb1cf58213d86e2fe7"'
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- - eb9feb81-9de5-4a38-a4f9-80c07a3985a3
+ - eceae308-3501-42ad-924d-37e6f508054f
X-Runtime:
- - '0.125284'
+ - '0.044151'
body:
encoding: UTF-8
string: |-
{
"access_tokens": [
{
- "application_id": 9,
- "token": "68214283dc396fcb2f5c6442dae8c461718be2df77a19cc822f1f4f2953e13f3",
+ "application_id": 503,
+ "token": "c30f1d24a8c10e0fd3e36bc4fe79631025e890849b7deb6dc830e31a3c571393",
"expires_in": null,
- "revoked_at": "2015-04-07T20:51:38.223Z",
- "created_at": "2015-04-02T22:35:55.225Z",
- "oauth_access_token_id": 11,
- "application_name": "Great FUN - Connexions",
- "application_owner_id": 9,
- "application_owner_type": "Program",
- "program_id": 106,
- "program_name": "Great FUN",
- "program_customer_identifier": "10792",
- "program_start_dts": "2012-04-12T21:10:31.633Z",
- "program_end_dts": "2025-12-31T00:00:00.000Z",
- "organization_id": 100,
- "organization_name": "AFFINION",
- "organization_customer_identifier": "100",
- "filter_id": 3,
- "filter_name": "All Categories except EDUCATION ONLY",
- "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]}}]}]}",
- "program_filter_id": 2,
- "domains": [
-
- ],
- "application_scopes": [
- "api",
- "amt",
- "docs",
- "internal"
- ],
- "token_status": "revoked",
- "links": {
- "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/11"
- }
- },
- {
- "application_id": 9,
- "token": "e09a8a65c9d733656252ce480ce125e37100592adf5449b0570d7ebc3df85b95",
- "expires_in": null,
"revoked_at": null,
- "created_at": "2015-04-07T20:52:03.641Z",
- "oauth_access_token_id": 501,
- "application_name": "Great FUN - Connexions",
- "application_owner_id": 9,
+ "created_at": "2015-05-04T18:51:26.621Z",
+ "oauth_access_token_id": 523,
+ "application_name": "TCICP Travel Services (pcid:200073)",
+ "application_owner_id": 503,
"application_owner_type": "Program",
- "program_id": 106,
- "program_name": "Great FUN",
- "program_customer_identifier": "10792",
- "program_start_dts": "2012-04-12T21:10:31.633Z",
- "program_end_dts": "2025-12-31T00:00:00.000Z",
- "organization_id": 100,
- "organization_name": "AFFINION",
- "organization_customer_identifier": "100",
- "filter_id": 3,
- "filter_name": "All Categories except EDUCATION ONLY",
- "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]}}]}]}",
- "program_filter_id": 2,
+ "program_id": 253970117,
+ "program_name": "TCICP Travel Services",
+ "program_customer_identifier": "200073",
+ "program_start_dts": "2015-05-04T12:51:07.219Z",
+ "program_end_dts": "2015-12-04T00:00:00.000Z",
+ "organization_id": 2001964,
+ "organization_name": "TCICP Travel Services",
+ "organization_customer_identifier": "2001964",
+ "filter_id": 23,
+ "filter_name": "ACCESS PERKS - PROFESSIONAL (auto, car rental, dining, entertainment/rec, health/beauty, hotel, shopping)",
+ "filter": "{\"offers\":[{\"term\":{\"offer_set\":\"DISCOUNT\"}},{\"bool\":{\"should\":[{\"terms\":{\"categories.category_key\":[51,58,39,59,53,44,45]}},{\"terms\":{\"categories.category_parent_key\":[51,58,39,59,53,44,45]}}]}}],\"categories\":[{\"bool\":{\"should\":[{\"terms\":{\"category_key\":[51,58,39,59,53,44,45]}},{\"terms\":{\"category_parent_key\":[51,58,39,59,53,44,45]}}]}}],\"stores\":[{\"bool\":{\"should\":[{\"terms\":{\"store_categories.category_key\":[51,58,39,59,53,44,45]}},{\"terms\":{\"store_categories.category_parent_key\":[51,58,39,59,53,44,45]}}]}}],\"locations\":[{\"bool\":{\"should\":[{\"terms\":{\"location_categories.category_key\":[51,58,39,59,53,44,45]}},{\"terms\":{\"location_categories.category_parent_key\":[51,58,39,59,53,44,45]}}]}}]}",
+ "program_filter_id": 502,
"domains": [
],
"application_scopes": [
- "api",
- "amt",
- "docs",
- "internal"
+ "api"
],
- "token_status": "valid",
+ "token_status": "inactive",
"links": {
- "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/501"
+ "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/503/access_tokens/523"
}
- },
- {
- "application_id": 9,
- "token": "cfe9e37bb0b3ea4244760291d90216837167e9b0e721585947c123e001319aef",
- "expires_in": null,
- "revoked_at": "2015-04-07T20:52:11.814Z",
- "created_at": "2015-04-07T19:59:16.555Z",
- "oauth_access_token_id": 500,
- "application_name": "Great FUN - Connexions",
- "application_owner_id": 9,
- "application_owner_type": "Program",
- "program_id": 106,
- "program_name": "Great FUN",
- "program_customer_identifier": "10792",
- "program_start_dts": "2012-04-12T21:10:31.633Z",
- "program_end_dts": "2025-12-31T00:00:00.000Z",
- "organization_id": 100,
- "organization_name": "AFFINION",
- "organization_customer_identifier": "100",
- "filter_id": 3,
- "filter_name": "All Categories except EDUCATION ONLY",
- "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]}}]}]}",
- "program_filter_id": 2,
- "domains": [
-
- ],
- "application_scopes": [
- "api",
- "amt",
- "docs",
- "internal"
- ],
- "token_status": "revoked",
- "links": {
- "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/500"
- }
- },
- {
- "application_id": 9,
- "token": "ad68ea1539b2cf47d33d3866650b50cb68212c6353b60e9e07921b11b479221c",
- "expires_in": null,
- "revoked_at": "2015-07-09T20:33:30.070Z",
- "created_at": "2015-07-09T19:34:36.800Z",
- "oauth_access_token_id": 3812,
- "application_name": "Great FUN - Connexions",
- "application_owner_id": 9,
- "application_owner_type": "Program",
- "program_id": 106,
- "program_name": "Great FUN",
- "program_customer_identifier": "10792",
- "program_start_dts": "2012-04-12T21:10:31.633Z",
- "program_end_dts": "2025-12-31T00:00:00.000Z",
- "organization_id": 100,
- "organization_name": "AFFINION",
- "organization_customer_identifier": "100",
- "filter_id": 3,
- "filter_name": "All Categories except EDUCATION ONLY",
- "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]}}]}]}",
- "program_filter_id": 2,
- "domains": [
-
- ],
- "application_scopes": [
- "api",
- "amt",
- "docs",
- "internal"
- ],
- "token_status": "revoked",
- "links": {
- "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/3812"
- }
- },
- {
- "application_id": 9,
- "token": "c0c578c72e0a7200403511d55671b793f11eece61cb1b724f81b131bc5f19d66",
- "expires_in": null,
- "revoked_at": null,
- "created_at": "2015-07-28T16:12:19.388Z",
- "oauth_access_token_id": 3831,
- "application_name": "Great FUN - Connexions",
- "application_owner_id": 9,
- "application_owner_type": "Program",
- "program_id": 106,
- "program_name": "Great FUN",
- "program_customer_identifier": "10792",
- "program_start_dts": "2012-04-12T21:10:31.633Z",
- "program_end_dts": "2025-12-31T00:00:00.000Z",
- "organization_id": 100,
- "organization_name": "AFFINION",
- "organization_customer_identifier": "100",
- "filter_id": 3,
- "filter_name": "All Categories except EDUCATION ONLY",
- "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]}}]}]}",
- "program_filter_id": 2,
- "domains": [
-
- ],
- "application_scopes": [
- "api",
- "amt",
- "docs",
- "internal"
- ],
- "token_status": "valid",
- "links": {
- "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/3831"
- }
}
]
}
http_version:
- recorded_at: Mon, 22 Feb 2016 23:27:13 GMT
+ recorded_at: Sun, 01 Jul 2018 04:19:31 GMT
- request:
method: get
- uri: https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens?per_page=1
+ uri: https://token-stage.adcrws.com/v1/oauth_applications/503/access_tokens?per_page=1
body:
encoding: US-ASCII
string: ''
headers:
Access-Token:
@@ -495,19 +205,17 @@
status:
code: 200
message: OK
headers:
Server:
- - nginx/1.8.0
+ - nginx/1.12.2
Date:
- - Mon, 22 Feb 2016 23:28:34 GMT
+ - Sun, 01 Jul 2018 04:24:24 GMT
Content-Type:
- application/json
Transfer-Encoding:
- chunked
- Connection:
- - keep-alive
X-Frame-Options:
- SAMEORIGIN
X-Xss-Protection:
- 1; mode=block
X-Content-Type-Options:
@@ -518,203 +226,60 @@
- GET
Access-Control-Allow-Headers:
- Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
Access-Control-Max-Age:
- '1728000'
+ X-Ratelimit-Limit:
+ - '10000'
+ X-Ratelimit-Remaining:
+ - '9891'
Etag:
- - '"d74f503c9be84187ed53874b43e3b80a"'
+ - '"b113acf22d793bbb1cf58213d86e2fe7"'
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- - 819796e1-df0d-4c64-b24b-b9886f4de218
+ - 005a6000-fa70-4ba3-98b1-e3770ef9cece
X-Runtime:
- - '0.116815'
+ - '0.039355'
body:
encoding: UTF-8
string: |-
{
"access_tokens": [
{
- "application_id": 9,
- "token": "68214283dc396fcb2f5c6442dae8c461718be2df77a19cc822f1f4f2953e13f3",
+ "application_id": 503,
+ "token": "c30f1d24a8c10e0fd3e36bc4fe79631025e890849b7deb6dc830e31a3c571393",
"expires_in": null,
- "revoked_at": "2015-04-07T20:51:38.223Z",
- "created_at": "2015-04-02T22:35:55.225Z",
- "oauth_access_token_id": 11,
- "application_name": "Great FUN - Connexions",
- "application_owner_id": 9,
- "application_owner_type": "Program",
- "program_id": 106,
- "program_name": "Great FUN",
- "program_customer_identifier": "10792",
- "program_start_dts": "2012-04-12T21:10:31.633Z",
- "program_end_dts": "2025-12-31T00:00:00.000Z",
- "organization_id": 100,
- "organization_name": "AFFINION",
- "organization_customer_identifier": "100",
- "filter_id": 3,
- "filter_name": "All Categories except EDUCATION ONLY",
- "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]}}]}]}",
- "program_filter_id": 2,
- "domains": [
-
- ],
- "application_scopes": [
- "api",
- "amt",
- "docs",
- "internal"
- ],
- "token_status": "revoked",
- "links": {
- "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/11"
- }
- },
- {
- "application_id": 9,
- "token": "e09a8a65c9d733656252ce480ce125e37100592adf5449b0570d7ebc3df85b95",
- "expires_in": null,
"revoked_at": null,
- "created_at": "2015-04-07T20:52:03.641Z",
- "oauth_access_token_id": 501,
- "application_name": "Great FUN - Connexions",
- "application_owner_id": 9,
+ "created_at": "2015-05-04T18:51:26.621Z",
+ "oauth_access_token_id": 523,
+ "application_name": "TCICP Travel Services (pcid:200073)",
+ "application_owner_id": 503,
"application_owner_type": "Program",
- "program_id": 106,
- "program_name": "Great FUN",
- "program_customer_identifier": "10792",
- "program_start_dts": "2012-04-12T21:10:31.633Z",
- "program_end_dts": "2025-12-31T00:00:00.000Z",
- "organization_id": 100,
- "organization_name": "AFFINION",
- "organization_customer_identifier": "100",
- "filter_id": 3,
- "filter_name": "All Categories except EDUCATION ONLY",
- "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]}}]}]}",
- "program_filter_id": 2,
+ "program_id": 253970117,
+ "program_name": "TCICP Travel Services",
+ "program_customer_identifier": "200073",
+ "program_start_dts": "2015-05-04T12:51:07.219Z",
+ "program_end_dts": "2015-12-04T00:00:00.000Z",
+ "organization_id": 2001964,
+ "organization_name": "TCICP Travel Services",
+ "organization_customer_identifier": "2001964",
+ "filter_id": 23,
+ "filter_name": "ACCESS PERKS - PROFESSIONAL (auto, car rental, dining, entertainment/rec, health/beauty, hotel, shopping)",
+ "filter": "{\"offers\":[{\"term\":{\"offer_set\":\"DISCOUNT\"}},{\"bool\":{\"should\":[{\"terms\":{\"categories.category_key\":[51,58,39,59,53,44,45]}},{\"terms\":{\"categories.category_parent_key\":[51,58,39,59,53,44,45]}}]}}],\"categories\":[{\"bool\":{\"should\":[{\"terms\":{\"category_key\":[51,58,39,59,53,44,45]}},{\"terms\":{\"category_parent_key\":[51,58,39,59,53,44,45]}}]}}],\"stores\":[{\"bool\":{\"should\":[{\"terms\":{\"store_categories.category_key\":[51,58,39,59,53,44,45]}},{\"terms\":{\"store_categories.category_parent_key\":[51,58,39,59,53,44,45]}}]}}],\"locations\":[{\"bool\":{\"should\":[{\"terms\":{\"location_categories.category_key\":[51,58,39,59,53,44,45]}},{\"terms\":{\"location_categories.category_parent_key\":[51,58,39,59,53,44,45]}}]}}]}",
+ "program_filter_id": 502,
"domains": [
],
"application_scopes": [
- "api",
- "amt",
- "docs",
- "internal"
+ "api"
],
- "token_status": "valid",
+ "token_status": "inactive",
"links": {
- "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/501"
+ "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/503/access_tokens/523"
}
- },
- {
- "application_id": 9,
- "token": "cfe9e37bb0b3ea4244760291d90216837167e9b0e721585947c123e001319aef",
- "expires_in": null,
- "revoked_at": "2015-04-07T20:52:11.814Z",
- "created_at": "2015-04-07T19:59:16.555Z",
- "oauth_access_token_id": 500,
- "application_name": "Great FUN - Connexions",
- "application_owner_id": 9,
- "application_owner_type": "Program",
- "program_id": 106,
- "program_name": "Great FUN",
- "program_customer_identifier": "10792",
- "program_start_dts": "2012-04-12T21:10:31.633Z",
- "program_end_dts": "2025-12-31T00:00:00.000Z",
- "organization_id": 100,
- "organization_name": "AFFINION",
- "organization_customer_identifier": "100",
- "filter_id": 3,
- "filter_name": "All Categories except EDUCATION ONLY",
- "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]}}]}]}",
- "program_filter_id": 2,
- "domains": [
-
- ],
- "application_scopes": [
- "api",
- "amt",
- "docs",
- "internal"
- ],
- "token_status": "revoked",
- "links": {
- "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/500"
- }
- },
- {
- "application_id": 9,
- "token": "ad68ea1539b2cf47d33d3866650b50cb68212c6353b60e9e07921b11b479221c",
- "expires_in": null,
- "revoked_at": "2015-07-09T20:33:30.070Z",
- "created_at": "2015-07-09T19:34:36.800Z",
- "oauth_access_token_id": 3812,
- "application_name": "Great FUN - Connexions",
- "application_owner_id": 9,
- "application_owner_type": "Program",
- "program_id": 106,
- "program_name": "Great FUN",
- "program_customer_identifier": "10792",
- "program_start_dts": "2012-04-12T21:10:31.633Z",
- "program_end_dts": "2025-12-31T00:00:00.000Z",
- "organization_id": 100,
- "organization_name": "AFFINION",
- "organization_customer_identifier": "100",
- "filter_id": 3,
- "filter_name": "All Categories except EDUCATION ONLY",
- "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]}}]}]}",
- "program_filter_id": 2,
- "domains": [
-
- ],
- "application_scopes": [
- "api",
- "amt",
- "docs",
- "internal"
- ],
- "token_status": "revoked",
- "links": {
- "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/3812"
- }
- },
- {
- "application_id": 9,
- "token": "c0c578c72e0a7200403511d55671b793f11eece61cb1b724f81b131bc5f19d66",
- "expires_in": null,
- "revoked_at": null,
- "created_at": "2015-07-28T16:12:19.388Z",
- "oauth_access_token_id": 3831,
- "application_name": "Great FUN - Connexions",
- "application_owner_id": 9,
- "application_owner_type": "Program",
- "program_id": 106,
- "program_name": "Great FUN",
- "program_customer_identifier": "10792",
- "program_start_dts": "2012-04-12T21:10:31.633Z",
- "program_end_dts": "2025-12-31T00:00:00.000Z",
- "organization_id": 100,
- "organization_name": "AFFINION",
- "organization_customer_identifier": "100",
- "filter_id": 3,
- "filter_name": "All Categories except EDUCATION ONLY",
- "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]}}]}]}",
- "program_filter_id": 2,
- "domains": [
-
- ],
- "application_scopes": [
- "api",
- "amt",
- "docs",
- "internal"
- ],
- "token_status": "valid",
- "links": {
- "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/3831"
- }
}
]
}
http_version:
- recorded_at: Mon, 22 Feb 2016 23:28:36 GMT
-recorded_with: VCR 3.0.1
+ recorded_at: Sun, 01 Jul 2018 04:24:24 GMT
+recorded_with: VCR 4.0.0