access 2.2.0 → 2.3.0.pre.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +1 -0
  3. data/.ruby-version +1 -1
  4. data/.travis.yml +6 -4
  5. data/Gemfile.lock +40 -80
  6. data/README.md +2 -4
  7. data/Rakefile +1 -1
  8. data/access.gemspec +4 -6
  9. data/lib/access/response.rb +1 -1
  10. data/lib/access/version.rb +1 -1
  11. data/test/access/campaign_test.rb +3 -3
  12. data/test/access/category_test.rb +1 -0
  13. data/test/access/device_test.rb +1 -4
  14. data/test/access/member_test.rb +2 -5
  15. data/test/access/redeem_test.rb +1 -0
  16. data/test/access/report_test.rb +14 -7
  17. data/test/access/spot_test.rb +4 -4
  18. data/test/access/user_test.rb +9 -10
  19. data/test/access/verify_test.rb +1 -1
  20. data/test/vcr/cassettes/autocomplete/search_categories.yml +11 -9
  21. data/test/vcr/cassettes/autocomplete/search_first.yml +21 -19
  22. data/test/vcr/cassettes/autocomplete/search_locations.yml +13 -11
  23. data/test/vcr/cassettes/autocomplete/search_offers.yml +15 -13
  24. data/test/vcr/cassettes/autocomplete/search_stores.yml +17 -15
  25. data/test/vcr/cassettes/campaign/find.yml +139 -0
  26. data/test/vcr/cassettes/campaign/search.yml +89 -971
  27. data/test/vcr/cassettes/campaign/search_first.yml +139 -0
  28. data/test/vcr/cassettes/category/find.yml +11 -9
  29. data/test/vcr/cassettes/category/search.yml +14 -35
  30. data/test/vcr/cassettes/category/search_fail_member_key.yml +11 -9
  31. data/test/vcr/cassettes/category/search_first.yml +27 -69
  32. data/test/vcr/cassettes/category/subcategory_find.yml +12 -118
  33. data/test/vcr/cassettes/channel/search.yml +26 -18
  34. data/test/vcr/cassettes/favorite/create_generic_with_offer.yml +95 -93
  35. data/test/vcr/cassettes/favorite/create_location.yml +63 -17
  36. data/test/vcr/cassettes/favorite/create_offer.yml +95 -93
  37. data/test/vcr/cassettes/favorite/create_store.yml +59 -59
  38. data/test/vcr/cassettes/favorite/delete_generic_with_offer.yml +110 -108
  39. data/test/vcr/cassettes/favorite/delete_location.yml +139 -93
  40. data/test/vcr/cassettes/favorite/delete_offer.yml +204 -200
  41. data/test/vcr/cassettes/favorite/delete_store.yml +117 -143
  42. data/test/vcr/cassettes/favorite/find_generic_with_offer.yml +180 -242
  43. data/test/vcr/cassettes/favorite/find_location.yml +124 -78
  44. data/test/vcr/cassettes/favorite/find_offer.yml +180 -242
  45. data/test/vcr/cassettes/favorite/find_store.yml +103 -129
  46. data/test/vcr/cassettes/favorite/one_of_everything.yml +323 -1031
  47. data/test/vcr/cassettes/favorite/search.yml +269 -281
  48. data/test/vcr/cassettes/favorite/search_bad_member.yml +9 -11
  49. data/test/vcr/cassettes/favorite/search_locations.yml +103 -62
  50. data/test/vcr/cassettes/favorite/search_no_favorites.yml +9 -11
  51. data/test/vcr/cassettes/favorite/search_offers.yml +148 -148
  52. data/test/vcr/cassettes/favorite/search_stores.yml +70 -127
  53. data/test/vcr/cassettes/filter/find.yml +11 -9
  54. data/test/vcr/cassettes/filter/search.yml +14 -12
  55. data/test/vcr/cassettes/filter/search_first.yml +14 -12
  56. data/test/vcr/cassettes/location/find.yml +562 -634
  57. data/test/vcr/cassettes/location/search.yml +82 -77
  58. data/test/vcr/cassettes/location/search_fail_member_key.yml +11 -9
  59. data/test/vcr/cassettes/location/search_first.yml +82 -77
  60. data/test/vcr/cassettes/member/show_failure.yml +14 -14
  61. data/test/vcr/cassettes/member/show_success.yml +16 -16
  62. data/test/vcr/cassettes/member/update_success.yml +16 -16
  63. data/test/vcr/cassettes/member_authenticate/cvt_failure.yml +13 -13
  64. data/test/vcr/cassettes/member_authenticate/cvt_success.yml +16 -16
  65. data/test/vcr/cassettes/member_authenticate/failure.yml +54 -9
  66. data/test/vcr/cassettes/member_authenticate/member_key_failure.yml +13 -13
  67. data/test/vcr/cassettes/member_authenticate/member_key_success.yml +21 -20
  68. data/test/vcr/cassettes/member_authenticate/success.yml +70 -13
  69. data/test/vcr/cassettes/member_device/search_failure.yml +16 -16
  70. data/test/vcr/cassettes/member_device/search_success.yml +423 -31
  71. data/test/vcr/cassettes/oauth_application/find.yml +19 -21
  72. data/test/vcr/cassettes/oauth_application/search.yml +21 -23
  73. data/test/vcr/cassettes/oauth_application/search_oauth_first.yml +21 -23
  74. data/test/vcr/cassettes/oauth_application/token_find.yml +33 -34
  75. data/test/vcr/cassettes/oauth_application/token_search.yml +97 -532
  76. data/test/vcr/cassettes/oauth_application/token_search_tokens_first.yml +33 -178
  77. data/test/vcr/cassettes/offer/find.yml +97 -109
  78. data/test/vcr/cassettes/offer/find_uses_remaining.yml +16 -14
  79. data/test/vcr/cassettes/offer/find_with_offer_uses_remaining.yml +97 -109
  80. data/test/vcr/cassettes/offer/search.yml +99 -111
  81. data/test/vcr/cassettes/offer/search_fail_member_key.yml +11 -9
  82. data/test/vcr/cassettes/offer/search_first.yml +99 -111
  83. data/test/vcr/cassettes/offer/search_for_redeem.yml +99 -111
  84. data/test/vcr/cassettes/offer/with_aggregations.yml +920 -959
  85. data/test/vcr/cassettes/redeem/offer_no_redeem_type.yml +8 -8
  86. data/test/vcr/cassettes/redeem/offer_with_redeem_type.yml +14 -7
  87. data/test/vcr/cassettes/redeem/redeem_offer_with_redeem_type_for_uses_remaining_test.yml +15 -8
  88. data/test/vcr/cassettes/redemption/find_by_member_key.yml +49 -47
  89. data/test/vcr/cassettes/redemption/search_by_member_key.yml +516 -228
  90. data/test/vcr/cassettes/redemption/search_by_member_key_first.yml +516 -228
  91. data/test/vcr/cassettes/redemption/search_by_member_key_without_redemptions.yml +11 -9
  92. data/test/vcr/cassettes/report/all_usage.yml +15 -100
  93. data/test/vcr/cassettes/report/member_location_frequent.yml +15 -19
  94. data/test/vcr/cassettes/report/member_location_recent.yml +15 -19
  95. data/test/vcr/cassettes/report/member_query_frequent.yml +15 -19
  96. data/test/vcr/cassettes/report/member_query_recent.yml +15 -19
  97. data/test/vcr/cassettes/report/usage.yml +15 -100
  98. data/test/vcr/cassettes/report/usage_other.yml +15 -100
  99. data/test/vcr/cassettes/spot/find.yml +9 -9
  100. data/test/vcr/cassettes/spot/search_by_campaign.yml +93 -2667
  101. data/test/vcr/cassettes/spot/search_by_channel.yml +73 -906
  102. data/test/vcr/cassettes/spot/search_by_channel_first.yml +73 -906
  103. data/test/vcr/cassettes/store/find.yml +48 -45
  104. data/test/vcr/cassettes/store/national_stores.yml +1764 -2884
  105. data/test/vcr/cassettes/store/search.yml +52 -49
  106. data/test/vcr/cassettes/store/search_fail_member_key.yml +11 -9
  107. data/test/vcr/cassettes/store/search_first.yml +52 -49
  108. data/test/vcr/cassettes/token/find.yml +53 -29
  109. data/test/vcr/cassettes/token/get_first_token.yml +55 -31
  110. data/test/vcr/cassettes/token/search.yml +55 -31
  111. data/test/vcr/cassettes/user_register/failure.yml +13 -13
  112. data/test/vcr/cassettes/user_register/success.yml +11 -109
  113. data/test/vcr/cassettes/user_update/success.yml +58 -12
  114. data/test/vcr/cassettes/verify/filter.yml +108 -94
  115. data/test/vcr/cassettes/verify/token.yml +15 -13
  116. metadata +22 -46
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://token-stage.adcrws.com/v1/oauth_applications/9
5
+ uri: https://token-stage.adcrws.com/v1/oauth_applications/503
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -19,15 +19,13 @@ http_interactions:
19
19
  message: OK
