--- http_interactions: - request: method: get uri: https://token-demo.adcrws.com/v1/oauth_applications?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: - Tue, 04 Aug 2015 21:50:51 GMT Etag: - '"8fa469d403d7fcb9d329bd7519c95141"' Server: - nginx/1.6.2 Strict-Transport-Security: - max-age=31536000 X-Content-Type-Options: - nosniff X-Frame-Options: - SAMEORIGIN X-Request-Id: - 241554ee-0024-41e3-961f-54373b0c8e21 X-Runtime: - '0.043381' X-Xss-Protection: - 1; mode=block Content-Length: - '778' Connection: - keep-alive body: encoding: UTF-8 string: |- { "info": { "total_results": 702, "results_per_page": 1, "current_page": 1, "total_pages": 702 }, "oauth_applications": [ { "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", "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": { "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" }, "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: - Wed, 12 Aug 2015 17:46:36 GMT Etag: - '"bf1afd7f0dde6cceb86c0e054f295a6b"' Server: - nginx/1.6.2 Strict-Transport-Security: - max-age=31536000 X-Content-Type-Options: - nosniff X-Frame-Options: - SAMEORIGIN X-Request-Id: - 1fee0c9f-a520-49f4-a48e-eb88a2a640ad X-Runtime: - '0.014374' X-Xss-Protection: - 1; mode=block Content-Length: - '1976' Connection: - keep-alive body: encoding: UTF-8 string: |- { "info": { "total_results": 1067, "results_per_page": 1, "current_page": 1, "total_pages": 1067 }, "oauth_tokens": [ { "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", "links": { "show_oauth_token": "http://token-demo.adcrws.com/v1/tokens/fcf4e7ee693a61155d1a40a0ca7577cc95ec785742a0ca295503185e290711e4" } } ], "links": { "next_page": "https://token-demo.adcrws.com/v1/tokens?page=2&per_page=1" } } http_version: recorded_at: Wed, 12 Aug 2015 17:46:36 GMT recorded_with: VCR 2.9.3