test/fixtures/token_search.yml in access-2.0.7 vs test/fixtures/token_search.yml in access-2.0.8
- old
+ new
@@ -1,16 +1,16 @@
---
http_interactions:
- request:
method: get
- uri: https://token-demo.adcrws.com/v1/oauth_applications?per_page=1
+ uri: https://token-demo.adcrws.com/v1/tokens?per_page=1
body:
encoding: US-ASCII
string: ''
headers:
Access-Token:
- - token_without_limit
+ - token_without_filters
Content-Type:
- application/json
Accept:
- application/json
response:
@@ -29,270 +29,81 @@
Cache-Control:
- max-age=0, private, must-revalidate
Content-Type:
- application/json
Date:
- - Tue, 04 Aug 2015 21:50:51 GMT
+ - Wed, 16 Sep 2015 19:54:10 GMT
Etag:
- - '"8fa469d403d7fcb9d329bd7519c95141"'
+ - '"dc31789028a2cb115aeaeb41f2eebd52"'
Server:
- nginx/1.6.2
- Strict-Transport-Security:
- - max-age=31536000
X-Content-Type-Options:
- nosniff
X-Frame-Options:
- SAMEORIGIN
+ X-Ratelimit-Limit:
+ - '1000'
+ X-Ratelimit-Remaining:
+ - '959'
X-Request-Id:
- - 241554ee-0024-41e3-961f-54373b0c8e21
+ - 343f042d-c35b-446b-8f82-46c48cfc717c
X-Runtime:
- - '0.043381'
+ - '0.017972'
X-Xss-Protection:
- 1; mode=block
Content-Length:
- - '778'
+ - '1417'
Connection:
- keep-alive
body:
encoding: UTF-8
string: |-
{
"info": {
- "total_results": 702,
+ "total_results": 552,
"results_per_page": 1,
"current_page": 1,
- "total_pages": 702
+ "total_pages": 552
},
- "oauth_applications": [
+ "oauth_tokens": [
{
- "id": 22,
- "name": "American Grandparents Association",
- "owner_id": 235308134,
- "owner_type": "Program",
- "domain_urls": null,
- "scopes": [
- "api",
- "docs"
- ],
- "active_tokens": [
- "e4db3fb9a054e78807c431e837c49a59553c73204de91d404fe43d12c247f805"
- ],
- "filter": {
- "filter_id": 18,
- "filter_name": "Grandparents"
- },
- "links": {
- "show_application": "https://token-demo.adcrws.com/v1/oauth_applications/22"
- }
- }
- ],
- "links": {
- "next_page": "https://report-demo.adcrws.com/v1/oauth_applications?page=2"
- }
- }
- http_version:
- recorded_at: Tue, 04 Aug 2015 21:50:51 GMT
-- request:
- method: get
- uri: https://token-demo.adcrws.com/v1/oauth_applications/22/access_tokens?per_page=1
- body:
- encoding: US-ASCII
- string: ''
- headers:
- Access-Token:
- - token_without_limit
- Content-Type:
- - application/json
- Accept:
- - application/json
- response:
- status:
- code: 200
- message: OK
- headers:
- Access-Control-Allow-Headers:
- - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
- Access-Control-Allow-Methods:
- - POST, GET, PUT, DELETE, OPTIONS
- Access-Control-Max-Age:
- - '1728000'
- Access-Control-Request-Method:
- - GET
- Cache-Control:
- - max-age=0, private, must-revalidate
- Content-Type:
- - application/json
- Date:
- - Wed, 05 Aug 2015 20:13:10 GMT
- Etag:
- - '"146748ca69664715e70d06b5a2a46e80"'
- Server:
- - nginx/1.6.2
- Strict-Transport-Security:
- - max-age=31536000
- X-Content-Type-Options:
- - nosniff
- X-Frame-Options:
- - SAMEORIGIN
- X-Request-Id:
- - dd4fc36f-292c-4e7a-8257-1803a56ae929
- X-Runtime:
- - '0.062111'
- X-Xss-Protection:
- - 1; mode=block
- Content-Length:
- - '2806'
- Connection:
- - keep-alive
- body:
- encoding: UTF-8
- string: |-
- {
- "access_tokens": [
- {
- "application_id": 22,
- "token": "e4db3fb9a054e78807c431e837c49a59553c73204de91d404fe43d12c247f805",
+ "application_id": 837,
+ "token": "6a83e8e361cdd3eba145ccbabf05e65e8f3fa15544f808caa44aaf7f43e13e1f",
"expires_in": null,
"revoked_at": null,
- "created_at": "2015-01-21T22:43:31.006Z",
- "oauth_access_token_id": 43,
- "application_name": "American Grandparents Association",
- "application_owner_id": 22,
+ "created_at": "2015-09-16T11:50:27.755-06:00",
+ "oauth_access_token_id": 959,
+ "application_name": "Breakaway Loyalty (pcid: 8983)",
+ "application_owner_id": 487,
"application_owner_type": "Program",
- "program_id": 235308134,
- "program_name": "American Grandparents Association",
- "program_customer_identifier": "102149",
- "program_start_dts": "2015-01-21T15:12:55.570Z",
- "program_end_dts": "2018-01-21T15:12:56.000Z",
- "organization_id": 2001959,
- "organization_name": "American Grandparents Association",
- "organization_customer_identifier": "2001923",
- "filter_id": 18,
- "filter_name": "Grandparents",
- "filter": "{\"offers\":[{\"or\":[{\"terms\":{\"categories.category_key\":[39,44,48,59,1039,54,45,50]}},{\"terms\":{\"categories.category_parent_key\":[39,44,48,59,1039,54,45,50]}}]}],\"categories\":[{\"or\":[{\"terms\":{\"category_key\":[39,44,48,59,1039,54,45,50]}},{\"terms\":{\"category_parent_key\":[39,44,48,59,1039,54,45,50]}}]}],\"stores\":[{\"or\":[{\"terms\":{\"store_categories.category_key\":[39,44,48,59,1039,54,45,50]}},{\"terms\":{\"store_categories.category_parent_key\":[39,44,48,59,1039,54,45,50]}}]}]}",
- "program_filter_id": {
- "filter_id": 18,
- "filter_name": "Grandparents",
- "filter": "---\noffers:\n- or:\n - terms:\n categories.category_key:\n - 39\n - 44\n - 48\n - 59\n - 1039\n - 54\n - 45\n - 50\n - terms:\n categories.category_parent_key:\n - 39\n - 44\n - 48\n - 59\n - 1039\n - 54\n - 45\n - 50\ncategories:\n- or:\n - terms:\n category_key:\n - 39\n - 44\n - 48\n - 59\n - 1039\n - 54\n - 45\n - 50\n - terms:\n category_parent_key:\n - 39\n - 44\n - 48\n - 59\n - 1039\n - 54\n - 45\n - 50\nstores:\n- or:\n - terms:\n store_categories.category_key:\n - 39\n - 44\n - 48\n - 59\n - 1039\n - 54\n - 45\n - 50\n - terms:\n store_categories.category_parent_key:\n - 39\n - 44\n - 48\n - 59\n - 1039\n - 54\n - 45\n - 50\n",
- "modified_dts": "2015-06-03T17:31:13.774Z",
- "created_dts": "2015-02-26T13:18:12.299Z"
- },
+ "program_id": 487,
+ "program_name": "Breakaway Loyalty",
+ "program_customer_identifier": "8983",
+ "program_start_dts": "2012-04-12T15:10:31.634-06:00",
+ "program_end_dts": "2018-12-30T17:00:00.000-07:00",
+ "organization_id": 2000153,
+ "organization_name": "BreakawaLoyalty",
+ "organization_customer_identifier": "WEivv",
+ "filter_id": null,
+ "filter_name": null,
+ "filter": null,
+ "program_filter_id": null,
"domains": [
],
"application_scopes": [
- "api",
- "docs"
- ],
- "token_status": "valid",
- "links": {
- "show_token": "https://token-demo.adcrws.com/v1/oauth_applications/22/access_tokens/43"
- }
- }
- ]
- }
- http_version:
- recorded_at: Wed, 05 Aug 2015 20:13:09 GMT
-- request:
- method: get
- uri: https://token-demo.adcrws.com/v1/tokens?per_page=1
- body:
- encoding: US-ASCII
- string: ''
- headers:
- Access-Token:
- - token_without_limit
- Content-Type:
- - application/json
- Accept:
- - application/json
- response:
- status:
- code: 200
- message: OK
- headers:
- Access-Control-Allow-Headers:
- - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
- Access-Control-Allow-Methods:
- - POST, GET, PUT, DELETE, OPTIONS
- Access-Control-Max-Age:
- - '1728000'
- Access-Control-Request-Method:
- - GET
- Cache-Control:
- - max-age=0, private, must-revalidate
- Content-Type:
- - application/json
- Date:
- - Fri, 11 Sep 2015 20:33:09 GMT
- Etag:
- - '"6535d7ab2445df90a3046154b445f258"'
- Server:
- - nginx/1.6.2
- X-Content-Type-Options:
- - nosniff
- X-Frame-Options:
- - SAMEORIGIN
- X-Request-Id:
- - 1247d75c-a1c1-4267-8c26-b806db2a0c10
- X-Runtime:
- - '0.018412'
- X-Xss-Protection:
- - 1; mode=block
- Transfer-Encoding:
- - chunked
- Connection:
- - keep-alive
- body:
- encoding: UTF-8
- string: |-
- {
- "info": {
- "total_results": 556,
- "results_per_page": 1,
- "current_page": 1,
- "total_pages": 556
- },
- "oauth_tokens": [
- {
- "application_id": 836,
- "token": "fb6e8034ec9970144e4e68eb3c8c7e84041695626eb3bbeac53a8335bf4cba68",
- "expires_in": null,
- "revoked_at": null,
- "created_at": "2015-09-08T11:02:21.256-06:00",
- "oauth_access_token_id": 958,
- "application_name": "Essenza Software (pcid:200110)",
- "application_owner_id": 235589831,
- "application_owner_type": "Program",
- "program_id": 235589831,
- "program_name": "Essenza Software",
- "program_customer_identifier": "200110",
- "program_start_dts": "2015-09-08T11:02:45.215-06:00",
- "program_end_dts": "2018-09-08T11:02:45.215-06:00",
- "organization_id": 2002090,
- "organization_name": "Essenza Software",
- "organization_customer_identifier": "147852",
- "filter_id": 82,
- "filter_name": "Auto, Dining, Entertainment, Golf, Health/Beauty, Home/Garden, Hotel, Movies, Services, Shopping, Travel",
- "filter": "{\"offers\":[{\"terms\":{\"offer_set\":[\"DISCOUNT\"]}},{\"or\":[{\"terms\":{\"categories.category_key\":[51,39,59,48,53,1039,44,56,50,45,38]}},{\"terms\":{\"categories.category_parent_key\":[51,39,59,48,53,1039,44,56,50,45,38]}}]}],\"categories\":[{\"or\":[{\"terms\":{\"category_key\":[51,39,59,48,53,1039,44,56,50,45,38]}},{\"terms\":{\"category_parent_key\":[51,39,59,48,53,1039,44,56,50,45,38]}}]}],\"stores\":[{\"or\":[{\"terms\":{\"store_categories.category_key\":[51,39,59,48,53,1039,44,56,50,45,38]}},{\"terms\":{\"store_categories.category_parent_key\":[51,39,59,48,53,1039,44,56,50,45,38]}}]}],\"locations\":[{\"or\":[{\"terms\":{\"location_categories.category_key\":[51,39,59,48,53,1039,44,56,50,45,38]}},{\"terms\":{\"location_categories.category_parent_key\":[51,39,59,48,53,1039,44,56,50,45,38]}}]}]}",
- "program_filter_id": 168,
- "domains": [
],
- "application_scopes": [
- "api",
- "docs"
- ],
- "indexed_at": "2015-09-08T17:06:31.036Z",
+ "indexed_at": "2015-09-16T17:50:06.034Z",
"token_status": "valid",
"links": {
- "show_oauth_token": "http://token-demo.adcrws.com/v1/tokens/fb6e8034ec9970144e4e68eb3c8c7e84041695626eb3bbeac53a8335bf4cba68"
+ "show_oauth_token": "http://token-demo.adcrws.com/v1/tokens/6a83e8e361cdd3eba145ccbabf05e65e8f3fa15544f808caa44aaf7f43e13e1f"
}
}
],
"links": {
"next_page": "https://token-demo.adcrws.com/v1/tokens?page=2&per_page=1"
}
}
http_version:
- recorded_at: Fri, 11 Sep 2015 20:33:09 GMT
+ recorded_at: Wed, 16 Sep 2015 19:54:10 GMT
recorded_with: VCR 2.9.3