20
20
  headers:
21
21
  Server:
22
- - nginx/1.8.0
22
+ - nginx/1.12.2
23
23
  Date:
24
- - Mon, 22 Feb 2016 23:26:14 GMT
24
+ - Sun, 01 Jul 2018 04:24:20 GMT
25
25
  Content-Type:
26
26
  - application/json
27
27
  Transfer-Encoding:
28
28
  - chunked
29
- Connection:
30
- - keep-alive
31
29
  X-Frame-Options:
32
30
  - SAMEORIGIN
33
31
  X-Xss-Protection:
@@ -42,43 +40,43 @@ http_interactions:
42
40
  - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
43
41
  Access-Control-Max-Age:
44
42
  - '1728000'
43
+ X-Ratelimit-Limit:
44
+ - '10000'
45
+ X-Ratelimit-Remaining:
46
+ - '9897'
45
47
  Etag:
46
- - '"2640e5943e06503452381af7cdfb7989"'
48
+ - '"bcd500d0037f7424918af6eca9a65066"'
47
49
  Cache-Control:
48
50
  - max-age=0, private, must-revalidate
49
51
  X-Request-Id:
50
- - 5b71bf9e-2fcf-4073-89e0-7b2688af7c75
52
+ - 849f3217-803c-4024-a23b-b5e33ce81e2a
51
53
  X-Runtime:
52
- - '0.039212'
54
+ - '0.027626'
53
55
  body:
54
56
  encoding: UTF-8
55
57
  string: |-
56
58
  {
57
59
  "oauth_applications": [
58
60
  {
59
- "id": 9,
60
- "name": "Great FUN - Connexions",
61
- "owner_id": 106,
61
+ "id": 503,
62
+ "name": "TCICP Travel Services (pcid:200073)",
63
+ "owner_id": 253970117,
62
64
  "owner_type": "Program",
63
65
  "domain_urls": null,
64
66
  "scopes": [
65
- "api",
66
- "amt",
67
- "docs",
68
- "internal"
67
+ "api"
69
68
  ],
70
69
  "active_tokens": [
71
- "e09a8a65c9d733656252ce480ce125e37100592adf5449b0570d7ebc3df85b95",
72
- "c0c578c72e0a7200403511d55671b793f11eece61cb1b724f81b131bc5f19d66"
70
+ "c30f1d24a8c10e0fd3e36bc4fe79631025e890849b7deb6dc830e31a3c571393"
73
71
  ],
74
72
  "filter": {
75
- "filter_id": 3,
76
- "filter_name": "All Categories except EDUCATION ONLY"
73
+ "filter_id": 23,
74
+ "filter_name": "ACCESS PERKS - PROFESSIONAL (auto, car rental, dining, entertainment/rec, health/beauty, hotel, shopping)"
77
75
  },
78
76
  "links": null
79
77
  }
80
78
  ]
81
79
  }
82
80
  http_version:
83
- recorded_at: Mon, 22 Feb 2016 23:26:17 GMT
84
- recorded_with: VCR 3.0.1
81
+ recorded_at: Sun, 01 Jul 2018 04:24:20 GMT
82
+ recorded_with: VCR 4.0.0
@@ -19,15 +19,13 @@ http_interactions:
19
19
  message: OK
20
20
  headers:
21
21
  Server:
22
- - nginx/1.8.0
22
+ - nginx/1.12.2
23
23
  Date:
24
- - Mon, 22 Feb 2016 23:26:14 GMT
24
+ - Sun, 01 Jul 2018 04:24:23 GMT
25
25
  Content-Type:
26
26
  - application/json
27
27
  Transfer-Encoding:
28
28
  - chunked
29
- Connection:
30
- - keep-alive
31
29
  X-Frame-Options:
32
30
  - SAMEORIGIN
33
31
  X-Xss-Protection:
@@ -42,47 +40,47 @@ http_interactions:
42
40
  - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
43
41
  Access-Control-Max-Age:
44
42
  - '1728000'
43
+ X-Ratelimit-Limit:
44
+ - '10000'
45
+ X-Ratelimit-Remaining:
46
+ - '9893'
45
47
  Etag:
46
- - '"9a25641923a20fd5288927ec32e6910d"'
48
+ - '"507d9a5c727226fe391bd44cf9a459cb"'
47
49
  Cache-Control:
48
50
  - max-age=0, private, must-revalidate
49
51
  X-Request-Id:
50
- - a121ba3b-0700-4bc3-abf6-9e2a70a974d7
52
+ - 406248e1-95eb-4e92-9bac-af949ed90e44
51
53
  X-Runtime:
52
- - '0.050972'
54
+ - '0.045455'
53
55
  body:
54
56
  encoding: UTF-8
55
57
  string: |-
56
58
  {
57
59
  "info": {
58
- "total_results": 3960,
60
+ "total_results": 4315,
59
61
  "results_per_page": 1,
60
62
  "current_page": 1,
61
- "total_pages": 3960
63
+ "total_pages": 4315
62
64
  },
63
65
  "oauth_applications": [
64
66
  {
65
- "id": 9,
66
- "name": "Great FUN - Connexions",
67
- "owner_id": 106,
67
+ "id": 503,
68
+ "name": "TCICP Travel Services (pcid:200073)",
69
+ "owner_id": 253970117,
68
70
  "owner_type": "Program",
69
71
  "domain_urls": null,
70
72
  "scopes": [
71
- "api",
72
- "amt",
73
- "docs",
74
- "internal"
73
+ "api"
75
74
  ],
76
75
  "active_tokens": [
77
- "e09a8a65c9d733656252ce480ce125e37100592adf5449b0570d7ebc3df85b95",
78
- "c0c578c72e0a7200403511d55671b793f11eece61cb1b724f81b131bc5f19d66"
76
+ "c30f1d24a8c10e0fd3e36bc4fe79631025e890849b7deb6dc830e31a3c571393"
79
77
  ],
80
78
  "filter": {
81
- "filter_id": 3,
82
- "filter_name": "All Categories except EDUCATION ONLY"
79
+ "filter_id": 23,
80
+ "filter_name": "ACCESS PERKS - PROFESSIONAL (auto, car rental, dining, entertainment/rec, health/beauty, hotel, shopping)"
83
81
  },
84
82
  "links": {
85
- "show_application": "https://token-stage.adcrws.com/v1/oauth_applications/9"
83
+ "show_application": "https://token-stage.adcrws.com/v1/oauth_applications/503"
86
84
  }
87
85
  }
88
86
  ],
@@ -91,5 +89,5 @@ http_interactions:
91
89
  }
92
90
  }
93
91
  http_version:
94
- recorded_at: Mon, 22 Feb 2016 23:26:16 GMT
95
- recorded_with: VCR 3.0.1
92
+ recorded_at: Sun, 01 Jul 2018 04:24:23 GMT
93
+ recorded_with: VCR 4.0.0
@@ -19,15 +19,13 @@ http_interactions:
19
19
  message: OK
