access 2.0.11 → 2.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +1 -1
  3. data/lib/access.rb +1 -0
  4. data/lib/access/api.rb +15 -1
  5. data/lib/access/redemption.rb +26 -0
  6. data/lib/access/response.rb +8 -9
  7. data/lib/access/version.rb +1 -1
  8. data/test/access/filter_test.rb +2 -0
  9. data/test/access/offer_test.rb +20 -2
  10. data/test/access/redeem_test.rb +1 -1
  11. data/test/access/redemption_test.rb +43 -0
  12. data/test/access/report_test.rb +77 -30
  13. data/test/test_helper.rb +5 -3
  14. data/test/vcr/cassettes/all_usage.yml +92 -0
  15. data/test/vcr/cassettes/autocomplete_search.yml +83 -0
  16. data/test/{fixtures → vcr/cassettes}/autocomplete_search_categories.yml +10 -10
  17. data/test/{fixtures → vcr/cassettes}/autocomplete_search_locations.yml +5 -5
  18. data/test/{fixtures → vcr/cassettes}/autocomplete_search_offers.yml +10 -10
  19. data/test/{fixtures → vcr/cassettes}/autocomplete_search_stores.yml +12 -12
  20. data/test/{fixtures → vcr/cassettes}/category_find.yml +7 -7
  21. data/test/{fixtures → vcr/cassettes}/category_search.yml +12 -12
  22. data/test/{fixtures → vcr/cassettes}/category_search_fail_member_key.yml +5 -5
  23. data/test/{fixtures → vcr/cassettes}/filter_find.yml +5 -5
  24. data/test/{fixtures → vcr/cassettes}/filter_search.yml +8 -8
  25. data/test/vcr/cassettes/find_redemption_by_member_key.yml +131 -0
  26. data/test/{fixtures → vcr/cassettes}/location_find.yml +8 -8
  27. data/test/{fixtures → vcr/cassettes}/location_search.yml +9 -9
  28. data/test/{fixtures → vcr/cassettes}/location_search_fail_member_key.yml +5 -5
  29. data/test/vcr/cassettes/member_location_frequent.yml +70 -0
  30. data/test/vcr/cassettes/member_location_recent.yml +70 -0
  31. data/test/vcr/cassettes/member_query_frequent.yml +73 -0
  32. data/test/vcr/cassettes/member_query_recent.yml +73 -0
  33. data/test/vcr/cassettes/national_stores.yml +1966 -0
  34. data/test/{fixtures → vcr/cassettes}/oauth_application_find.yml +5 -5
  35. data/test/{fixtures → vcr/cassettes}/oauth_application_search.yml +8 -8
  36. data/test/{fixtures → vcr/cassettes}/oauth_application_token_find.yml +5 -5
  37. data/test/{fixtures → vcr/cassettes}/oauth_application_token_search.yml +5 -5
  38. data/test/{fixtures → vcr/cassettes}/offer_find.yml +8 -8
  39. data/test/{fixtures → vcr/cassettes}/offer_search.yml +9 -9
  40. data/test/{fixtures → vcr/cassettes}/offer_search_fail_member_key.yml +5 -5
  41. data/test/vcr/cassettes/offer_with_aggregations.yml +935 -0
  42. data/test/vcr/cassettes/redeem_offer_no_redeem_type.yml +38 -0
  43. data/test/vcr/cassettes/redeem_offer_with_redeem_type.yml +38 -0
  44. data/test/vcr/cassettes/search_redemption_by_member_key.yml +762 -0
  45. data/test/vcr/cassettes/search_redemption_by_member_key_without_redemptions.yml +62 -0
  46. data/test/{fixtures → vcr/cassettes}/store_find.yml +5 -5
  47. data/test/{fixtures → vcr/cassettes}/store_search.yml +8 -8
  48. data/test/{fixtures → vcr/cassettes}/store_search_fail_member_key.yml +7 -7
  49. data/test/{fixtures → vcr/cassettes}/subcategory_find.yml +7 -7
  50. data/test/vcr/cassettes/token_find.yml +93 -0
  51. data/test/vcr/cassettes/token_get_first_token.yml +107 -0
  52. data/test/vcr/cassettes/token_search.yml +107 -0
  53. data/test/vcr/cassettes/usage.yml +92 -0
  54. data/test/vcr/cassettes/usage_other.yml +92 -0
  55. data/test/{fixtures → vcr/cassettes}/verify_filter.yml +17 -24
  56. data/test/{fixtures → vcr/cassettes}/verify_token.yml +6 -6
  57. metadata +91 -64
  58. data/test/fixtures/autocomplete_search.yml +0 -82
  59. data/test/fixtures/national_stores.yml +0 -1992
  60. data/test/fixtures/redeem_offer_no_redeem_type.yml +0 -73
  61. data/test/fixtures/token_find.yml +0 -92
  62. data/test/fixtures/token_get_first_token.yml +0 -106
  63. data/test/fixtures/token_search.yml +0 -106
