test/fixtures/token_find.yml in access-2.0.7 vs test/fixtures/token_find.yml in access-2.0.8
- old
+ new
@@ -1,81 +1,22 @@
---
http_interactions:
- request:
method: get
- uri: https://token-demo.adcrws.com/v1/tokens/941
+ uri: https://token-demo.adcrws.com/v1/tokens/6a83e8e361cdd3eba145ccbabf05e65e8f3fa15544f808caa44aaf7f43e13e1f
body:
encoding: US-ASCII
string: ''
headers:
Access-Token:
- - token_without_limit
+ - token_without_filters
Content-Type:
- application/json
Accept:
- application/json
response:
status:
- code: 422
- message: Unprocessable Entity
- 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:
- - no-cache
- Content-Type:
- - application/json
- Date:
- - Fri, 07 Aug 2015 16:34:02 GMT
- Server:
- - nginx/1.6.2
- Strict-Transport-Security:
- - max-age=31536000
- X-Content-Type-Options:
- - nosniff
- X-Frame-Options:
- - SAMEORIGIN
- X-Request-Id:
- - 16d445f1-8383-46da-b02a-75849536b08b
- X-Runtime:
- - '0.014046'
- X-Xss-Protection:
- - 1; mode=block
- Content-Length:
- - '56'
- Connection:
- - keep-alive
- body:
- encoding: UTF-8
- string: |-
- {
- "message": "Token not found: 941",
- "status": 422
- }
- http_version:
- recorded_at: Fri, 07 Aug 2015 16:34:02 GMT
-- request:
- method: get
- uri: https://token-demo.adcrws.com/v1/tokens/ec394658d69d9aea0d6de68a51b801523dac578caf91ae4d9fbc5fe9a1ffcd33
- 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
@@ -88,337 +29,67 @@
Cache-Control:
- max-age=0, private, must-revalidate
Content-Type:
- application/json
Date:
- - Fri, 07 Aug 2015 16:56:22 GMT
+ - Wed, 16 Sep 2015 19:54:09 GMT
Etag:
- - '"2e3fd95c8eccb9e493ba6f48dfd991e3"'
+ - '"394386753817095196c45e221b2139ff"'
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:
+ - '960'
X-Request-Id:
- - ea7fd0cf-b13f-4f3a-8cb2-5f1d52c8c687
+ - 80f2cba9-6172-451c-9e8c-7f2b548dcd02
X-Runtime:
- - '0.011826'
+ - '0.015326'
X-Xss-Protection:
- 1; mode=block
Content-Length:
- - '1473'
+ - '979'
Connection:
- keep-alive
body:
encoding: UTF-8
string: |-
{
"oauth_token": {
- "application_id": 824,
- "token": "ec394658d69d9aea0d6de68a51b801523dac578caf91ae4d9fbc5fe9a1ffcd33",
+ "application_id": 837,
+ "token": "6a83e8e361cdd3eba145ccbabf05e65e8f3fa15544f808caa44aaf7f43e13e1f",
"expires_in": null,
"revoked_at": null,
- "created_at": "2015-08-04T10:14:54.011-06:00",
- "oauth_access_token_id": 941,
- "application_name": "Savings.com (pcid:200089)",
- "application_owner_id": 235589788,
+ "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": 235589788,
- "program_name": "Savings.com",
- "program_customer_identifier": "200089",
- "program_start_dts": "2015-08-04T10:15:40.012-06:00",
- "program_end_dts": "2018-08-04T10:15:40.012-06:00",
- "organization_id": 2002086,
- "organization_name": "Savings.com",
- "organization_customer_identifier": "2002086",
- "filter_id": 38,
- "filter_name": "All Categories except EDUCATION ONLY",
- "filter": "{\"offers\":[{\"not\":{\"or\":[{\"terms\":{\"categories.category_key\":[1113]}},{\"terms\":{\"categories.category_parent_key\":[1113]}}]}}],\"categories\":[{\"not\":{\"or\":[{\"terms\":{\"category_key\":[1113]}},{\"terms\":{\"category_parent_key\":[1113]}}]}}],\"stores\":[{\"not\":{\"or\":[{\"terms\":{\"store_categories.category_key\":[1113]}},{\"terms\":{\"store_categories.category_parent_key\":[1113]}}]}}]}",
- "program_filter_id": 157,
- "domains": [
- "*.showitandsave.com"
- ],
- "application_scopes": [
- "api",
- "docs"
- ],
- "indexed_at": "2015-08-04T19:20:08.365Z",
- "token_status": "valid"
- }
- }
- http_version:
- recorded_at: Fri, 07 Aug 2015 16:56:23 GMT
-- request:
- method: get
- uri: https://token-demo.adcrws.com/v1/tokens/fcf4e7ee693a61155d1a40a0ca7577cc95ec785742a0ca295503185e290711e4
- 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, 12 Aug 2015 17:46:36 GMT
- Etag:
- - '"459e7da3098aceaf5599a480d73ceccd"'
- Server:
- - nginx/1.6.2
- Strict-Transport-Security:
- - max-age=31536000
- X-Content-Type-Options:
- - nosniff
- X-Frame-Options:
- - SAMEORIGIN
- X-Request-Id:
- - 867adab5-e81f-455d-8b52-c010560664c7
- X-Runtime:
- - '0.014934'
- X-Xss-Protection:
- - 1; mode=block
- Content-Length:
- - '1530'
- Connection:
- - keep-alive
- body:
- encoding: UTF-8
- string: |-
- {
- "oauth_token": {
- "application_id": 825,
- "token": "fcf4e7ee693a61155d1a40a0ca7577cc95ec785742a0ca295503185e290711e4",
- "expires_in": null,
- "revoked_at": null,
- "created_at": "2015-08-11T15:54:04.086-06:00",
- "oauth_access_token_id": 942,
- "application_name": "Loylogic (pcid:200090)",
- "application_owner_id": 235589794,
- "application_owner_type": "Program",
- "program_id": 235589794,
- "program_name": "Loylogic",
- "program_customer_identifier": "200090",
- "program_start_dts": "2015-08-11T15:54:45.783-06:00",
- "program_end_dts": "2018-08-11T15:54:45.783-06:00",
- "organization_id": 2001157,
- "organization_name": "Loylogic",
- "organization_customer_identifier": "2001157",
- "filter_id": 35,
- "filter_name": "Dining, Entertainment, Health/Beauty, Hotel, Services, Shopping",
- "filter": "{\"offers\":[{\"or\":[{\"terms\":{\"categories.category_key\":[39,59,53,44,50,45]}},{\"terms\":{\"categories.category_parent_key\":[39,59,53,44,50,45]}}]}],\"categories\":[{\"or\":[{\"terms\":{\"category_key\":[39,59,53,44,50,45]}},{\"terms\":{\"category_parent_key\":[39,59,53,44,50,45]}}]}],\"stores\":[{\"or\":[{\"terms\":{\"store_categories.category_key\":[39,59,53,44,50,45]}},{\"terms\":{\"store_categories.category_parent_key\":[39,59,53,44,50,45]}}]}]}",
- "program_filter_id": 158,
- "domains": [
-
- ],
- "application_scopes": [
- "api",
- "docs",
- "internal"
- ],
- "indexed_at": "2015-08-12T14:08:41.744Z",
- "token_status": "valid"
- }
- }
- http_version:
- recorded_at: Wed, 12 Aug 2015 17:46:36 GMT
-- request:
- method: get
- uri: https://token-demo.adcrws.com/v1/tokens/aa6f03c7f3a497fea502bf97fe72817b8e20d7dd30919c237e14ed4fdf38cb4d
- 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:
- - Thu, 27 Aug 2015 20:17:43 GMT
- Etag:
- - '"0b331a895a257d29aff66f2fd7971963"'
- Server:
- - nginx/1.6.2
- Strict-Transport-Security:
- - max-age=31536000
- X-Content-Type-Options:
- - nosniff
- X-Frame-Options:
- - SAMEORIGIN
- X-Request-Id:
- - 0d9d878b-dc0c-4db5-93c8-a37fa60fc7d7
- X-Runtime:
- - '0.013664'
- X-Xss-Protection:
- - 1; mode=block
- Content-Length:
- - '1015'
- Connection:
- - keep-alive
- body:
- encoding: UTF-8
- string: |-
- {
- "oauth_token": {
- "application_id": 831,
- "token": "aa6f03c7f3a497fea502bf97fe72817b8e20d7dd30919c237e14ed4fdf38cb4d",
- "expires_in": null,
- "revoked_at": null,
- "created_at": "2015-08-25T14:06:53.316-06:00",
- "oauth_access_token_id": 954,
- "application_name": "RWS API - No Filters No Limit (pcid:200156)",
- "application_owner_id": 235589813,
- "application_owner_type": "Program",
- "program_id": 235589813,
- "program_name": "RWS API - No Filters No Limit",
- "program_customer_identifier": "200156",
- "program_start_dts": "2015-08-25T13:21:27.622-06:00",
- "program_end_dts": "2018-08-25T13:21:27.622-06:00",
- "organization_id": 160,
- "organization_name": "Access Development",
- "organization_customer_identifier": "160",
+ "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": [
],
- "indexed_at": "2015-08-25T20:09:31.012Z",
+ "indexed_at": "2015-09-16T17:50:06.034Z",
"token_status": "valid"
}
}
http_version:
- recorded_at: Thu, 27 Aug 2015 20:17:44 GMT
-- request:
- method: get
- uri: https://token-demo.adcrws.com/v1/tokens/fb6e8034ec9970144e4e68eb3c8c7e84041695626eb3bbeac53a8335bf4cba68
- 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:08 GMT
- Etag:
- - '"93cb5c6783a6c532d926e52e793451af"'
- Server:
- - nginx/1.6.2
- X-Content-Type-Options:
- - nosniff
- X-Frame-Options:
- - SAMEORIGIN
- X-Request-Id:
- - 9eb7291d-261f-41db-a4a3-777a44a5809e
- X-Runtime:
- - '0.016039'
- X-Xss-Protection:
- - 1; mode=block
- Transfer-Encoding:
- - chunked
- Connection:
- - keep-alive
- body:
- encoding: UTF-8
- string: |-
- {
- "oauth_token": {
- "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",
- "token_status": "valid"
- }
- }
- http_version:
- recorded_at: Fri, 11 Sep 2015 20:33:08 GMT
+ recorded_at: Wed, 16 Sep 2015 19:54:09 GMT
recorded_with: VCR 2.9.3