20
20
  headers:
21
21
  Server:
22
- - nginx/1.8.0
22
+ - nginx/1.12.2
23
23
  Date:
24
- - Mon, 22 Feb 2016 23:26:12 GMT
24
+ - Sun, 01 Jul 2018 04:24:23 GMT
25
25
  Content-Type:
26
26
  - application/json
27
27
  Transfer-Encoding:
28
28
  - chunked
29
- Connection:
30
- - keep-alive
31
29
  X-Frame-Options:
32
30
  - SAMEORIGIN
33
31
  X-Xss-Protection:
@@ -42,47 +40,47 @@ http_interactions:
42
40
  - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
43
41
  Access-Control-Max-Age:
44
42
  - '1728000'
43
+ X-Ratelimit-Limit:
44
+ - '10000'
45
+ X-Ratelimit-Remaining:
46
+ - '9892'
45
47
  Etag:
46
- - '"9a25641923a20fd5288927ec32e6910d"'
48
+ - '"507d9a5c727226fe391bd44cf9a459cb"'
47
49
  Cache-Control:
48
50
  - max-age=0, private, must-revalidate
49
51
  X-Request-Id:
50
- - 2dbf228c-27ef-406d-a0f1-a412fdf1952e
52
+ - 0e1dede3-804f-46c3-93a2-c0ab33d8614f
51
53
  X-Runtime:
52
- - '0.084730'
54
+ - '0.041851'
53
55
  body:
54
56
  encoding: UTF-8
55
57
  string: |-
56
58
  {
57
59
  "info": {
58
- "total_results": 3960,
60
+ "total_results": 4315,
59
61
  "results_per_page": 1,
60
62
  "current_page": 1,
61
- "total_pages": 3960
63
+ "total_pages": 4315
62
64
  },
63
65
  "oauth_applications": [
64
66
  {
65
- "id": 9,
66
- "name": "Great FUN - Connexions",
67
- "owner_id": 106,
67
+ "id": 503,
68
+ "name": "TCICP Travel Services (pcid:200073)",
69
+ "owner_id": 253970117,
68
70
  "owner_type": "Program",
69
71
  "domain_urls": null,
70
72
  "scopes": [
71
- "api",
72
- "amt",
73
- "docs",
74
- "internal"
73
+ "api"
75
74
  ],
76
75
  "active_tokens": [
77
- "e09a8a65c9d733656252ce480ce125e37100592adf5449b0570d7ebc3df85b95",
78
- "c0c578c72e0a7200403511d55671b793f11eece61cb1b724f81b131bc5f19d66"
76
+ "c30f1d24a8c10e0fd3e36bc4fe79631025e890849b7deb6dc830e31a3c571393"
79
77
  ],
80
78
  "filter": {
81
- "filter_id": 3,
82
- "filter_name": "All Categories except EDUCATION ONLY"
79
+ "filter_id": 23,
80
+ "filter_name": "ACCESS PERKS - PROFESSIONAL (auto, car rental, dining, entertainment/rec, health/beauty, hotel, shopping)"
83
81
  },
84
82
  "links": {
85
- "show_application": "https://token-stage.adcrws.com/v1/oauth_applications/9"
83
+ "show_application": "https://token-stage.adcrws.com/v1/oauth_applications/503"
86
84
  }
87
85
  }
88
86
  ],
@@ -91,5 +89,5 @@ http_interactions:
91
89
  }
92
90
  }
93
91
  http_version:
94
- recorded_at: Mon, 22 Feb 2016 23:26:15 GMT
95
- recorded_with: VCR 3.0.1
92
+ recorded_at: Sun, 01 Jul 2018 04:24:23 GMT
93
+ recorded_with: VCR 4.0.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/11
5
+ uri: https://token-stage.adcrws.com/v1/oauth_applications/503/access_tokens/523
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -19,15 +19,13 @@ http_interactions:
19
19
  message: OK
20
20
  headers:
21
21
  Server:
22
- - nginx/1.8.0
22
+ - nginx/1.12.2
23
23
  Date:
24
- - Mon, 22 Feb 2016 23:26:13 GMT
24
+ - Sun, 01 Jul 2018 04:24:22 GMT
25
25
  Content-Type:
26
26
  - application/json
27
27
  Transfer-Encoding:
28
28
  - chunked
29
- Connection:
30
- - keep-alive
31
29
  X-Frame-Options:
32
30
  - SAMEORIGIN
33
31
  X-Xss-Protection:
@@ -42,54 +40,55 @@ http_interactions:
42
40
  - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
43
41
  Access-Control-Max-Age:
44
42
  - '1728000'
43
+ X-Ratelimit-Limit:
44
+ - '10000'
45
+ X-Ratelimit-Remaining:
46
+ - '9894'
45
47
  Etag:
46
- - '"14461abf8ef3aeb8b2435ee3f8ec97b1"'
48
+ - '"a3eaeb3f4c748351ef4534faf035f123"'
47
49
  Cache-Control:
48
50
  - max-age=0, private, must-revalidate
49
51
  X-Request-Id:
50
- - 8d4509a4-e9b6-4622-85ab-d4f0b77f4c07
52
+ - 02bf8405-1481-4a8c-9c82-d41a61668fc9
51
53
  X-Runtime:
52
- - '0.048897'
54
+ - '0.041966'
53
55
  body:
54
56
  encoding: UTF-8
55
57
  string: |-
56
58
  {
57
59
  "access_tokens": [
58
60
  {
59
- "application_id": 9,
60
- "token": "68214283dc396fcb2f5c6442dae8c461718be2df77a19cc822f1f4f2953e13f3",
61
+ "application_id": 503,
62
+ "token": "c30f1d24a8c10e0fd3e36bc4fe79631025e890849b7deb6dc830e31a3c571393",
61
63
  "expires_in": null,
62
- "revoked_at": "2015-04-07T20:51:38.223Z",
63
- "created_at": "2015-04-02T22:35:55.225Z",
64
- "oauth_access_token_id": 11,
65
- "application_name": "Great FUN - Connexions",
66
- "application_owner_id": 9,
64
+ "revoked_at": null,
65
+ "created_at": "2015-05-04T18:51:26.621Z",
66
+ "oauth_access_token_id": 523,
67
+ "application_name": "TCICP Travel Services (pcid:200073)",
68
+ "application_owner_id": 503,
67
69
  "application_owner_type": "Program",
68
- "program_id": 106,
69
- "program_name": "Great FUN",
70
- "program_customer_identifier": "10792",
71
- "program_start_dts": "2012-04-12T21:10:31.633Z",
72
- "program_end_dts": "2025-12-31T00:00:00.000Z",
73
- "organization_id": 100,
74
- "organization_name": "AFFINION",
75
- "organization_customer_identifier": "100",
76
- "filter_id": 3,
77
- "filter_name": "All Categories except EDUCATION ONLY",
78
- "filter": "{\"offers\":[{\"terms\":{\"offer_set\":[\"DISCOUNT\"]}},{\"or\":[{\"terms\":{\"categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"categories\":[{\"or\":[{\"terms\":{\"category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"stores\":[{\"or\":[{\"terms\":{\"store_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"store_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"locations\":[{\"or\":[{\"terms\":{\"location_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"location_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}]}",
79
- "program_filter_id": 2,
70
+ "program_id": 253970117,
71
+ "program_name": "TCICP Travel Services",
72
+ "program_customer_identifier": "200073",
73
+ "program_start_dts": "2015-05-04T12:51:07.219Z",
74
+ "program_end_dts": "2015-12-04T00:00:00.000Z",
75
+ "organization_id": 2001964,
76
+ "organization_name": "TCICP Travel Services",
77
+ "organization_customer_identifier": "2001964",
78
+ "filter_id": 23,
79
+ "filter_name": "ACCESS PERKS - PROFESSIONAL (auto, car rental, dining, entertainment/rec, health/beauty, hotel, shopping)",
80
+ "filter": "{\"offers\":[{\"term\":{\"offer_set\":\"DISCOUNT\"}},{\"bool\":{\"should\":[{\"terms\":{\"categories.category_key\":[51,58,39,59,53,44,45]}},{\"terms\":{\"categories.category_parent_key\":[51,58,39,59,53,44,45]}}]}}],\"categories\":[{\"bool\":{\"should\":[{\"terms\":{\"category_key\":[51,58,39,59,53,44,45]}},{\"terms\":{\"category_parent_key\":[51,58,39,59,53,44,45]}}]}}],\"stores\":[{\"bool\":{\"should\":[{\"terms\":{\"store_categories.category_key\":[51,58,39,59,53,44,45]}},{\"terms\":{\"store_categories.category_parent_key\":[51,58,39,59,53,44,45]}}]}}],\"locations\":[{\"bool\":{\"should\":[{\"terms\":{\"location_categories.category_key\":[51,58,39,59,53,44,45]}},{\"terms\":{\"location_categories.category_parent_key\":[51,58,39,59,53,44,45]}}]}}]}",
81
+ "program_filter_id": 502,
80
82
  "domains": [
81
83
 
82
84
  ],
