--- http_interactions: - 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: - Thu, 06 Aug 2015 21:04:49 GMT Etag: - '"0fb387c8aa3518c772103baf04d09005"' Server: - nginx/1.6.2 Strict-Transport-Security: - max-age=31536000 X-Content-Type-Options: - nosniff X-Frame-Options: - SAMEORIGIN X-Request-Id: - b98fe543-f3d7-4c96-a6fa-894064cf58cc X-Runtime: - '0.050157' X-Xss-Protection: - 1; mode=block Content-Length: - '1691' Connection: - keep-alive body: encoding: UTF-8 string: |- { "access_tokens": [ { "application_id": 22, "token": "e4db3fb9a054e78807c431e837c49a59553c73204de91d404fe43d12c247f805", "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, "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": 95, "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: Thu, 06 Aug 2015 21:04:49 GMT - request: method: get uri: https://token-demo.adcrws.com/v1/oauth_applications/22/access_tokens/e4db3fb9a054e78807c431e837c49a59553c73204de91d404fe43d12c247f805 body: encoding: US-ASCII string: '' headers: Access-Token: - token_without_limit 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: - Thu, 06 Aug 2015 21:16:10 GMT Server: - nginx/1.6.2 Strict-Transport-Security: - max-age=31536000 X-Content-Type-Options: - nosniff X-Frame-Options: - SAMEORIGIN X-Request-Id: - b1e8eb4c-4662-4cae-8a3b-7e55504155e9 X-Runtime: - '0.037094' X-Xss-Protection: - 1; mode=block Content-Length: - '63' Connection: - keep-alive body: encoding: UTF-8 string: |- { "message": "Access Token was not found.", "status": 422 } http_version: recorded_at: Thu, 06 Aug 2015 21:16:10 GMT - request: method: get uri: https://token-demo.adcrws.com/v1/oauth_applications/22/access_tokens/43 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:12 GMT Etag: - '"ec970e995d044f34d7f17f46f152706e"' Server: - nginx/1.6.2 X-Content-Type-Options: - nosniff X-Frame-Options: - SAMEORIGIN X-Request-Id: - 86b75dee-e559-4d38-b4e2-2bbc1a8f7ca1 X-Runtime: - '0.048038' X-Xss-Protection: - 1; mode=block Content-Length: - '1569' Connection: - keep-alive body: encoding: UTF-8 string: |- { "access_tokens": [ { "application_id": 22, "token": "e4db3fb9a054e78807c431e837c49a59553c73204de91d404fe43d12c247f805", "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, "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": 95, "domains": [ ], "application_scopes": [ "api", "docs" ], "token_status": "valid" } ] } http_version: recorded_at: Fri, 11 Sep 2015 20:33:12 GMT recorded_with: VCR 2.9.3