access 2.0.11 → 2.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/lib/access.rb +1 -0
- data/lib/access/api.rb +15 -1
- data/lib/access/redemption.rb +26 -0
- data/lib/access/response.rb +8 -9
- data/lib/access/version.rb +1 -1
- data/test/access/filter_test.rb +2 -0
- data/test/access/offer_test.rb +20 -2
- data/test/access/redeem_test.rb +1 -1
- data/test/access/redemption_test.rb +43 -0
- data/test/access/report_test.rb +77 -30
- data/test/test_helper.rb +5 -3
- data/test/vcr/cassettes/all_usage.yml +92 -0
- data/test/vcr/cassettes/autocomplete_search.yml +83 -0
- data/test/{fixtures → vcr/cassettes}/autocomplete_search_categories.yml +10 -10
- data/test/{fixtures → vcr/cassettes}/autocomplete_search_locations.yml +5 -5
- data/test/{fixtures → vcr/cassettes}/autocomplete_search_offers.yml +10 -10
- data/test/{fixtures → vcr/cassettes}/autocomplete_search_stores.yml +12 -12
- data/test/{fixtures → vcr/cassettes}/category_find.yml +7 -7
- data/test/{fixtures → vcr/cassettes}/category_search.yml +12 -12
- data/test/{fixtures → vcr/cassettes}/category_search_fail_member_key.yml +5 -5
- data/test/{fixtures → vcr/cassettes}/filter_find.yml +5 -5
- data/test/{fixtures → vcr/cassettes}/filter_search.yml +8 -8
- data/test/vcr/cassettes/find_redemption_by_member_key.yml +131 -0
- data/test/{fixtures → vcr/cassettes}/location_find.yml +8 -8
- data/test/{fixtures → vcr/cassettes}/location_search.yml +9 -9
- data/test/{fixtures → vcr/cassettes}/location_search_fail_member_key.yml +5 -5
- data/test/vcr/cassettes/member_location_frequent.yml +70 -0
- data/test/vcr/cassettes/member_location_recent.yml +70 -0
- data/test/vcr/cassettes/member_query_frequent.yml +73 -0
- data/test/vcr/cassettes/member_query_recent.yml +73 -0
- data/test/vcr/cassettes/national_stores.yml +1966 -0
- data/test/{fixtures → vcr/cassettes}/oauth_application_find.yml +5 -5
- data/test/{fixtures → vcr/cassettes}/oauth_application_search.yml +8 -8
- data/test/{fixtures → vcr/cassettes}/oauth_application_token_find.yml +5 -5
- data/test/{fixtures → vcr/cassettes}/oauth_application_token_search.yml +5 -5
- data/test/{fixtures → vcr/cassettes}/offer_find.yml +8 -8
- data/test/{fixtures → vcr/cassettes}/offer_search.yml +9 -9
- data/test/{fixtures → vcr/cassettes}/offer_search_fail_member_key.yml +5 -5
- data/test/vcr/cassettes/offer_with_aggregations.yml +935 -0
- data/test/vcr/cassettes/redeem_offer_no_redeem_type.yml +38 -0
- data/test/vcr/cassettes/redeem_offer_with_redeem_type.yml +38 -0
- data/test/vcr/cassettes/search_redemption_by_member_key.yml +762 -0
- data/test/vcr/cassettes/search_redemption_by_member_key_without_redemptions.yml +62 -0
- data/test/{fixtures → vcr/cassettes}/store_find.yml +5 -5
- data/test/{fixtures → vcr/cassettes}/store_search.yml +8 -8
- data/test/{fixtures → vcr/cassettes}/store_search_fail_member_key.yml +7 -7
- data/test/{fixtures → vcr/cassettes}/subcategory_find.yml +7 -7
- data/test/vcr/cassettes/token_find.yml +93 -0
- data/test/vcr/cassettes/token_get_first_token.yml +107 -0
- data/test/vcr/cassettes/token_search.yml +107 -0
- data/test/vcr/cassettes/usage.yml +92 -0
- data/test/vcr/cassettes/usage_other.yml +92 -0
- data/test/{fixtures → vcr/cassettes}/verify_filter.yml +17 -24
- data/test/{fixtures → vcr/cassettes}/verify_token.yml +6 -6
- metadata +91 -64
- data/test/fixtures/autocomplete_search.yml +0 -82
- data/test/fixtures/national_stores.yml +0 -1992
- data/test/fixtures/redeem_offer_no_redeem_type.yml +0 -73
- data/test/fixtures/token_find.yml +0 -92
- data/test/fixtures/token_get_first_token.yml +0 -106
- 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
|
-
-
|
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
|
-
-
|
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
|
-
-
|
44
|
+
- ec88f821-c3e5-4e2c-9acd-8d118d7a7d01
|
45
45
|
X-Runtime:
|
46
|
-
- '0.
|
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:
|
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
|
-
-
|
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
|
-
-
|
34
|
+
- Tue, 06 Oct 2015 20:04:55 GMT
|
35
35
|
Etag:
|
36
|
-
- '"
|
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
|
-
-
|
44
|
+
- 8d5338b4-dc67-41c3-9313-b2bbb4a78da5
|
45
45
|
X-Runtime:
|
46
|
-
- '0.
|
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":
|
58
|
+
"total_results": 25907,
|
59
59
|
"current_page": 1,
|
60
|
-
"total_pages":
|
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:
|
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
|
-
-
|
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
|
-
-
|
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
|
-
-
|
42
|
+
- cf0cf9e6-53c1-4ca4-85d6-e3b7028b28d5
|
43
43
|
X-Runtime:
|
44
|
-
- '0.
|
44
|
+
- '0.010398'
|
45
45
|
X-Xss-Protection:
|
46
46
|
- 1; mode=block
|
47
|
-
|
48
|
-
-
|
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:
|
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
|
-
-
|
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
|
-
-
|
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
|
-
-
|
44
|
+
- b10d9021-a467-420c-82d1-feccec92f1d9
|
45
45
|
X-Runtime:
|
46
|
-
- '0.
|
46
|
+
- '0.026932'
|
47
47
|
X-Xss-Protection:
|
48
48
|
- 1; mode=block
|
49
|
-
|
50
|
-
-
|
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:
|
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
|