83
85
  "application_scopes": [
84
- "api",
85
- "amt",
86
- "docs",
87
- "internal"
86
+ "api"
88
87
  ],
89
- "token_status": "revoked"
88
+ "token_status": "inactive"
90
89
  }
91
90
  ]
92
91
  }
93
92
  http_version:
94
- recorded_at: Mon, 22 Feb 2016 23:26:16 GMT
95
- recorded_with: VCR 3.0.1
93
+ recorded_at: Sun, 01 Jul 2018 04:24:22 GMT
94
+ recorded_with: VCR 4.0.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens?debug_output=true&per_page=1
5
+ uri: https://token-stage.adcrws.com/v1/oauth_applications/503/access_tokens?per_page=1
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -19,15 +19,13 @@ http_interactions:
19
19
  message: OK
20
20
  headers:
21
21
  Server:
22
- - nginx/1.8.0
22
+ - nginx/1.12.2
23
23
  Date:
24
- - Mon, 22 Feb 2016 23:26:13 GMT
24
+ - Thu, 28 Jun 2018 20:29:09 GMT
25
25
  Content-Type:
26
26
  - application/json
27
27
  Transfer-Encoding:
28
28
  - chunked
29
- Connection:
30
- - keep-alive
31
29
  X-Frame-Options:
32
30
  - SAMEORIGIN
33
31
  X-Xss-Protection:
@@ -42,206 +40,63 @@ http_interactions:
42
40
  - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
43
41
  Access-Control-Max-Age:
44
42
  - '1728000'
43
+ X-Ratelimit-Limit:
44
+ - '10000'
45
+ X-Ratelimit-Remaining:
46
+ - '9769'
45
47
  Etag:
46
- - '"d74f503c9be84187ed53874b43e3b80a"'
48
+ - '"b113acf22d793bbb1cf58213d86e2fe7"'
47
49
  Cache-Control:
48
50
  - max-age=0, private, must-revalidate
49
51
  X-Request-Id:
50
- - 4682ed7e-5c0a-4d27-b077-bd892918f58b
52
+ - f827423f-3d1e-4498-b6e7-aedc81f167a7
51
53
  X-Runtime:
52
- - '0.095130'
54
+ - '0.043608'
53
55
  body:
54
56
  encoding: UTF-8
55
57
  string: |-