@@ -0,0 +1,62 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://report-demo.adcrws.com/v1/members/API_RUBY_GEM_TEST_NOREDEMPTIONS/offer-redemptions
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Access-Token:
11
+ - ACCESS_TOKEN
12
+ Content-Type:
13
+ - application/json
14
+ Accept:
15
+ - application/json
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Access-Control-Allow-Headers:
22
+ - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
23
+ Access-Control-Allow-Methods:
24
+ - POST, GET, PUT, DELETE, OPTIONS
25
+ Access-Control-Max-Age:
26
+ - '1728000'
27
+ Access-Control-Request-Method:
28
+ - GET
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ Content-Type:
32
+ - application/json
33
+ Date:
34
+ - Tue, 06 Oct 2015 20:04:54 GMT
35
+ Etag:
36
+ - '"3b83a22c2709ca270cea6d0270e50959"'
37
+ Server:
38
+ - nginx/1.6.2
39
+ X-Content-Type-Options:
40
+ - nosniff
41
+ X-Frame-Options:
42
+ - SAMEORIGIN
43
+ X-Request-Id:
44
+ - f6b29c69-5cc9-4575-9139-adb150c8a9ac
45
+ X-Runtime:
46
+ - '0.016671'
47
+ X-Xss-Protection:
48
+ - 1; mode=block
49
+ Content-Length:
50
+ - '57'
51
+ Connection:
52
+ - keep-alive
53
+ body:
54
+ encoding: UTF-8
55
+ string: |-
56
+ {
57
+ "message": "No redemptions found.",
58
+ "status": 200
59
+ }
60
+ http_version:
61
+ recorded_at: Tue, 06 Oct 2015 20:04:54 GMT
62
+ recorded_with: VCR 2.9.3
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  Access-Token:
11
- - token_without_limit
11
+ - ACCESS_TOKEN
12
12
  Content-Type:
13
13
  - application/json
14
14
  Accept:
@@ -31,7 +31,7 @@ http_interactions:
31
31
  Content-Type:
32
32
  - application/json
33
33
  Date:
34
- - Wed, 16 Sep 2015 20:14:03 GMT
34
+ - Tue, 06 Oct 2015 20:04:55 GMT
35
35
  Etag:
36
36
  - '"111a49e6ac3ee7f9c1b0ce782cd4a814"'
37
37
  Server:
@@ -41,9 +41,9 @@ http_interactions:
41
41
  X-Frame-Options:
42
42
  - SAMEORIGIN
43
43
  X-Request-Id:
44
- - edbeb651-7091-4f7d-93ed-774453a6e399
44
+ - ec88f821-c3e5-4e2c-9acd-8d118d7a7d01
45
45
  X-Runtime:
46
- - '0.019484'
46
+ - '0.017582'
47
47
  X-Xss-Protection:
48
48
  - 1; mode=block
49
49
  Content-Length:
@@ -80,5 +80,5 @@ http_interactions:
80
80
  ]
81
81
  }
82
82
  http_version:
83
- recorded_at: Wed, 16 Sep 2015 20:14:03 GMT
83
+ recorded_at: Tue, 06 Oct 2015 20:04:55 GMT
84
84
  recorded_with: VCR 2.9.3
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  Access-Token:
11
- - token_without_limit
11
+ - ACCESS_TOKEN
12
12
  Content-Type:
13
13
  - application/json
14
14
  Accept:
@@ -31,9 +31,9 @@ http_interactions:
31
31
  Content-Type:
32
32
  - application/json
33
33
  Date:
34
- - Wed, 16 Sep 2015 20:14:02 GMT
34
+ - Tue, 06 Oct 2015 20:04:55 GMT
35
35
  Etag:
36
- - '"35ba8d15d7773b5a5f28410567cc8ae8"'
36
+ - '"b84137d9f2a8e67fcf48b1a534003b3f"'
37
37
  Server:
38
38
  - nginx/1.6.2
39
39
  X-Content-Type-Options:
@@ -41,9 +41,9 @@ http_interactions:
41
41
  X-Frame-Options:
42
42
  - SAMEORIGIN
43
43
  X-Request-Id:
44
- - fd31b244-bd1d-4bc8-b6c2-5a70e7636708
44
+ - 8d5338b4-dc67-41c3-9313-b2bbb4a78da5
45
45
  X-Runtime:
46
- - '0.019872'
46
+ - '0.019199'
47
47
  X-Xss-Protection:
48
48
  - 1; mode=block
49
49
  Content-Length:
@@ -55,9 +55,9 @@ http_interactions:
55
55
  string: |-
56
56
  {
57
57
  "info": {
58
- "total_results": 25922,
58
+ "total_results": 25907,
59
59
  "current_page": 1,
60
- "total_pages": 25922,
60
+ "total_pages": 25907,
61
61
  "results_per_page": 1
62
62
  },
63
63
  "stores": [
@@ -91,5 +91,5 @@ http_interactions:
91
91
  }
92
92
  }
93
93
  http_version:
94
- recorded_at: Wed, 16 Sep 2015 20:14:02 GMT
94
+ recorded_at: Tue, 06 Oct 2015 20:04:55 GMT
95
95
  recorded_with: VCR 2.9.3
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  Access-Token:
11
- - token_without_limit
11
+ - ACCESS_TOKEN
12
12
  Content-Type:
13
13
  - application/json
14
14
  Accept:
@@ -31,7 +31,7 @@ http_interactions:
31
31
  Content-Type:
32
32
  - application/json
33
33
  Date:
34
- - Wed, 16 Sep 2015 20:14:02 GMT
34
+ - Tue, 06 Oct 2015 20:04:55 GMT
35
35
  Server:
36
36
  - nginx/1.6.2
37
37
  X-Content-Type-Options:
@@ -39,13 +39,13 @@ http_interactions:
39
39
  X-Frame-Options:
40
40
  - SAMEORIGIN
41
41
  X-Request-Id:
42
- - 4c1f112e-80ee-496e-8023-562761d7d873
42
+ - cf0cf9e6-53c1-4ca4-85d6-e3b7028b28d5
43
43
  X-Runtime:
44
- - '0.010880'
44
+ - '0.010398'
45
45
  X-Xss-Protection:
46
46
  - 1; mode=block
47
- Transfer-Encoding:
48
- - chunked
47
+ Content-Length:
48
+ - '77'
49
49
  Connection:
50
50
  - keep-alive
51
51
  body:
@@ -56,5 +56,5 @@ http_interactions:
56
56
  "status": 401
57
57
  }
58
58
  http_version:
59
- recorded_at: Wed, 16 Sep 2015 20:14:02 GMT
59
+ recorded_at: Tue, 06 Oct 2015 20:04:55 GMT
60
60
  recorded_with: VCR 2.9.3
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  Access-Token:
11
- - token_without_limit
11
+ - ACCESS_TOKEN
12
12
  Content-Type:
13
13
  - application/json
14
14
  Accept:
@@ -31,7 +31,7 @@ http_interactions:
31
31
  Content-Type:
32
32
  - application/json
33
33
  Date:
34
- - Wed, 16 Sep 2015 20:14:09 GMT
34
+ - Tue, 06 Oct 2015 20:04:57 GMT
35
35
  Etag:
36
36
  - '"3b24a9589e2b3a60e10a64353bf6118c"'
37
37
  Server:
@@ -41,13 +41,13 @@ http_interactions:
41
41
  X-Frame-Options:
42
42
  - SAMEORIGIN
43
43
  X-Request-Id:
44
- - 5bdf54b5-7654-4db0-8c8d-db21c5841409
44
+ - b10d9021-a467-420c-82d1-feccec92f1d9
45
45
  X-Runtime:
46
- - '0.029616'
46
+ - '0.026932'
47
47
  X-Xss-Protection:
48
48
  - 1; mode=block
49
- Content-Length:
50
- - '3725'
49
+ Transfer-Encoding:
50
+ - chunked
51
51
  Connection:
52
52
  - keep-alive
53
53
  body:
@@ -144,5 +144,5 @@ http_interactions:
144
144
  ]
145
145
  }
146
146
  http_version:
147
- recorded_at: Wed, 16 Sep 2015 20:14:09 GMT
147
+ recorded_at: Tue, 06 Oct 2015 20:04:57 GMT
148
148
  recorded_with: VCR 2.9.3
@@ -0,0 +1,93 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://token-demo.adcrws.com/v1/tokens/8e4a1810f9c5b63596f239b1d9ce23cbed89c720f36b3e3f6b364a4c6f655834
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Access-Token:
11
+ - ACCESS_TOKEN
12
+ Content-Type:
13
+ - application/json
14
+ Accept:
15
+ - application/json
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Access-Control-Allow-Headers:
22
+ - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
23
+ Access-Control-Allow-Methods:
24
+ - POST, GET, PUT, DELETE, OPTIONS
25
+ Access-Control-Max-Age:
26
+ - '1728000'
27
+ Access-Control-Request-Method:
28
+ - GET
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ Content-Type:
32
+ - application/json
33
+ Date:
34
+ - Tue, 06 Oct 2015 20:05:00 GMT
35
+ Etag:
36
+ - '"004c710ab43109a642e53925eb679657"'
37
+ Server:
38
+ - nginx/1.6.2
39
+ X-Content-Type-Options:
40
+ - nosniff
41
+ X-Frame-Options:
42
+ - SAMEORIGIN
43
+ X-Request-Id:
44
+ - 32f226d3-e978-4e78-8c90-d9d4748db931
45
+ X-Runtime:
46
+ - '0.015083'
47
+ X-Xss-Protection:
48
+ - 1; mode=block
49
+ Content-Length:
50
+ - '2100'
51
+ Connection:
52
+ - keep-alive
53
+ body:
54
+ encoding: UTF-8
55
+ string: |-
56
+ {
57
+ "oauth_token": {
58
+ "application_id": 851,
59
+ "token": "8e4a1810f9c5b63596f239b1d9ce23cbed89c720f36b3e3f6b364a4c6f655834",
60
+ "expires_in": null,
61
+ "revoked_at": null,
62
+ "created_at": "2015-10-05T16:16:29.788-06:00",
63
+ "oauth_access_token_id": 977,
64
+ "application_name": "World Discovery Club (pcid 4485)",
65
+ "application_owner_id": 374,
66
+ "application_owner_type": "Program",
67
+ "program_id": 374,
68
+ "program_name": "World Discovery Club",
69
+ "program_customer_identifier": "4485",
70
+ "program_start_dts": "2012-04-12T15:10:31.634-06:00",
71
+ "program_end_dts": "2018-12-30T17:00:00.000-07:00",
72
+ "organization_id": 2000140,
73
+ "organization_name": "WORLD DISCOVERY, LLC",
74
+ "organization_customer_identifier": "ps3gr",
75
+ "filter_id": 88,
76
+ "filter_name": "Auto, Car Rental, Cruise, Dining, Entertainment, Golf, Health/Beauty, Home/Garden, Hotel, Movies, Services, Shopping, Ski, Travel (No Condo, Education Only)",
77
+ "filter": "{\"offers\":[{\"terms\":{\"offer_set\":[\"DISCOUNT\"]}},{\"or\":[{\"terms\":{\"categories.category_key\":[51,58,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"categories.category_parent_key\":[51,58,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"categories\":[{\"or\":[{\"terms\":{\"category_key\":[51,58,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"category_parent_key\":[51,58,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"stores\":[{\"or\":[{\"terms\":{\"store_categories.category_key\":[51,58,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"store_categories.category_parent_key\":[51,58,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"locations\":[{\"or\":[{\"terms\":{\"location_categories.category_key\":[51,58,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"location_categories.category_parent_key\":[51,58,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}]}",
78
+ "program_filter_id": 184,
79
+ "domains": [
80
+ "*.worlddiscoveryclub.com"
81
+ ],
82
+ "application_scopes": [
83
+ "amt",
84
+ "docs",
85
+ "internal"
86
+ ],
87
+ "indexed_at": "2015-10-06T15:49:13.970Z",
88
+ "token_status": "valid"
89
+ }
90
+ }
91
+ http_version:
92
+ recorded_at: Tue, 06 Oct 2015 20:05:00 GMT
93
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,107 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://token-demo.adcrws.com/v1/tokens?per_page=1
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Access-Token:
11
+ - ACCESS_TOKEN
12
+ Content-Type:
13
+ - application/json
14
+ Accept:
15
+ - application/json
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Access-Control-Allow-Headers:
22
+ - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
23
+ Access-Control-Allow-Methods:
24
+ - POST, GET, PUT, DELETE, OPTIONS
25
+ Access-Control-Max-Age:
26
+ - '1728000'
27
+ Access-Control-Request-Method:
28
+ - GET
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ Content-Type:
32
+ - application/json
33
+ Date:
34
+ - Tue, 06 Oct 2015 20:05:00 GMT
35
+ Etag:
36
+ - '"d313fda6d70e8d6d13040f520277c201"'
37
+ Server:
38
+ - nginx/1.6.2
39
+ X-Content-Type-Options:
40
+ - nosniff
41
+ X-Frame-Options:
42
+ - SAMEORIGIN
43
+ X-Request-Id:
44
+ - 9c571a90-a158-4beb-a268-274a1cfb8a8b
45
+ X-Runtime:
46
+ - '0.017681'
47
+ X-Xss-Protection:
48
+ - 1; mode=block
49
+ Content-Length:
50
+ - '2546'
51
+ Connection:
52
+ - keep-alive
53
+ body:
54
+ encoding: UTF-8
55
+ string: |-
56
+ {
57
+ "info": {
58
+ "total_results": 553,
59
+ "results_per_page": 1,
60
+ "current_page": 1,
61
+ "total_pages": 553
62
+ },
63
+ "oauth_tokens": [
64
+ {
65
+ "application_id": 851,
66
+ "token": "8e4a1810f9c5b63596f239b1d9ce23cbed89c720f36b3e3f6b364a4c6f655834",
67
+ "expires_in": null,
68
+ "revoked_at": null,
69
+ "created_at": "2015-10-05T16:16:29.788-06:00",
70
+ "oauth_access_token_id": 977,
71
+ "application_name": "World Discovery Club (pcid 4485)",
72
+ "application_owner_id": 374,
73
+ "application_owner_type": "Program",
74
+ "program_id": 374,
75
+ "program_name": "World Discovery Club",
76
+ "program_customer_identifier": "4485",
77
+ "program_start_dts": "2012-04-12T15:10:31.634-06:00",
78
+ "program_end_dts": "2018-12-30T17:00:00.000-07:00",
79
+ "organization_id": 2000140,
80
+ "organization_name": "WORLD DISCOVERY, LLC",
81
+ "organization_customer_identifier": "ps3gr",
82
+ "filter_id": 88,
83
+ "filter_name": "Auto, Car Rental, Cruise, Dining, Entertainment, Golf, Health/Beauty, Home/Garden, Hotel, Movies, Services, Shopping, Ski, Travel (No Condo, Education Only)",
84
+ "filter": "{\"offers\":[{\"terms\":{\"offer_set\":[\"DISCOUNT\"]}},{\"or\":[{\"terms\":{\"categories.category_key\":[51,58,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"categories.category_parent_key\":[51,58,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"categories\":[{\"or\":[{\"terms\":{\"category_key\":[51,58,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"category_parent_key\":[51,58,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"stores\":[{\"or\":[{\"terms\":{\"store_categories.category_key\":[51,58,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"store_categories.category_parent_key\":[51,58,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"locations\":[{\"or\":[{\"terms\":{\"location_categories.category_key\":[51,58,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"location_categories.category_parent_key\":[51,58,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}]}",
85
+ "program_filter_id": 184,
86
+ "domains": [
87
+ "*.worlddiscoveryclub.com"
88
+ ],
89
+ "application_scopes": [
90
+ "amt",
91
+ "docs",
92
+ "internal"
93
+ ],
94
+ "indexed_at": "2015-10-06T15:49:13.970Z",
95
+ "token_status": "valid",
96
+ "links": {
97
+ "show_oauth_token": "http://token-demo.adcrws.com/v1/tokens/8e4a1810f9c5b63596f239b1d9ce23cbed89c720f36b3e3f6b364a4c6f655834"
98
+ }
99
+ }
100
+ ],
101
+ "links": {
102
+ "next_page": "https://token-demo.adcrws.com/v1/tokens?page=2&per_page=1"
103
+ }
104
+ }
105
+ http_version:
106
+ recorded_at: Tue, 06 Oct 2015 20:05:00 GMT
107
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,107 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://token-demo.adcrws.com/v1/tokens?per_page=1
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Access-Token:
11
+ - ACCESS_TOKEN
12
+ Content-Type:
13
+ - application/json
14
+ Accept:
15
+ - application/json
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Access-Control-Allow-Headers:
22
+ - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
23
+ Access-Control-Allow-Methods:
24
+ - POST, GET, PUT, DELETE, OPTIONS
25
+ Access-Control-Max-Age:
26
+ - '1728000'
27
+ Access-Control-Request-Method:
28
+ - GET
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ Content-Type:
32
+ - application/json
33
+ Date:
34
+ - Tue, 06 Oct 2015 20:05:01 GMT
35
+ Etag:
36
+ - '"d313fda6d70e8d6d13040f520277c201"'
37
+ Server:
38
+ - nginx/1.6.2
39
+ X-Content-Type-Options:
40
+ - nosniff
41
+ X-Frame-Options:
42
+ - SAMEORIGIN
43
+ X-Request-Id:
44
+ - d44f7016-7c42-478c-ab1f-fd0119dc09c1
45
+ X-Runtime:
46
+ - '0.016711'
47
+ X-Xss-Protection:
48
+ - 1; mode=block
49
+ Content-Length:
50
+ - '2546'
51
+ Connection:
52
+ - keep-alive
53
+ body:
54
+ encoding: UTF-8
55
+ string: |-
56
+ {
57
+ "info": {
58
+ "total_results": 553,
59
+ "results_per_page": 1,
60
+ "current_page": 1,
61
+ "total_pages": 553
62
+ },
63
+ "oauth_tokens": [
64
+ {
65
+ "application_id": 851,
66
+ "token": "8e4a1810f9c5b63596f239b1d9ce23cbed89c720f36b3e3f6b364a4c6f655834",
67
+ "expires_in": null,
68
+ "revoked_at": null,
69
+ "created_at": "2015-10-05T16:16:29.788-06:00",
70
+ "oauth_access_token_id": 977,
71
+ "application_name": "World Discovery Club (pcid 4485)",
72
+ "application_owner_id": 374,
73
+ "application_owner_type": "Program",
74
+ "program_id": 374,
75
+ "program_name": "World Discovery Club",
76
+ "program_customer_identifier": "4485",
77
+ "program_start_dts": "2012-04-12T15:10:31.634-06:00",
78
+ "program_end_dts": "2018-12-30T17:00:00.000-07:00",
79
+ "organization_id": 2000140,
80
+ "organization_name": "WORLD DISCOVERY, LLC",
81
+ "organization_customer_identifier": "ps3gr",
82
+ "filter_id": 88,
83
+ "filter_name": "Auto, Car Rental, Cruise, Dining, Entertainment, Golf, Health/Beauty, Home/Garden, Hotel, Movies, Services, Shopping, Ski, Travel (No Condo, Education Only)",
84
+ "filter": "{\"offers\":[{\"terms\":{\"offer_set\":[\"DISCOUNT\"]}},{\"or\":[{\"terms\":{\"categories.category_key\":[51,58,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"categories.category_parent_key\":[51,58,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"categories\":[{\"or\":[{\"terms\":{\"category_key\":[51,58,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"category_parent_key\":[51,58,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"stores\":[{\"or\":[{\"terms\":{\"store_categories.category_key\":[51,58,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"store_categories.category_parent_key\":[51,58,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"locations\":[{\"or\":[{\"terms\":{\"location_categories.category_key\":[51,58,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"location_categories.category_parent_key\":[51,58,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}]}",
85
+ "program_filter_id": 184,
86
+ "domains": [
87
+ "*.worlddiscoveryclub.com"
88
+ ],
89
+ "application_scopes": [
90
+ "amt",
91
+ "docs",
92
+ "internal"
93
+ ],
94
+ "indexed_at": "2015-10-06T15:49:13.970Z",
95
+ "token_status": "valid",
96
+ "links": {
97
+ "show_oauth_token": "http://token-demo.adcrws.com/v1/tokens/8e4a1810f9c5b63596f239b1d9ce23cbed89c720f36b3e3f6b364a4c6f655834"
98
+ }
99
+ }
100
+ ],
101
+ "links": {
102
+ "next_page": "https://token-demo.adcrws.com/v1/tokens?page=2&per_page=1"
103
+ }
104
+ }
105
+ http_version:
106
+ recorded_at: Tue, 06 Oct 2015 20:05:01 GMT
107
+ recorded_with: VCR 2.9.3