56
58
  {
57
59
  "access_tokens": [
58
60
  {
59
- "application_id": 9,
60
- "token": "68214283dc396fcb2f5c6442dae8c461718be2df77a19cc822f1f4f2953e13f3",
61
- "expires_in": null,
62
- "revoked_at": "2015-04-07T20:51:38.223Z",
63
- "created_at": "2015-04-02T22:35:55.225Z",
64
- "oauth_access_token_id": 11,
65
- "application_name": "Great FUN - Connexions",
66
- "application_owner_id": 9,
67
- "application_owner_type": "Program",
68
- "program_id": 106,
69
- "program_name": "Great FUN",
70
- "program_customer_identifier": "10792",
71
- "program_start_dts": "2012-04-12T21:10:31.633Z",
72
- "program_end_dts": "2025-12-31T00:00:00.000Z",
73
- "organization_id": 100,
74
- "organization_name": "AFFINION",
75
- "organization_customer_identifier": "100",
76
- "filter_id": 3,
77
- "filter_name": "All Categories except EDUCATION ONLY",
78
- "filter": "{\"offers\":[{\"terms\":{\"offer_set\":[\"DISCOUNT\"]}},{\"or\":[{\"terms\":{\"categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"categories\":[{\"or\":[{\"terms\":{\"category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"stores\":[{\"or\":[{\"terms\":{\"store_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"store_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"locations\":[{\"or\":[{\"terms\":{\"location_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"location_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}]}",
79
- "program_filter_id": 2,
80
- "domains": [
81
-
82
- ],
83
- "application_scopes": [
84
- "api",
85
- "amt",
86
- "docs",
87
- "internal"
88
- ],
89
- "token_status": "revoked",
90
- "links": {
91
- "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/11"
92
- }
93
- },
94
- {
95
- "application_id": 9,
96
- "token": "e09a8a65c9d733656252ce480ce125e37100592adf5449b0570d7ebc3df85b95",
97
- "expires_in": null,
98
- "revoked_at": null,
99
- "created_at": "2015-04-07T20:52:03.641Z",
100
- "oauth_access_token_id": 501,
101
- "application_name": "Great FUN - Connexions",
102
- "application_owner_id": 9,
103
- "application_owner_type": "Program",
104
- "program_id": 106,
105
- "program_name": "Great FUN",
106
- "program_customer_identifier": "10792",
107
- "program_start_dts": "2012-04-12T21:10:31.633Z",
108
- "program_end_dts": "2025-12-31T00:00:00.000Z",
109
- "organization_id": 100,
110
- "organization_name": "AFFINION",
111
- "organization_customer_identifier": "100",
112
- "filter_id": 3,
113
- "filter_name": "All Categories except EDUCATION ONLY",
114
- "filter": "{\"offers\":[{\"terms\":{\"offer_set\":[\"DISCOUNT\"]}},{\"or\":[{\"terms\":{\"categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"categories\":[{\"or\":[{\"terms\":{\"category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"stores\":[{\"or\":[{\"terms\":{\"store_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"store_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"locations\":[{\"or\":[{\"terms\":{\"location_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"location_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}]}",
115
- "program_filter_id": 2,
116
- "domains": [
117
-
118
- ],
119
- "application_scopes": [
120
- "api",
121
- "amt",
122
- "docs",
123
- "internal"
124
- ],
125
- "token_status": "valid",
126
- "links": {
127
- "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/501"
128
- }
129
- },
130
- {
131
- "application_id": 9,
132
- "token": "cfe9e37bb0b3ea4244760291d90216837167e9b0e721585947c123e001319aef",
133
- "expires_in": null,
134
- "revoked_at": "2015-04-07T20:52:11.814Z",
135
- "created_at": "2015-04-07T19:59:16.555Z",
136
- "oauth_access_token_id": 500,
137
- "application_name": "Great FUN - Connexions",
138
- "application_owner_id": 9,
139
- "application_owner_type": "Program",
140
- "program_id": 106,
141
- "program_name": "Great FUN",
142
- "program_customer_identifier": "10792",
143
- "program_start_dts": "2012-04-12T21:10:31.633Z",
144
- "program_end_dts": "2025-12-31T00:00:00.000Z",
145
- "organization_id": 100,
146
- "organization_name": "AFFINION",
147
- "organization_customer_identifier": "100",
148
- "filter_id": 3,
149
- "filter_name": "All Categories except EDUCATION ONLY",
150
- "filter": "{\"offers\":[{\"terms\":{\"offer_set\":[\"DISCOUNT\"]}},{\"or\":[{\"terms\":{\"categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"categories\":[{\"or\":[{\"terms\":{\"category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"stores\":[{\"or\":[{\"terms\":{\"store_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"store_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"locations\":[{\"or\":[{\"terms\":{\"location_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"location_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}]}",
151
- "program_filter_id": 2,
152
- "domains": [
153
-
154
- ],
155
- "application_scopes": [
156
- "api",
157
- "amt",
158
- "docs",
159
- "internal"
160
- ],
161
- "token_status": "revoked",
162
- "links": {
163
- "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/500"
164
- }
165
- },
166
- {
167
- "application_id": 9,
168
- "token": "ad68ea1539b2cf47d33d3866650b50cb68212c6353b60e9e07921b11b479221c",
169
- "expires_in": null,
170
- "revoked_at": "2015-07-09T20:33:30.070Z",
171
- "created_at": "2015-07-09T19:34:36.800Z",
172
- "oauth_access_token_id": 3812,
173
- "application_name": "Great FUN - Connexions",
174
- "application_owner_id": 9,
175
- "application_owner_type": "Program",
176
- "program_id": 106,
177
- "program_name": "Great FUN",
178
- "program_customer_identifier": "10792",
179
- "program_start_dts": "2012-04-12T21:10:31.633Z",
180
- "program_end_dts": "2025-12-31T00:00:00.000Z",
181
- "organization_id": 100,
182
- "organization_name": "AFFINION",
183
- "organization_customer_identifier": "100",
184
- "filter_id": 3,
185
- "filter_name": "All Categories except EDUCATION ONLY",
186
- "filter": "{\"offers\":[{\"terms\":{\"offer_set\":[\"DISCOUNT\"]}},{\"or\":[{\"terms\":{\"categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"categories\":[{\"or\":[{\"terms\":{\"category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"stores\":[{\"or\":[{\"terms\":{\"store_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"store_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"locations\":[{\"or\":[{\"terms\":{\"location_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"location_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}]}",
187
- "program_filter_id": 2,
188
- "domains": [
189
-
190
- ],
191
- "application_scopes": [
192
- "api",
193
- "amt",
194
- "docs",
195
- "internal"
196
- ],
197
- "token_status": "revoked",
198
- "links": {
199
- "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/3812"
200
- }
201
- },
202
- {
203
- "application_id": 9,
204
- "token": "c0c578c72e0a7200403511d55671b793f11eece61cb1b724f81b131bc5f19d66",
61
+ "application_id": 503,
62
+ "token": "c30f1d24a8c10e0fd3e36bc4fe79631025e890849b7deb6dc830e31a3c571393",
205
63
  "expires_in": null,
206
64
  "revoked_at": null,
207
- "created_at": "2015-07-28T16:12:19.388Z",
208
- "oauth_access_token_id": 3831,
209
- "application_name": "Great FUN - Connexions",
210
- "application_owner_id": 9,
65
+ "created_at": "2015-05-04T18:51:26.621Z",
66
+ "oauth_access_token_id": 523,
67
+ "application_name": "TCICP Travel Services (pcid:200073)",
68
+ "application_owner_id": 503,
211
69
  "application_owner_type": "Program",
212
- "program_id": 106,
213
- "program_name": "Great FUN",
214
- "program_customer_identifier": "10792",
215
- "program_start_dts": "2012-04-12T21:10:31.633Z",
216
- "program_end_dts": "2025-12-31T00:00:00.000Z",
217
- "organization_id": 100,
218
- "organization_name": "AFFINION",
219
- "organization_customer_identifier": "100",
220
- "filter_id": 3,
221
- "filter_name": "All Categories except EDUCATION ONLY",
222
- "filter": "{\"offers\":[{\"terms\":{\"offer_set\":[\"DISCOUNT\"]}},{\"or\":[{\"terms\":{\"categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"categories\":[{\"or\":[{\"terms\":{\"category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"stores\":[{\"or\":[{\"terms\":{\"store_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"store_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"locations\":[{\"or\":[{\"terms\":{\"location_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"location_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}]}",
223
- "program_filter_id": 2,
70
+ "program_id": 253970117,
71
+ "program_name": "TCICP Travel Services",
72
+ "program_customer_identifier": "200073",
73
+ "program_start_dts": "2015-05-04T12:51:07.219Z",
74
+ "program_end_dts": "2015-12-04T00:00:00.000Z",
75
+ "organization_id": 2001964,
76
+ "organization_name": "TCICP Travel Services",
77
+ "organization_customer_identifier": "2001964",
78
+ "filter_id": 23,
79
+ "filter_name": "ACCESS PERKS - PROFESSIONAL (auto, car rental, dining, entertainment/rec, health/beauty, hotel, shopping)",
80
+ "filter": "{\"offers\":[{\"term\":{\"offer_set\":\"DISCOUNT\"}},{\"bool\":{\"should\":[{\"terms\":{\"categories.category_key\":[51,58,39,59,53,44,45]}},{\"terms\":{\"categories.category_parent_key\":[51,58,39,59,53,44,45]}}]}}],\"categories\":[{\"bool\":{\"should\":[{\"terms\":{\"category_key\":[51,58,39,59,53,44,45]}},{\"terms\":{\"category_parent_key\":[51,58,39,59,53,44,45]}}]}}],\"stores\":[{\"bool\":{\"should\":[{\"terms\":{\"store_categories.category_key\":[51,58,39,59,53,44,45]}},{\"terms\":{\"store_categories.category_parent_key\":[51,58,39,59,53,44,45]}}]}}],\"locations\":[{\"bool\":{\"should\":[{\"terms\":{\"location_categories.category_key\":[51,58,39,59,53,44,45]}},{\"terms\":{\"location_categories.category_parent_key\":[51,58,39,59,53,44,45]}}]}}]}",
81
+ "program_filter_id": 502,
224
82
  "domains": [
225
83
 
226
84
  ],
227
85
  "application_scopes": [
228
- "api",
229
- "amt",
230
- "docs",
231
- "internal"
86
+ "api"
232
87
  ],
233
- "token_status": "valid",
88
+ "token_status": "inactive",
234
89
  "links": {
235
- "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/3831"
90
+ "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/503/access_tokens/523"
236
91
  }
237
92
  }
238
93
  ]
239
94
  }
240
95
  http_version:
241
- recorded_at: Mon, 22 Feb 2016 23:26:15 GMT
96
+ recorded_at: Thu, 28 Jun 2018 20:29:09 GMT
242
97
  - request:
243
98
  method: get
244
- uri: https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens?per_page=1
99
+ uri: https://token-stage.adcrws.com/v1/oauth_applications/503/access_tokens?per_page=1
245
100
  body:
246
101
  encoding: US-ASCII
247
102
  string: ''
@@ -258,15 +113,13 @@ http_interactions:
258
113
  message: OK
259
114
  headers:
260
115
  Server:
261
- - nginx/1.8.0
116
+ - nginx/1.12.2
262
117
  Date:
263
- - Mon, 22 Feb 2016 23:27:10 GMT
118
+ - Sun, 01 Jul 2018 04:19:31 GMT
264
119
  Content-Type:
265
120
  - application/json
266
121
  Transfer-Encoding:
267
122
  - chunked
268
- Connection:
269
- - keep-alive
270
123
  X-Frame-Options:
271
124
  - SAMEORIGIN
272
125
  X-Xss-Protection:
@@ -281,206 +134,63 @@ http_interactions:
281
134
  - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
282
135
  Access-Control-Max-Age:
283
136
  - '1728000'
137
+ X-Ratelimit-Limit:
138
+ - '10000'
139
+ X-Ratelimit-Remaining:
140
+ - '9907'
284
141
  Etag:
285
- - '"d74f503c9be84187ed53874b43e3b80a"'
142
+ - '"b113acf22d793bbb1cf58213d86e2fe7"'
286
143
  Cache-Control:
287
144
  - max-age=0, private, must-revalidate
288
145
  X-Request-Id:
289
- - eb9feb81-9de5-4a38-a4f9-80c07a3985a3
146
+ - eceae308-3501-42ad-924d-37e6f508054f
290
147
  X-Runtime:
291
- - '0.125284'
148
+ - '0.044151'
292
149
  body:
293
150
  encoding: UTF-8
294
151
  string: |-
295
152
  {
296
153
  "access_tokens": [
297
154
  {
298
- "application_id": 9,
299
- "token": "68214283dc396fcb2f5c6442dae8c461718be2df77a19cc822f1f4f2953e13f3",
300
- "expires_in": null,
301
- "revoked_at": "2015-04-07T20:51:38.223Z",
302
- "created_at": "2015-04-02T22:35:55.225Z",
303
- "oauth_access_token_id": 11,
304
- "application_name": "Great FUN - Connexions",
305
- "application_owner_id": 9,
306
- "application_owner_type": "Program",
307
- "program_id": 106,
308
- "program_name": "Great FUN",
309
- "program_customer_identifier": "10792",
310
- "program_start_dts": "2012-04-12T21:10:31.633Z",
311
- "program_end_dts": "2025-12-31T00:00:00.000Z",
312
- "organization_id": 100,
313
- "organization_name": "AFFINION",
314
- "organization_customer_identifier": "100",
315
- "filter_id": 3,
316
- "filter_name": "All Categories except EDUCATION ONLY",
317
- "filter": "{\"offers\":[{\"terms\":{\"offer_set\":[\"DISCOUNT\"]}},{\"or\":[{\"terms\":{\"categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"categories\":[{\"or\":[{\"terms\":{\"category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"stores\":[{\"or\":[{\"terms\":{\"store_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"store_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"locations\":[{\"or\":[{\"terms\":{\"location_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"location_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}]}",
318
- "program_filter_id": 2,
319
- "domains": [
320
-
321
- ],
322
- "application_scopes": [
323
- "api",
324
- "amt",
325
- "docs",
326
- "internal"
327
- ],
328
- "token_status": "revoked",
329
- "links": {
330
- "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/11"
331
- }
332
- },
333
- {
334
- "application_id": 9,
335
- "token": "e09a8a65c9d733656252ce480ce125e37100592adf5449b0570d7ebc3df85b95",
155
+ "application_id": 503,
156
+ "token": "c30f1d24a8c10e0fd3e36bc4fe79631025e890849b7deb6dc830e31a3c571393",
336
157
  "expires_in": null,
337
158
  "revoked_at": null,
338
- "created_at": "2015-04-07T20:52:03.641Z",
339
- "oauth_access_token_id": 501,
340
- "application_name": "Great FUN - Connexions",
341
- "application_owner_id": 9,
159
+ "created_at": "2015-05-04T18:51:26.621Z",
160
+ "oauth_access_token_id": 523,
161
+ "application_name": "TCICP Travel Services (pcid:200073)",
162
+ "application_owner_id": 503,
342
163
  "application_owner_type": "Program",
343
- "program_id": 106,
344
- "program_name": "Great FUN",
345
- "program_customer_identifier": "10792",
346
- "program_start_dts": "2012-04-12T21:10:31.633Z",
347
- "program_end_dts": "2025-12-31T00:00:00.000Z",
348
- "organization_id": 100,
349
- "organization_name": "AFFINION",
350
- "organization_customer_identifier": "100",
351
- "filter_id": 3,
352
- "filter_name": "All Categories except EDUCATION ONLY",
353
- "filter": "{\"offers\":[{\"terms\":{\"offer_set\":[\"DISCOUNT\"]}},{\"or\":[{\"terms\":{\"categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"categories\":[{\"or\":[{\"terms\":{\"category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"stores\":[{\"or\":[{\"terms\":{\"store_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"store_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"locations\":[{\"or\":[{\"terms\":{\"location_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"location_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}]}",
354
- "program_filter_id": 2,
164
+ "program_id": 253970117,
165
+ "program_name": "TCICP Travel Services",
166
+ "program_customer_identifier": "200073",
167
+ "program_start_dts": "2015-05-04T12:51:07.219Z",
168
+ "program_end_dts": "2015-12-04T00:00:00.000Z",
169
+ "organization_id": 2001964,
170
+ "organization_name": "TCICP Travel Services",
171
+ "organization_customer_identifier": "2001964",
172
+ "filter_id": 23,
173
+ "filter_name": "ACCESS PERKS - PROFESSIONAL (auto, car rental, dining, entertainment/rec, health/beauty, hotel, shopping)",
174
+ "filter": "{\"offers\":[{\"term\":{\"offer_set\":\"DISCOUNT\"}},{\"bool\":{\"should\":[{\"terms\":{\"categories.category_key\":[51,58,39,59,53,44,45]}},{\"terms\":{\"categories.category_parent_key\":[51,58,39,59,53,44,45]}}]}}],\"categories\":[{\"bool\":{\"should\":[{\"terms\":{\"category_key\":[51,58,39,59,53,44,45]}},{\"terms\":{\"category_parent_key\":[51,58,39,59,53,44,45]}}]}}],\"stores\":[{\"bool\":{\"should\":[{\"terms\":{\"store_categories.category_key\":[51,58,39,59,53,44,45]}},{\"terms\":{\"store_categories.category_parent_key\":[51,58,39,59,53,44,45]}}]}}],\"locations\":[{\"bool\":{\"should\":[{\"terms\":{\"location_categories.category_key\":[51,58,39,59,53,44,45]}},{\"terms\":{\"location_categories.category_parent_key\":[51,58,39,59,53,44,45]}}]}}]}",
175
+ "program_filter_id": 502,
355
176
  "domains": [
356
177
 
357
178
  ],
358
179
  "application_scopes": [
359
- "api",
360
- "amt",
361
- "docs",
362
- "internal"
180
+ "api"
363
181
  ],
364
- "token_status": "valid",
182
+ "token_status": "inactive",
365
183
  "links": {
366
- "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/501"
367
- }
368
- },
369
- {
370
- "application_id": 9,
371
- "token": "cfe9e37bb0b3ea4244760291d90216837167e9b0e721585947c123e001319aef",
372
- "expires_in": null,
373
- "revoked_at": "2015-04-07T20:52:11.814Z",
374
- "created_at": "2015-04-07T19:59:16.555Z",
375
- "oauth_access_token_id": 500,
376
- "application_name": "Great FUN - Connexions",
377
- "application_owner_id": 9,
378
- "application_owner_type": "Program",
379
- "program_id": 106,
380
- "program_name": "Great FUN",
381
- "program_customer_identifier": "10792",
382
- "program_start_dts": "2012-04-12T21:10:31.633Z",
383
- "program_end_dts": "2025-12-31T00:00:00.000Z",
384
- "organization_id": 100,
385
- "organization_name": "AFFINION",
386
- "organization_customer_identifier": "100",
387
- "filter_id": 3,
388
- "filter_name": "All Categories except EDUCATION ONLY",
389
- "filter": "{\"offers\":[{\"terms\":{\"offer_set\":[\"DISCOUNT\"]}},{\"or\":[{\"terms\":{\"categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"categories\":[{\"or\":[{\"terms\":{\"category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"stores\":[{\"or\":[{\"terms\":{\"store_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"store_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"locations\":[{\"or\":[{\"terms\":{\"location_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"location_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}]}",
390
- "program_filter_id": 2,
391
- "domains": [
392
-
393
- ],
394
- "application_scopes": [
395
- "api",
396
- "amt",
397
- "docs",
398
- "internal"
399
- ],
400
- "token_status": "revoked",
401
- "links": {
402
- "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/500"
403
- }
404
- },
405
- {
406
- "application_id": 9,
407
- "token": "ad68ea1539b2cf47d33d3866650b50cb68212c6353b60e9e07921b11b479221c",
408
- "expires_in": null,
409
- "revoked_at": "2015-07-09T20:33:30.070Z",
410
- "created_at": "2015-07-09T19:34:36.800Z",
411
- "oauth_access_token_id": 3812,
412
- "application_name": "Great FUN - Connexions",
413
- "application_owner_id": 9,
414
- "application_owner_type": "Program",
415
- "program_id": 106,
416
- "program_name": "Great FUN",
417
- "program_customer_identifier": "10792",
418
- "program_start_dts": "2012-04-12T21:10:31.633Z",
419
- "program_end_dts": "2025-12-31T00:00:00.000Z",
420
- "organization_id": 100,
421
- "organization_name": "AFFINION",
422
- "organization_customer_identifier": "100",
423
- "filter_id": 3,
424
- "filter_name": "All Categories except EDUCATION ONLY",
425
- "filter": "{\"offers\":[{\"terms\":{\"offer_set\":[\"DISCOUNT\"]}},{\"or\":[{\"terms\":{\"categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"categories\":[{\"or\":[{\"terms\":{\"category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"stores\":[{\"or\":[{\"terms\":{\"store_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"store_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"locations\":[{\"or\":[{\"terms\":{\"location_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"location_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}]}",
426
- "program_filter_id": 2,
427
- "domains": [
428
-
429
- ],
430
- "application_scopes": [
431
- "api",
432
- "amt",
433
- "docs",
434
- "internal"
435
- ],
436
- "token_status": "revoked",
437
- "links": {
438
- "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/3812"
439
- }
440
- },
441
- {
442
- "application_id": 9,
443
- "token": "c0c578c72e0a7200403511d55671b793f11eece61cb1b724f81b131bc5f19d66",
444
- "expires_in": null,
445
- "revoked_at": null,
446
- "created_at": "2015-07-28T16:12:19.388Z",
447
- "oauth_access_token_id": 3831,
448
- "application_name": "Great FUN - Connexions",
449
- "application_owner_id": 9,
450
- "application_owner_type": "Program",
451
- "program_id": 106,
452
- "program_name": "Great FUN",
453
- "program_customer_identifier": "10792",
454
- "program_start_dts": "2012-04-12T21:10:31.633Z",
455
- "program_end_dts": "2025-12-31T00:00:00.000Z",
456
- "organization_id": 100,
457
- "organization_name": "AFFINION",
458
- "organization_customer_identifier": "100",
459
- "filter_id": 3,
460
- "filter_name": "All Categories except EDUCATION ONLY",
461
- "filter": "{\"offers\":[{\"terms\":{\"offer_set\":[\"DISCOUNT\"]}},{\"or\":[{\"terms\":{\"categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"categories\":[{\"or\":[{\"terms\":{\"category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"stores\":[{\"or\":[{\"terms\":{\"store_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"store_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"locations\":[{\"or\":[{\"terms\":{\"location_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"location_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}]}",
462
- "program_filter_id": 2,
463
- "domains": [
464
-
465
- ],
466
- "application_scopes": [
467
- "api",
468
- "amt",
469
- "docs",
470
- "internal"
471
- ],
472
- "token_status": "valid",
473
- "links": {
474
- "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/3831"
184
+ "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/503/access_tokens/523"
475
185
  }
476
186
  }
477
187
  ]
478
188
  }
479
189
  http_version:
480
- recorded_at: Mon, 22 Feb 2016 23:27:13 GMT
190
+ recorded_at: Sun, 01 Jul 2018 04:19:31 GMT
481
191
  - request:
482
192
  method: get
483
- uri: https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens?per_page=1
193
+ uri: https://token-stage.adcrws.com/v1/oauth_applications/503/access_tokens?per_page=1
484
194
  body:
485
195
  encoding: US-ASCII
486
196
  string: ''
@@ -497,15 +207,13 @@ http_interactions:
497
207
  message: OK
498
208
  headers:
499
209
  Server:
500
- - nginx/1.8.0
210
+ - nginx/1.12.2
501
211
  Date:
502
- - Mon, 22 Feb 2016 23:28:34 GMT
212
+ - Sun, 01 Jul 2018 04:24:24 GMT
503
213
  Content-Type:
504
214
  - application/json
505
215
  Transfer-Encoding:
506
216
  - chunked
507
- Connection:
508
- - keep-alive
509
217
  X-Frame-Options:
510
218
  - SAMEORIGIN
511
219
  X-Xss-Protection:
@@ -520,201 +228,58 @@ http_interactions:
520
228
  - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
521
229
  Access-Control-Max-Age:
522
230
  - '1728000'
231
+ X-Ratelimit-Limit:
232
+ - '10000'
233
+ X-Ratelimit-Remaining:
234
+ - '9891'
523
235
  Etag:
524
- - '"d74f503c9be84187ed53874b43e3b80a"'
236
+ - '"b113acf22d793bbb1cf58213d86e2fe7"'
525
237
  Cache-Control:
526
238
  - max-age=0, private, must-revalidate
527
239
  X-Request-Id:
528
- - 819796e1-df0d-4c64-b24b-b9886f4de218
240
+ - 005a6000-fa70-4ba3-98b1-e3770ef9cece
529
241
  X-Runtime:
530
- - '0.116815'
242
+ - '0.039355'
531
243
  body:
532
244
  encoding: UTF-8
533
245
  string: |-
534
246
  {
535
247
  "access_tokens": [
536
248
  {
537
- "application_id": 9,
538
- "token": "68214283dc396fcb2f5c6442dae8c461718be2df77a19cc822f1f4f2953e13f3",
539
- "expires_in": null,
540
- "revoked_at": "2015-04-07T20:51:38.223Z",
541
- "created_at": "2015-04-02T22:35:55.225Z",
542
- "oauth_access_token_id": 11,
543
- "application_name": "Great FUN - Connexions",
544
- "application_owner_id": 9,
545
- "application_owner_type": "Program",
546
- "program_id": 106,
547
- "program_name": "Great FUN",
548
- "program_customer_identifier": "10792",
549
- "program_start_dts": "2012-04-12T21:10:31.633Z",
550
- "program_end_dts": "2025-12-31T00:00:00.000Z",
551
- "organization_id": 100,
552
- "organization_name": "AFFINION",
553
- "organization_customer_identifier": "100",
554
- "filter_id": 3,
555
- "filter_name": "All Categories except EDUCATION ONLY",
556
- "filter": "{\"offers\":[{\"terms\":{\"offer_set\":[\"DISCOUNT\"]}},{\"or\":[{\"terms\":{\"categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"categories\":[{\"or\":[{\"terms\":{\"category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"stores\":[{\"or\":[{\"terms\":{\"store_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"store_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"locations\":[{\"or\":[{\"terms\":{\"location_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"location_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}]}",
557
- "program_filter_id": 2,
558
- "domains": [
559
-
560
- ],
561
- "application_scopes": [
562
- "api",
563
- "amt",
564
- "docs",
565
- "internal"
566
- ],
567
- "token_status": "revoked",
568
- "links": {
569
- "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/11"
570
- }
571
- },
572
- {
573
- "application_id": 9,
574
- "token": "e09a8a65c9d733656252ce480ce125e37100592adf5449b0570d7ebc3df85b95",
575
- "expires_in": null,
576
- "revoked_at": null,
577
- "created_at": "2015-04-07T20:52:03.641Z",
578
- "oauth_access_token_id": 501,
579
- "application_name": "Great FUN - Connexions",
580
- "application_owner_id": 9,
581
- "application_owner_type": "Program",
582
- "program_id": 106,
583
- "program_name": "Great FUN",
584
- "program_customer_identifier": "10792",
585
- "program_start_dts": "2012-04-12T21:10:31.633Z",
586
- "program_end_dts": "2025-12-31T00:00:00.000Z",
587
- "organization_id": 100,
588
- "organization_name": "AFFINION",
589
- "organization_customer_identifier": "100",
590
- "filter_id": 3,
591
- "filter_name": "All Categories except EDUCATION ONLY",
592
- "filter": "{\"offers\":[{\"terms\":{\"offer_set\":[\"DISCOUNT\"]}},{\"or\":[{\"terms\":{\"categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"categories\":[{\"or\":[{\"terms\":{\"category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"stores\":[{\"or\":[{\"terms\":{\"store_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"store_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"locations\":[{\"or\":[{\"terms\":{\"location_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"location_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}]}",
593
- "program_filter_id": 2,
594
- "domains": [
595
-
596
- ],
597
- "application_scopes": [
598
- "api",
599
- "amt",
600
- "docs",
601
- "internal"
602
- ],
603
- "token_status": "valid",
604
- "links": {
605
- "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/501"
606
- }
607
- },
608
- {
609
- "application_id": 9,
610
- "token": "cfe9e37bb0b3ea4244760291d90216837167e9b0e721585947c123e001319aef",
611
- "expires_in": null,
612
- "revoked_at": "2015-04-07T20:52:11.814Z",
613
- "created_at": "2015-04-07T19:59:16.555Z",
614
- "oauth_access_token_id": 500,
615
- "application_name": "Great FUN - Connexions",
616
- "application_owner_id": 9,
617
- "application_owner_type": "Program",
618
- "program_id": 106,
619
- "program_name": "Great FUN",
620
- "program_customer_identifier": "10792",
621
- "program_start_dts": "2012-04-12T21:10:31.633Z",
622
- "program_end_dts": "2025-12-31T00:00:00.000Z",
623
- "organization_id": 100,
624
- "organization_name": "AFFINION",
625
- "organization_customer_identifier": "100",
626
- "filter_id": 3,
627
- "filter_name": "All Categories except EDUCATION ONLY",
628
- "filter": "{\"offers\":[{\"terms\":{\"offer_set\":[\"DISCOUNT\"]}},{\"or\":[{\"terms\":{\"categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"categories\":[{\"or\":[{\"terms\":{\"category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"stores\":[{\"or\":[{\"terms\":{\"store_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"store_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"locations\":[{\"or\":[{\"terms\":{\"location_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"location_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}]}",
629
- "program_filter_id": 2,
630
- "domains": [
631
-
632
- ],
633
- "application_scopes": [
634
- "api",
635
- "amt",
636
- "docs",
637
- "internal"
638
- ],
639
- "token_status": "revoked",
640
- "links": {
641
- "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/500"
642
- }
643
- },
644
- {
645
- "application_id": 9,
646
- "token": "ad68ea1539b2cf47d33d3866650b50cb68212c6353b60e9e07921b11b479221c",
647
- "expires_in": null,
648
- "revoked_at": "2015-07-09T20:33:30.070Z",
649
- "created_at": "2015-07-09T19:34:36.800Z",
650
- "oauth_access_token_id": 3812,
651
- "application_name": "Great FUN - Connexions",
652
- "application_owner_id": 9,
653
- "application_owner_type": "Program",
654
- "program_id": 106,
655
- "program_name": "Great FUN",
656
- "program_customer_identifier": "10792",
657
- "program_start_dts": "2012-04-12T21:10:31.633Z",
658
- "program_end_dts": "2025-12-31T00:00:00.000Z",
659
- "organization_id": 100,
660
- "organization_name": "AFFINION",
661
- "organization_customer_identifier": "100",
662
- "filter_id": 3,
663
- "filter_name": "All Categories except EDUCATION ONLY",
664
- "filter": "{\"offers\":[{\"terms\":{\"offer_set\":[\"DISCOUNT\"]}},{\"or\":[{\"terms\":{\"categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"categories\":[{\"or\":[{\"terms\":{\"category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"stores\":[{\"or\":[{\"terms\":{\"store_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"store_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"locations\":[{\"or\":[{\"terms\":{\"location_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"location_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}]}",
665
- "program_filter_id": 2,
666
- "domains": [
667
-
668
- ],
669
- "application_scopes": [
670
- "api",
671
- "amt",
672
- "docs",
673
- "internal"
674
- ],
675
- "token_status": "revoked",
676
- "links": {
677
- "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/3812"
678
- }
679
- },
680
- {
681
- "application_id": 9,
682
- "token": "c0c578c72e0a7200403511d55671b793f11eece61cb1b724f81b131bc5f19d66",
249
+ "application_id": 503,
250
+ "token": "c30f1d24a8c10e0fd3e36bc4fe79631025e890849b7deb6dc830e31a3c571393",
683
251
  "expires_in": null,
684
252
  "revoked_at": null,
685
- "created_at": "2015-07-28T16:12:19.388Z",
686
- "oauth_access_token_id": 3831,
687
- "application_name": "Great FUN - Connexions",
688
- "application_owner_id": 9,
253
+ "created_at": "2015-05-04T18:51:26.621Z",
254
+ "oauth_access_token_id": 523,
255
+ "application_name": "TCICP Travel Services (pcid:200073)",
256
+ "application_owner_id": 503,
689
257
  "application_owner_type": "Program",
690
- "program_id": 106,
691
- "program_name": "Great FUN",
692
- "program_customer_identifier": "10792",
693
- "program_start_dts": "2012-04-12T21:10:31.633Z",
694
- "program_end_dts": "2025-12-31T00:00:00.000Z",
695
- "organization_id": 100,
696
- "organization_name": "AFFINION",
697
- "organization_customer_identifier": "100",
698
- "filter_id": 3,
699
- "filter_name": "All Categories except EDUCATION ONLY",
700
- "filter": "{\"offers\":[{\"terms\":{\"offer_set\":[\"DISCOUNT\"]}},{\"or\":[{\"terms\":{\"categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"categories\":[{\"or\":[{\"terms\":{\"category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"stores\":[{\"or\":[{\"terms\":{\"store_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"store_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"locations\":[{\"or\":[{\"terms\":{\"location_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"location_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}]}",
701
- "program_filter_id": 2,
258
+ "program_id": 253970117,
259
+ "program_name": "TCICP Travel Services",
260
+ "program_customer_identifier": "200073",
261
+ "program_start_dts": "2015-05-04T12:51:07.219Z",
262
+ "program_end_dts": "2015-12-04T00:00:00.000Z",
263
+ "organization_id": 2001964,
264
+ "organization_name": "TCICP Travel Services",
265
+ "organization_customer_identifier": "2001964",
266
+ "filter_id": 23,
267
+ "filter_name": "ACCESS PERKS - PROFESSIONAL (auto, car rental, dining, entertainment/rec, health/beauty, hotel, shopping)",
268
+ "filter": "{\"offers\":[{\"term\":{\"offer_set\":\"DISCOUNT\"}},{\"bool\":{\"should\":[{\"terms\":{\"categories.category_key\":[51,58,39,59,53,44,45]}},{\"terms\":{\"categories.category_parent_key\":[51,58,39,59,53,44,45]}}]}}],\"categories\":[{\"bool\":{\"should\":[{\"terms\":{\"category_key\":[51,58,39,59,53,44,45]}},{\"terms\":{\"category_parent_key\":[51,58,39,59,53,44,45]}}]}}],\"stores\":[{\"bool\":{\"should\":[{\"terms\":{\"store_categories.category_key\":[51,58,39,59,53,44,45]}},{\"terms\":{\"store_categories.category_parent_key\":[51,58,39,59,53,44,45]}}]}}],\"locations\":[{\"bool\":{\"should\":[{\"terms\":{\"location_categories.category_key\":[51,58,39,59,53,44,45]}},{\"terms\":{\"location_categories.category_parent_key\":[51,58,39,59,53,44,45]}}]}}]}",
269
+ "program_filter_id": 502,
702
270
  "domains": [
703
271
 
704
272
  ],
705
273
  "application_scopes": [
706
- "api",
707
- "amt",
708
- "docs",
709
- "internal"
274
+ "api"
710
275
  ],
711
- "token_status": "valid",
276
+ "token_status": "inactive",
712
277
  "links": {
713
- "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/3831"
278
+ "show_token": "https://token-stage.adcrws.com/v1/oauth_applications/503/access_tokens/523"
714
279
  }
715
280
  }
716
281
  ]
717
282
  }
718
283
  http_version:
719
- recorded_at: Mon, 22 Feb 2016 23:28:36 GMT
720
- recorded_with: VCR 3.0.1
284
+ recorded_at: Sun, 01 Jul 2018 04:24:24 GMT
285
+ recorded_with: VCR 4.0.0