access 1.1.7 → 2.0.0
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.
- checksums.yaml +4 -4
 - data/.coveralls.yml +1 -0
 - data/.gitignore +2 -0
 - data/.travis.yml +12 -0
 - data/Guardfile +7 -0
 - data/README.md +159 -23
 - data/Rakefile +13 -0
 - data/access.gemspec +6 -1
 - data/bin/console +14 -0
 - data/bin/setup +7 -0
 - data/lib/access.rb +21 -10
 - data/lib/access/api.rb +188 -64
 - data/lib/access/autocomplete.rb +11 -0
 - data/lib/access/campaign.rb +24 -0
 - data/lib/access/category.rb +16 -2
 - data/lib/access/channel.rb +24 -0
 - data/lib/access/city_savings.rb +16 -0
 - data/lib/access/config.rb +8 -7
 - data/lib/access/error.rb +8 -2
 - data/lib/access/filter.rb +30 -2
 - data/lib/access/info.rb +13 -0
 - data/lib/access/link.rb +17 -0
 - data/lib/access/location.rb +17 -2
 - data/lib/access/member.rb +11 -0
 - data/lib/access/oauth_application.rb +31 -0
 - data/lib/access/offer.rb +24 -20
 - data/lib/access/redeem.rb +11 -4
 - data/lib/access/report.rb +10 -0
 - data/lib/access/request.rb +25 -20
 - data/lib/access/response.rb +127 -0
 - data/lib/access/spot.rb +28 -0
 - data/lib/access/store.rb +16 -2
 - data/lib/access/token.rb +18 -0
 - data/lib/access/verify.rb +11 -2
 - data/lib/access/version.rb +1 -1
 - data/test/access/autocomplete_test.rb +53 -0
 - data/test/access/category_test.rb +64 -0
 - data/test/access/city_savings_test.rb +5 -0
 - data/test/access/filter_test.rb +40 -0
 - data/test/access/location_test.rb +59 -0
 - data/test/access/member_test.rb +5 -0
 - data/test/access/oauth_application_test.rb +91 -0
 - data/test/access/offer_test.rb +71 -0
 - data/test/access/redeem_test.rb +38 -0
 - data/test/access/report_test.rb +36 -0
 - data/test/access/store_test.rb +65 -0
 - data/test/access/token_test.rb +35 -0
 - data/test/access/verify_test.rb +29 -0
 - data/test/access/version_test.rb +9 -0
 - data/test/fixtures/autocomplete_search.yml +207 -0
 - data/test/fixtures/autocomplete_search_categories.yml +181 -0
 - data/test/fixtures/autocomplete_search_locations.yml +173 -0
 - data/test/fixtures/autocomplete_search_offers.yml +181 -0
 - data/test/fixtures/autocomplete_search_stores.yml +185 -0
 - data/test/fixtures/category_find.yml +303 -0
 - data/test/fixtures/category_search.yml +683 -0
 - data/test/fixtures/category_search_fail_member_key.yml +102 -0
 - data/test/fixtures/filter_find.yml +70 -0
 - data/test/fixtures/filter_search.yml +195 -0
 - data/test/fixtures/location_find.yml +923 -0
 - data/test/fixtures/location_search.yml +378 -0
 - data/test/fixtures/location_search_fail_member_key.yml +367 -0
 - data/test/fixtures/national_stores.yml +4135 -0
 - data/test/fixtures/oauth_application_find.yml +163 -0
 - data/test/fixtures/oauth_application_search.yml +134 -0
 - data/test/fixtures/oauth_application_search_fail_member_key.yml +268 -0
 - data/test/fixtures/oauth_application_token_find.yml +249 -0
 - data/test/fixtures/oauth_application_token_search.yml +98 -0
 - data/test/fixtures/offer_find.yml +683 -0
 - data/test/fixtures/offer_search.yml +329 -0
 - data/test/fixtures/offer_search_fail_member_key.yml +102 -0
 - data/test/fixtures/redeem_offer_no_redeem_type.yml +423 -0
 - data/test/fixtures/store_find.yml +333 -0
 - data/test/fixtures/store_search.yml +227 -0
 - data/test/fixtures/store_search_fail_member_key.yml +102 -0
 - data/test/fixtures/subcategory_find.yml +283 -0
 - data/test/fixtures/token_find.yml +245 -0
 - data/test/fixtures/token_search.yml +301 -0
 - data/test/fixtures/verify_filter.yml +290 -0
 - data/test/fixtures/verify_token.yml +78 -0
 - data/test/test_helper.rb +15 -0
 - metadata +183 -11
 - data/test/offers/offer_test.rb +0 -5
 
| 
         @@ -0,0 +1,102 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            ---
         
     | 
| 
      
 2 
     | 
    
         
            +
            http_interactions:
         
     | 
| 
      
 3 
     | 
    
         
            +
            - request:
         
     | 
| 
      
 4 
     | 
    
         
            +
                method: get
         
     | 
| 
      
 5 
     | 
    
         
            +
                uri: https://offer-demo.adcrws.com/v1/stores
         
     | 
| 
      
 6 
     | 
    
         
            +
                body:
         
     | 
| 
      
 7 
     | 
    
         
            +
                  encoding: UTF-8
         
     | 
| 
      
 8 
     | 
    
         
            +
                  string: query=pizza
         
     | 
| 
      
 9 
     | 
    
         
            +
                headers:
         
     | 
| 
      
 10 
     | 
    
         
            +
                  Access-Token:
         
     | 
| 
      
 11 
     | 
    
         
            +
                  - token_without_limit
         
     | 
| 
      
 12 
     | 
    
         
            +
                  Content-Type:
         
     | 
| 
      
 13 
     | 
    
         
            +
                  - application/json
         
     | 
| 
      
 14 
     | 
    
         
            +
                  Accept:
         
     | 
| 
      
 15 
     | 
    
         
            +
                  - application/json
         
     | 
| 
      
 16 
     | 
    
         
            +
              response:
         
     | 
| 
      
 17 
     | 
    
         
            +
                status:
         
     | 
| 
      
 18 
     | 
    
         
            +
                  code: 400
         
     | 
| 
      
 19 
     | 
    
         
            +
                  message: Bad Request
         
     | 
| 
      
 20 
     | 
    
         
            +
                headers:
         
     | 
| 
      
 21 
     | 
    
         
            +
                  Content-Type:
         
     | 
| 
      
 22 
     | 
    
         
            +
                  - application/json
         
     | 
| 
      
 23 
     | 
    
         
            +
                  Date:
         
     | 
| 
      
 24 
     | 
    
         
            +
                  - Thu, 06 Aug 2015 17:30:03 GMT
         
     | 
| 
      
 25 
     | 
    
         
            +
                  Server:
         
     | 
| 
      
 26 
     | 
    
         
            +
                  - nginx/1.6.2
         
     | 
| 
      
 27 
     | 
    
         
            +
                  Strict-Transport-Security:
         
     | 
| 
      
 28 
     | 
    
         
            +
                  - max-age=31536000
         
     | 
| 
      
 29 
     | 
    
         
            +
                  X-Request-Id:
         
     | 
| 
      
 30 
     | 
    
         
            +
                  - 44e0c22c-e86d-46a1-8bcf-078bd1b391d1
         
     | 
| 
      
 31 
     | 
    
         
            +
                  X-Runtime:
         
     | 
| 
      
 32 
     | 
    
         
            +
                  - '0.000240'
         
     | 
| 
      
 33 
     | 
    
         
            +
                  Content-Length:
         
     | 
| 
      
 34 
     | 
    
         
            +
                  - '112'
         
     | 
| 
      
 35 
     | 
    
         
            +
                  Connection:
         
     | 
| 
      
 36 
     | 
    
         
            +
                  - keep-alive
         
     | 
| 
      
 37 
     | 
    
         
            +
                body:
         
     | 
| 
      
 38 
     | 
    
         
            +
                  encoding: UTF-8
         
     | 
| 
      
 39 
     | 
    
         
            +
                  string: '{"status":400,"message":"There was a problem in the JSON you submitted:
         
     | 
| 
      
 40 
     | 
    
         
            +
                    795: unexpected token at ''query=pizza''"}'
         
     | 
| 
      
 41 
     | 
    
         
            +
                http_version: 
         
     | 
| 
      
 42 
     | 
    
         
            +
              recorded_at: Thu, 06 Aug 2015 17:30:03 GMT
         
     | 
| 
      
 43 
     | 
    
         
            +
            - request:
         
     | 
| 
      
 44 
     | 
    
         
            +
                method: get
         
     | 
| 
      
 45 
     | 
    
         
            +
                uri: https://offer-demo.adcrws.com/v1/stores?query=pizza
         
     | 
| 
      
 46 
     | 
    
         
            +
                body:
         
     | 
| 
      
 47 
     | 
    
         
            +
                  encoding: US-ASCII
         
     | 
| 
      
 48 
     | 
    
         
            +
                  string: ''
         
     | 
| 
      
 49 
     | 
    
         
            +
                headers:
         
     | 
| 
      
 50 
     | 
    
         
            +
                  Access-Token:
         
     | 
| 
      
 51 
     | 
    
         
            +
                  - token_without_limit
         
     | 
| 
      
 52 
     | 
    
         
            +
                  Content-Type:
         
     | 
| 
      
 53 
     | 
    
         
            +
                  - application/json
         
     | 
| 
      
 54 
     | 
    
         
            +
                  Accept:
         
     | 
| 
      
 55 
     | 
    
         
            +
                  - application/json
         
     | 
| 
      
 56 
     | 
    
         
            +
              response:
         
     | 
| 
      
 57 
     | 
    
         
            +
                status:
         
     | 
| 
      
 58 
     | 
    
         
            +
                  code: 401
         
     | 
| 
      
 59 
     | 
    
         
            +
                  message: Unauthorized
         
     | 
| 
      
 60 
     | 
    
         
            +
                headers:
         
     | 
| 
      
 61 
     | 
    
         
            +
                  Access-Control-Allow-Headers:
         
     | 
| 
      
 62 
     | 
    
         
            +
                  - Origin,  X-Requested-With, Content-Type, Accept, Authorization, Access-Token
         
     | 
| 
      
 63 
     | 
    
         
            +
                  Access-Control-Allow-Methods:
         
     | 
| 
      
 64 
     | 
    
         
            +
                  - POST, GET, PUT, DELETE, OPTIONS
         
     | 
| 
      
 65 
     | 
    
         
            +
                  Access-Control-Max-Age:
         
     | 
| 
      
 66 
     | 
    
         
            +
                  - '1728000'
         
     | 
| 
      
 67 
     | 
    
         
            +
                  Access-Control-Request-Method:
         
     | 
| 
      
 68 
     | 
    
         
            +
                  - GET
         
     | 
| 
      
 69 
     | 
    
         
            +
                  Cache-Control:
         
     | 
| 
      
 70 
     | 
    
         
            +
                  - no-cache
         
     | 
| 
      
 71 
     | 
    
         
            +
                  Content-Type:
         
     | 
| 
      
 72 
     | 
    
         
            +
                  - application/json
         
     | 
| 
      
 73 
     | 
    
         
            +
                  Date:
         
     | 
| 
      
 74 
     | 
    
         
            +
                  - Wed, 12 Aug 2015 17:46:32 GMT
         
     | 
| 
      
 75 
     | 
    
         
            +
                  Server:
         
     | 
| 
      
 76 
     | 
    
         
            +
                  - nginx/1.6.2
         
     | 
| 
      
 77 
     | 
    
         
            +
                  Strict-Transport-Security:
         
     | 
| 
      
 78 
     | 
    
         
            +
                  - max-age=31536000
         
     | 
| 
      
 79 
     | 
    
         
            +
                  X-Content-Type-Options:
         
     | 
| 
      
 80 
     | 
    
         
            +
                  - nosniff
         
     | 
| 
      
 81 
     | 
    
         
            +
                  X-Frame-Options:
         
     | 
| 
      
 82 
     | 
    
         
            +
                  - SAMEORIGIN
         
     | 
| 
      
 83 
     | 
    
         
            +
                  X-Request-Id:
         
     | 
| 
      
 84 
     | 
    
         
            +
                  - 675a4f83-ecc7-4f02-ac7d-2fc28bd48451
         
     | 
| 
      
 85 
     | 
    
         
            +
                  X-Runtime:
         
     | 
| 
      
 86 
     | 
    
         
            +
                  - '0.008433'
         
     | 
| 
      
 87 
     | 
    
         
            +
                  X-Xss-Protection:
         
     | 
| 
      
 88 
     | 
    
         
            +
                  - 1; mode=block
         
     | 
| 
      
 89 
     | 
    
         
            +
                  Transfer-Encoding:
         
     | 
| 
      
 90 
     | 
    
         
            +
                  - chunked
         
     | 
| 
      
 91 
     | 
    
         
            +
                  Connection:
         
     | 
| 
      
 92 
     | 
    
         
            +
                  - keep-alive
         
     | 
| 
      
 93 
     | 
    
         
            +
                body:
         
     | 
| 
      
 94 
     | 
    
         
            +
                  encoding: UTF-8
         
     | 
| 
      
 95 
     | 
    
         
            +
                  string: |-
         
     | 
| 
      
 96 
     | 
    
         
            +
                    {
         
     | 
| 
      
 97 
     | 
    
         
            +
                      "message": "Must include a member_key to see details.",
         
     | 
| 
      
 98 
     | 
    
         
            +
                      "status": 401
         
     | 
| 
      
 99 
     | 
    
         
            +
                    }
         
     | 
| 
      
 100 
     | 
    
         
            +
                http_version: 
         
     | 
| 
      
 101 
     | 
    
         
            +
              recorded_at: Wed, 12 Aug 2015 17:46:32 GMT
         
     | 
| 
      
 102 
     | 
    
         
            +
            recorded_with: VCR 2.9.3
         
     | 
| 
         @@ -0,0 +1,283 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            ---
         
     | 
| 
      
 2 
     | 
    
         
            +
            http_interactions:
         
     | 
| 
      
 3 
     | 
    
         
            +
            - request:
         
     | 
| 
      
 4 
     | 
    
         
            +
                method: get
         
     | 
| 
      
 5 
     | 
    
         
            +
                uri: https://offer-demo.adcrws.com/v1/categories/1000?member_key=guest
         
     | 
| 
      
 6 
     | 
    
         
            +
                body:
         
     | 
| 
      
 7 
     | 
    
         
            +
                  encoding: US-ASCII
         
     | 
| 
      
 8 
     | 
    
         
            +
                  string: ''
         
     | 
| 
      
 9 
     | 
    
         
            +
                headers:
         
     | 
| 
      
 10 
     | 
    
         
            +
                  Access-Token:
         
     | 
| 
      
 11 
     | 
    
         
            +
                  - token_without_limit
         
     | 
| 
      
 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 
     | 
    
         
            +
                  - Thu, 06 Aug 2015 17:51:01 GMT
         
     | 
| 
      
 35 
     | 
    
         
            +
                  Etag:
         
     | 
| 
      
 36 
     | 
    
         
            +
                  - '"2ded6201c8066957f09645cfbac4b1a6"'
         
     | 
| 
      
 37 
     | 
    
         
            +
                  Server:
         
     | 
| 
      
 38 
     | 
    
         
            +
                  - nginx/1.6.2
         
     | 
| 
      
 39 
     | 
    
         
            +
                  Strict-Transport-Security:
         
     | 
| 
      
 40 
     | 
    
         
            +
                  - max-age=31536000
         
     | 
| 
      
 41 
     | 
    
         
            +
                  X-Content-Type-Options:
         
     | 
| 
      
 42 
     | 
    
         
            +
                  - nosniff
         
     | 
| 
      
 43 
     | 
    
         
            +
                  X-Frame-Options:
         
     | 
| 
      
 44 
     | 
    
         
            +
                  - SAMEORIGIN
         
     | 
| 
      
 45 
     | 
    
         
            +
                  X-Request-Id:
         
     | 
| 
      
 46 
     | 
    
         
            +
                  - 6d6c6466-3aad-4038-8fdb-366607eb895a
         
     | 
| 
      
 47 
     | 
    
         
            +
                  X-Runtime:
         
     | 
| 
      
 48 
     | 
    
         
            +
                  - '0.021030'
         
     | 
| 
      
 49 
     | 
    
         
            +
                  X-Xss-Protection:
         
     | 
| 
      
 50 
     | 
    
         
            +
                  - 1; mode=block
         
     | 
| 
      
 51 
     | 
    
         
            +
                  Content-Length:
         
     | 
| 
      
 52 
     | 
    
         
            +
                  - '3360'
         
     | 
| 
      
 53 
     | 
    
         
            +
                  Connection:
         
     | 
| 
      
 54 
     | 
    
         
            +
                  - keep-alive
         
     | 
| 
      
 55 
     | 
    
         
            +
                body:
         
     | 
| 
      
 56 
     | 
    
         
            +
                  encoding: UTF-8
         
     | 
| 
      
 57 
     | 
    
         
            +
                  string: |-
         
     | 
| 
      
 58 
     | 
    
         
            +
                    {
         
     | 
| 
      
 59 
     | 
    
         
            +
                      "categories": [
         
     | 
| 
      
 60 
     | 
    
         
            +
                        {
         
     | 
| 
      
 61 
     | 
    
         
            +
                          "category_name": "Auto Body & Paint",
         
     | 
| 
      
 62 
     | 
    
         
            +
                          "category_key": 1000,
         
     | 
| 
      
 63 
     | 
    
         
            +
                          "category_type": "subcategory",
         
     | 
| 
      
 64 
     | 
    
         
            +
                          "category_parent_name": "Automotive",
         
     | 
| 
      
 65 
     | 
    
         
            +
                          "category_parent_key": 51,
         
     | 
| 
      
 66 
     | 
    
         
            +
                          "links": {
         
     | 
| 
      
 67 
     | 
    
         
            +
                            "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51",
         
     | 
| 
      
 68 
     | 
    
         
            +
                            "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1000"
         
     | 
| 
      
 69 
     | 
    
         
            +
                          },
         
     | 
| 
      
 70 
     | 
    
         
            +
                          "subcategory_siblings": [
         
     | 
| 
      
 71 
     | 
    
         
            +
                            {
         
     | 
| 
      
 72 
     | 
    
         
            +
                              "category_name": "Auto Parts",
         
     | 
| 
      
 73 
     | 
    
         
            +
                              "category_key": 1001,
         
     | 
| 
      
 74 
     | 
    
         
            +
                              "category_type": "subcategory",
         
     | 
| 
      
 75 
     | 
    
         
            +
                              "category_parent_key": 51,
         
     | 
| 
      
 76 
     | 
    
         
            +
                              "links": {
         
     | 
| 
      
 77 
     | 
    
         
            +
                                "show_category": "https://offer-demo.adcrws.com/v1/categories/1001",
         
     | 
| 
      
 78 
     | 
    
         
            +
                                "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51",
         
     | 
| 
      
 79 
     | 
    
         
            +
                                "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1001"
         
     | 
| 
      
 80 
     | 
    
         
            +
                              }
         
     | 
| 
      
 81 
     | 
    
         
            +
                            },
         
     | 
| 
      
 82 
     | 
    
         
            +
                            {
         
     | 
| 
      
 83 
     | 
    
         
            +
                              "category_name": "Auto Service & Repair",
         
     | 
| 
      
 84 
     | 
    
         
            +
                              "category_key": 1002,
         
     | 
| 
      
 85 
     | 
    
         
            +
                              "category_type": "subcategory",
         
     | 
| 
      
 86 
     | 
    
         
            +
                              "category_parent_key": 51,
         
     | 
| 
      
 87 
     | 
    
         
            +
                              "links": {
         
     | 
| 
      
 88 
     | 
    
         
            +
                                "show_category": "https://offer-demo.adcrws.com/v1/categories/1002",
         
     | 
| 
      
 89 
     | 
    
         
            +
                                "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51",
         
     | 
| 
      
 90 
     | 
    
         
            +
                                "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1002"
         
     | 
| 
      
 91 
     | 
    
         
            +
                              }
         
     | 
| 
      
 92 
     | 
    
         
            +
                            },
         
     | 
| 
      
 93 
     | 
    
         
            +
                            {
         
     | 
| 
      
 94 
     | 
    
         
            +
                              "category_name": "Car Wash & Detail",
         
     | 
| 
      
 95 
     | 
    
         
            +
                              "category_key": 1003,
         
     | 
| 
      
 96 
     | 
    
         
            +
                              "category_type": "subcategory",
         
     | 
| 
      
 97 
     | 
    
         
            +
                              "category_parent_key": 51,
         
     | 
| 
      
 98 
     | 
    
         
            +
                              "links": {
         
     | 
| 
      
 99 
     | 
    
         
            +
                                "show_category": "https://offer-demo.adcrws.com/v1/categories/1003",
         
     | 
| 
      
 100 
     | 
    
         
            +
                                "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51",
         
     | 
| 
      
 101 
     | 
    
         
            +
                                "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1003"
         
     | 
| 
      
 102 
     | 
    
         
            +
                              }
         
     | 
| 
      
 103 
     | 
    
         
            +
                            },
         
     | 
| 
      
 104 
     | 
    
         
            +
                            {
         
     | 
| 
      
 105 
     | 
    
         
            +
                              "category_name": "Gas Station",
         
     | 
| 
      
 106 
     | 
    
         
            +
                              "category_key": 1004,
         
     | 
| 
      
 107 
     | 
    
         
            +
                              "category_type": "subcategory",
         
     | 
| 
      
 108 
     | 
    
         
            +
                              "category_parent_key": 51,
         
     | 
| 
      
 109 
     | 
    
         
            +
                              "links": {
         
     | 
| 
      
 110 
     | 
    
         
            +
                                "show_category": "https://offer-demo.adcrws.com/v1/categories/1004",
         
     | 
| 
      
 111 
     | 
    
         
            +
                                "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51",
         
     | 
| 
      
 112 
     | 
    
         
            +
                                "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1004"
         
     | 
| 
      
 113 
     | 
    
         
            +
                              }
         
     | 
| 
      
 114 
     | 
    
         
            +
                            },
         
     | 
| 
      
 115 
     | 
    
         
            +
                            {
         
     | 
| 
      
 116 
     | 
    
         
            +
                              "category_name": "Tires",
         
     | 
| 
      
 117 
     | 
    
         
            +
                              "category_key": 1005,
         
     | 
| 
      
 118 
     | 
    
         
            +
                              "category_type": "subcategory",
         
     | 
| 
      
 119 
     | 
    
         
            +
                              "category_parent_key": 51,
         
     | 
| 
      
 120 
     | 
    
         
            +
                              "links": {
         
     | 
| 
      
 121 
     | 
    
         
            +
                                "show_category": "https://offer-demo.adcrws.com/v1/categories/1005",
         
     | 
| 
      
 122 
     | 
    
         
            +
                                "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51",
         
     | 
| 
      
 123 
     | 
    
         
            +
                                "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1005"
         
     | 
| 
      
 124 
     | 
    
         
            +
                              }
         
     | 
| 
      
 125 
     | 
    
         
            +
                            },
         
     | 
| 
      
 126 
     | 
    
         
            +
                            {
         
     | 
| 
      
 127 
     | 
    
         
            +
                              "category_name": "Auto Sales & Warranties",
         
     | 
| 
      
 128 
     | 
    
         
            +
                              "category_key": 1006,
         
     | 
| 
      
 129 
     | 
    
         
            +
                              "category_type": "subcategory",
         
     | 
| 
      
 130 
     | 
    
         
            +
                              "category_parent_key": 51,
         
     | 
| 
      
 131 
     | 
    
         
            +
                              "links": {
         
     | 
| 
      
 132 
     | 
    
         
            +
                                "show_category": "https://offer-demo.adcrws.com/v1/categories/1006",
         
     | 
| 
      
 133 
     | 
    
         
            +
                                "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51",
         
     | 
| 
      
 134 
     | 
    
         
            +
                                "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1006"
         
     | 
| 
      
 135 
     | 
    
         
            +
                              }
         
     | 
| 
      
 136 
     | 
    
         
            +
                            }
         
     | 
| 
      
 137 
     | 
    
         
            +
                          ]
         
     | 
| 
      
 138 
     | 
    
         
            +
                        }
         
     | 
| 
      
 139 
     | 
    
         
            +
                      ]
         
     | 
| 
      
 140 
     | 
    
         
            +
                    }
         
     | 
| 
      
 141 
     | 
    
         
            +
                http_version: 
         
     | 
| 
      
 142 
     | 
    
         
            +
              recorded_at: Thu, 06 Aug 2015 17:51:01 GMT
         
     | 
| 
      
 143 
     | 
    
         
            +
            - request:
         
     | 
| 
      
 144 
     | 
    
         
            +
                method: get
         
     | 
| 
      
 145 
     | 
    
         
            +
                uri: https://offer-demo.adcrws.com/v1/categories/1000?member_key=API_RUBY_GEM_TEST
         
     | 
| 
      
 146 
     | 
    
         
            +
                body:
         
     | 
| 
      
 147 
     | 
    
         
            +
                  encoding: US-ASCII
         
     | 
| 
      
 148 
     | 
    
         
            +
                  string: ''
         
     | 
| 
      
 149 
     | 
    
         
            +
                headers:
         
     | 
| 
      
 150 
     | 
    
         
            +
                  Access-Token:
         
     | 
| 
      
 151 
     | 
    
         
            +
                  - token_without_limit
         
     | 
| 
      
 152 
     | 
    
         
            +
                  Content-Type:
         
     | 
| 
      
 153 
     | 
    
         
            +
                  - application/json
         
     | 
| 
      
 154 
     | 
    
         
            +
                  Accept:
         
     | 
| 
      
 155 
     | 
    
         
            +
                  - application/json
         
     | 
| 
      
 156 
     | 
    
         
            +
              response:
         
     | 
| 
      
 157 
     | 
    
         
            +
                status:
         
     | 
| 
      
 158 
     | 
    
         
            +
                  code: 200
         
     | 
| 
      
 159 
     | 
    
         
            +
                  message: OK
         
     | 
| 
      
 160 
     | 
    
         
            +
                headers:
         
     | 
| 
      
 161 
     | 
    
         
            +
                  Access-Control-Allow-Headers:
         
     | 
| 
      
 162 
     | 
    
         
            +
                  - Origin,  X-Requested-With, Content-Type, Accept, Authorization, Access-Token
         
     | 
| 
      
 163 
     | 
    
         
            +
                  Access-Control-Allow-Methods:
         
     | 
| 
      
 164 
     | 
    
         
            +
                  - POST, GET, PUT, DELETE, OPTIONS
         
     | 
| 
      
 165 
     | 
    
         
            +
                  Access-Control-Max-Age:
         
     | 
| 
      
 166 
     | 
    
         
            +
                  - '1728000'
         
     | 
| 
      
 167 
     | 
    
         
            +
                  Access-Control-Request-Method:
         
     | 
| 
      
 168 
     | 
    
         
            +
                  - GET
         
     | 
| 
      
 169 
     | 
    
         
            +
                  Cache-Control:
         
     | 
| 
      
 170 
     | 
    
         
            +
                  - max-age=0, private, must-revalidate
         
     | 
| 
      
 171 
     | 
    
         
            +
                  Content-Type:
         
     | 
| 
      
 172 
     | 
    
         
            +
                  - application/json
         
     | 
| 
      
 173 
     | 
    
         
            +
                  Date:
         
     | 
| 
      
 174 
     | 
    
         
            +
                  - Wed, 12 Aug 2015 17:46:35 GMT
         
     | 
| 
      
 175 
     | 
    
         
            +
                  Etag:
         
     | 
| 
      
 176 
     | 
    
         
            +
                  - '"2ded6201c8066957f09645cfbac4b1a6"'
         
     | 
| 
      
 177 
     | 
    
         
            +
                  Server:
         
     | 
| 
      
 178 
     | 
    
         
            +
                  - nginx/1.6.2
         
     | 
| 
      
 179 
     | 
    
         
            +
                  Strict-Transport-Security:
         
     | 
| 
      
 180 
     | 
    
         
            +
                  - max-age=31536000
         
     | 
| 
      
 181 
     | 
    
         
            +
                  X-Content-Type-Options:
         
     | 
| 
      
 182 
     | 
    
         
            +
                  - nosniff
         
     | 
| 
      
 183 
     | 
    
         
            +
                  X-Frame-Options:
         
     | 
| 
      
 184 
     | 
    
         
            +
                  - SAMEORIGIN
         
     | 
| 
      
 185 
     | 
    
         
            +
                  X-Request-Id:
         
     | 
| 
      
 186 
     | 
    
         
            +
                  - 4b58d3d6-d56c-4e1e-beb1-72905287b128
         
     | 
| 
      
 187 
     | 
    
         
            +
                  X-Runtime:
         
     | 
| 
      
 188 
     | 
    
         
            +
                  - '0.015590'
         
     | 
| 
      
 189 
     | 
    
         
            +
                  X-Xss-Protection:
         
     | 
| 
      
 190 
     | 
    
         
            +
                  - 1; mode=block
         
     | 
| 
      
 191 
     | 
    
         
            +
                  Content-Length:
         
     | 
| 
      
 192 
     | 
    
         
            +
                  - '3360'
         
     | 
| 
      
 193 
     | 
    
         
            +
                  Connection:
         
     | 
| 
      
 194 
     | 
    
         
            +
                  - keep-alive
         
     | 
| 
      
 195 
     | 
    
         
            +
                body:
         
     | 
| 
      
 196 
     | 
    
         
            +
                  encoding: UTF-8
         
     | 
| 
      
 197 
     | 
    
         
            +
                  string: |-
         
     | 
| 
      
 198 
     | 
    
         
            +
                    {
         
     | 
| 
      
 199 
     | 
    
         
            +
                      "categories": [
         
     | 
| 
      
 200 
     | 
    
         
            +
                        {
         
     | 
| 
      
 201 
     | 
    
         
            +
                          "category_name": "Auto Body & Paint",
         
     | 
| 
      
 202 
     | 
    
         
            +
                          "category_key": 1000,
         
     | 
| 
      
 203 
     | 
    
         
            +
                          "category_type": "subcategory",
         
     | 
| 
      
 204 
     | 
    
         
            +
                          "category_parent_name": "Automotive",
         
     | 
| 
      
 205 
     | 
    
         
            +
                          "category_parent_key": 51,
         
     | 
| 
      
 206 
     | 
    
         
            +
                          "links": {
         
     | 
| 
      
 207 
     | 
    
         
            +
                            "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51",
         
     | 
| 
      
 208 
     | 
    
         
            +
                            "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1000"
         
     | 
| 
      
 209 
     | 
    
         
            +
                          },
         
     | 
| 
      
 210 
     | 
    
         
            +
                          "subcategory_siblings": [
         
     | 
| 
      
 211 
     | 
    
         
            +
                            {
         
     | 
| 
      
 212 
     | 
    
         
            +
                              "category_name": "Auto Parts",
         
     | 
| 
      
 213 
     | 
    
         
            +
                              "category_key": 1001,
         
     | 
| 
      
 214 
     | 
    
         
            +
                              "category_type": "subcategory",
         
     | 
| 
      
 215 
     | 
    
         
            +
                              "category_parent_key": 51,
         
     | 
| 
      
 216 
     | 
    
         
            +
                              "links": {
         
     | 
| 
      
 217 
     | 
    
         
            +
                                "show_category": "https://offer-demo.adcrws.com/v1/categories/1001",
         
     | 
| 
      
 218 
     | 
    
         
            +
                                "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51",
         
     | 
| 
      
 219 
     | 
    
         
            +
                                "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1001"
         
     | 
| 
      
 220 
     | 
    
         
            +
                              }
         
     | 
| 
      
 221 
     | 
    
         
            +
                            },
         
     | 
| 
      
 222 
     | 
    
         
            +
                            {
         
     | 
| 
      
 223 
     | 
    
         
            +
                              "category_name": "Auto Service & Repair",
         
     | 
| 
      
 224 
     | 
    
         
            +
                              "category_key": 1002,
         
     | 
| 
      
 225 
     | 
    
         
            +
                              "category_type": "subcategory",
         
     | 
| 
      
 226 
     | 
    
         
            +
                              "category_parent_key": 51,
         
     | 
| 
      
 227 
     | 
    
         
            +
                              "links": {
         
     | 
| 
      
 228 
     | 
    
         
            +
                                "show_category": "https://offer-demo.adcrws.com/v1/categories/1002",
         
     | 
| 
      
 229 
     | 
    
         
            +
                                "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51",
         
     | 
| 
      
 230 
     | 
    
         
            +
                                "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1002"
         
     | 
| 
      
 231 
     | 
    
         
            +
                              }
         
     | 
| 
      
 232 
     | 
    
         
            +
                            },
         
     | 
| 
      
 233 
     | 
    
         
            +
                            {
         
     | 
| 
      
 234 
     | 
    
         
            +
                              "category_name": "Car Wash & Detail",
         
     | 
| 
      
 235 
     | 
    
         
            +
                              "category_key": 1003,
         
     | 
| 
      
 236 
     | 
    
         
            +
                              "category_type": "subcategory",
         
     | 
| 
      
 237 
     | 
    
         
            +
                              "category_parent_key": 51,
         
     | 
| 
      
 238 
     | 
    
         
            +
                              "links": {
         
     | 
| 
      
 239 
     | 
    
         
            +
                                "show_category": "https://offer-demo.adcrws.com/v1/categories/1003",
         
     | 
| 
      
 240 
     | 
    
         
            +
                                "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51",
         
     | 
| 
      
 241 
     | 
    
         
            +
                                "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1003"
         
     | 
| 
      
 242 
     | 
    
         
            +
                              }
         
     | 
| 
      
 243 
     | 
    
         
            +
                            },
         
     | 
| 
      
 244 
     | 
    
         
            +
                            {
         
     | 
| 
      
 245 
     | 
    
         
            +
                              "category_name": "Gas Station",
         
     | 
| 
      
 246 
     | 
    
         
            +
                              "category_key": 1004,
         
     | 
| 
      
 247 
     | 
    
         
            +
                              "category_type": "subcategory",
         
     | 
| 
      
 248 
     | 
    
         
            +
                              "category_parent_key": 51,
         
     | 
| 
      
 249 
     | 
    
         
            +
                              "links": {
         
     | 
| 
      
 250 
     | 
    
         
            +
                                "show_category": "https://offer-demo.adcrws.com/v1/categories/1004",
         
     | 
| 
      
 251 
     | 
    
         
            +
                                "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51",
         
     | 
| 
      
 252 
     | 
    
         
            +
                                "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1004"
         
     | 
| 
      
 253 
     | 
    
         
            +
                              }
         
     | 
| 
      
 254 
     | 
    
         
            +
                            },
         
     | 
| 
      
 255 
     | 
    
         
            +
                            {
         
     | 
| 
      
 256 
     | 
    
         
            +
                              "category_name": "Tires",
         
     | 
| 
      
 257 
     | 
    
         
            +
                              "category_key": 1005,
         
     | 
| 
      
 258 
     | 
    
         
            +
                              "category_type": "subcategory",
         
     | 
| 
      
 259 
     | 
    
         
            +
                              "category_parent_key": 51,
         
     | 
| 
      
 260 
     | 
    
         
            +
                              "links": {
         
     | 
| 
      
 261 
     | 
    
         
            +
                                "show_category": "https://offer-demo.adcrws.com/v1/categories/1005",
         
     | 
| 
      
 262 
     | 
    
         
            +
                                "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51",
         
     | 
| 
      
 263 
     | 
    
         
            +
                                "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1005"
         
     | 
| 
      
 264 
     | 
    
         
            +
                              }
         
     | 
| 
      
 265 
     | 
    
         
            +
                            },
         
     | 
| 
      
 266 
     | 
    
         
            +
                            {
         
     | 
| 
      
 267 
     | 
    
         
            +
                              "category_name": "Auto Sales & Warranties",
         
     | 
| 
      
 268 
     | 
    
         
            +
                              "category_key": 1006,
         
     | 
| 
      
 269 
     | 
    
         
            +
                              "category_type": "subcategory",
         
     | 
| 
      
 270 
     | 
    
         
            +
                              "category_parent_key": 51,
         
     | 
| 
      
 271 
     | 
    
         
            +
                              "links": {
         
     | 
| 
      
 272 
     | 
    
         
            +
                                "show_category": "https://offer-demo.adcrws.com/v1/categories/1006",
         
     | 
| 
      
 273 
     | 
    
         
            +
                                "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51",
         
     | 
| 
      
 274 
     | 
    
         
            +
                                "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1006"
         
     | 
| 
      
 275 
     | 
    
         
            +
                              }
         
     | 
| 
      
 276 
     | 
    
         
            +
                            }
         
     | 
| 
      
 277 
     | 
    
         
            +
                          ]
         
     | 
| 
      
 278 
     | 
    
         
            +
                        }
         
     | 
| 
      
 279 
     | 
    
         
            +
                      ]
         
     | 
| 
      
 280 
     | 
    
         
            +
                    }
         
     | 
| 
      
 281 
     | 
    
         
            +
                http_version: 
         
     | 
| 
      
 282 
     | 
    
         
            +
              recorded_at: Wed, 12 Aug 2015 17:46:35 GMT
         
     | 
| 
      
 283 
     | 
    
         
            +
            recorded_with: VCR 2.9.3
         
     | 
| 
         @@ -0,0 +1,245 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            ---
         
     | 
| 
      
 2 
     | 
    
         
            +
            http_interactions:
         
     | 
| 
      
 3 
     | 
    
         
            +
            - request:
         
     | 
| 
      
 4 
     | 
    
         
            +
                method: get
         
     | 
| 
      
 5 
     | 
    
         
            +
                uri: https://token-demo.adcrws.com/v1/tokens/941
         
     | 
| 
      
 6 
     | 
    
         
            +
                body:
         
     | 
| 
      
 7 
     | 
    
         
            +
                  encoding: US-ASCII
         
     | 
| 
      
 8 
     | 
    
         
            +
                  string: ''
         
     | 
| 
      
 9 
     | 
    
         
            +
                headers:
         
     | 
| 
      
 10 
     | 
    
         
            +
                  Access-Token:
         
     | 
| 
      
 11 
     | 
    
         
            +
                  - token_without_limit
         
     | 
| 
      
 12 
     | 
    
         
            +
                  Content-Type:
         
     | 
| 
      
 13 
     | 
    
         
            +
                  - application/json
         
     | 
| 
      
 14 
     | 
    
         
            +
                  Accept:
         
     | 
| 
      
 15 
     | 
    
         
            +
                  - application/json
         
     | 
| 
      
 16 
     | 
    
         
            +
              response:
         
     | 
| 
      
 17 
     | 
    
         
            +
                status:
         
     | 
| 
      
 18 
     | 
    
         
            +
                  code: 422
         
     | 
| 
      
 19 
     | 
    
         
            +
                  message: Unprocessable Entity
         
     | 
| 
      
 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 
     | 
    
         
            +
                  - no-cache
         
     | 
| 
      
 31 
     | 
    
         
            +
                  Content-Type:
         
     | 
| 
      
 32 
     | 
    
         
            +
                  - application/json
         
     | 
| 
      
 33 
     | 
    
         
            +
                  Date:
         
     | 
| 
      
 34 
     | 
    
         
            +
                  - Fri, 07 Aug 2015 16:34:02 GMT
         
     | 
| 
      
 35 
     | 
    
         
            +
                  Server:
         
     | 
| 
      
 36 
     | 
    
         
            +
                  - nginx/1.6.2
         
     | 
| 
      
 37 
     | 
    
         
            +
                  Strict-Transport-Security:
         
     | 
| 
      
 38 
     | 
    
         
            +
                  - max-age=31536000
         
     | 
| 
      
 39 
     | 
    
         
            +
                  X-Content-Type-Options:
         
     | 
| 
      
 40 
     | 
    
         
            +
                  - nosniff
         
     | 
| 
      
 41 
     | 
    
         
            +
                  X-Frame-Options:
         
     | 
| 
      
 42 
     | 
    
         
            +
                  - SAMEORIGIN
         
     | 
| 
      
 43 
     | 
    
         
            +
                  X-Request-Id:
         
     | 
| 
      
 44 
     | 
    
         
            +
                  - 16d445f1-8383-46da-b02a-75849536b08b
         
     | 
| 
      
 45 
     | 
    
         
            +
                  X-Runtime:
         
     | 
| 
      
 46 
     | 
    
         
            +
                  - '0.014046'
         
     | 
| 
      
 47 
     | 
    
         
            +
                  X-Xss-Protection:
         
     | 
| 
      
 48 
     | 
    
         
            +
                  - 1; mode=block
         
     | 
| 
      
 49 
     | 
    
         
            +
                  Content-Length:
         
     | 
| 
      
 50 
     | 
    
         
            +
                  - '56'
         
     | 
| 
      
 51 
     | 
    
         
            +
                  Connection:
         
     | 
| 
      
 52 
     | 
    
         
            +
                  - keep-alive
         
     | 
| 
      
 53 
     | 
    
         
            +
                body:
         
     | 
| 
      
 54 
     | 
    
         
            +
                  encoding: UTF-8
         
     | 
| 
      
 55 
     | 
    
         
            +
                  string: |-
         
     | 
| 
      
 56 
     | 
    
         
            +
                    {
         
     | 
| 
      
 57 
     | 
    
         
            +
                      "message": "Token not found: 941",
         
     | 
| 
      
 58 
     | 
    
         
            +
                      "status": 422
         
     | 
| 
      
 59 
     | 
    
         
            +
                    }
         
     | 
| 
      
 60 
     | 
    
         
            +
                http_version: 
         
     | 
| 
      
 61 
     | 
    
         
            +
              recorded_at: Fri, 07 Aug 2015 16:34:02 GMT
         
     | 
| 
      
 62 
     | 
    
         
            +
            - request:
         
     | 
| 
      
 63 
     | 
    
         
            +
                method: get
         
     | 
| 
      
 64 
     | 
    
         
            +
                uri: https://token-demo.adcrws.com/v1/tokens/ec394658d69d9aea0d6de68a51b801523dac578caf91ae4d9fbc5fe9a1ffcd33
         
     | 
| 
      
 65 
     | 
    
         
            +
                body:
         
     | 
| 
      
 66 
     | 
    
         
            +
                  encoding: US-ASCII
         
     | 
| 
      
 67 
     | 
    
         
            +
                  string: ''
         
     | 
| 
      
 68 
     | 
    
         
            +
                headers:
         
     | 
| 
      
 69 
     | 
    
         
            +
                  Access-Token:
         
     | 
| 
      
 70 
     | 
    
         
            +
                  - token_without_limit
         
     | 
| 
      
 71 
     | 
    
         
            +
                  Content-Type:
         
     | 
| 
      
 72 
     | 
    
         
            +
                  - application/json
         
     | 
| 
      
 73 
     | 
    
         
            +
                  Accept:
         
     | 
| 
      
 74 
     | 
    
         
            +
                  - application/json
         
     | 
| 
      
 75 
     | 
    
         
            +
              response:
         
     | 
| 
      
 76 
     | 
    
         
            +
                status:
         
     | 
| 
      
 77 
     | 
    
         
            +
                  code: 200
         
     | 
| 
      
 78 
     | 
    
         
            +
                  message: OK
         
     | 
| 
      
 79 
     | 
    
         
            +
                headers:
         
     | 
| 
      
 80 
     | 
    
         
            +
                  Access-Control-Allow-Headers:
         
     | 
| 
      
 81 
     | 
    
         
            +
                  - Origin,  X-Requested-With, Content-Type, Accept, Authorization, Access-Token
         
     | 
| 
      
 82 
     | 
    
         
            +
                  Access-Control-Allow-Methods:
         
     | 
| 
      
 83 
     | 
    
         
            +
                  - POST, GET, PUT, DELETE, OPTIONS
         
     | 
| 
      
 84 
     | 
    
         
            +
                  Access-Control-Max-Age:
         
     | 
| 
      
 85 
     | 
    
         
            +
                  - '1728000'
         
     | 
| 
      
 86 
     | 
    
         
            +
                  Access-Control-Request-Method:
         
     | 
| 
      
 87 
     | 
    
         
            +
                  - GET
         
     | 
| 
      
 88 
     | 
    
         
            +
                  Cache-Control:
         
     | 
| 
      
 89 
     | 
    
         
            +
                  - max-age=0, private, must-revalidate
         
     | 
| 
      
 90 
     | 
    
         
            +
                  Content-Type:
         
     | 
| 
      
 91 
     | 
    
         
            +
                  - application/json
         
     | 
| 
      
 92 
     | 
    
         
            +
                  Date:
         
     | 
| 
      
 93 
     | 
    
         
            +
                  - Fri, 07 Aug 2015 16:56:22 GMT
         
     | 
| 
      
 94 
     | 
    
         
            +
                  Etag:
         
     | 
| 
      
 95 
     | 
    
         
            +
                  - '"2e3fd95c8eccb9e493ba6f48dfd991e3"'
         
     | 
| 
      
 96 
     | 
    
         
            +
                  Server:
         
     | 
| 
      
 97 
     | 
    
         
            +
                  - nginx/1.6.2
         
     | 
| 
      
 98 
     | 
    
         
            +
                  Strict-Transport-Security:
         
     | 
| 
      
 99 
     | 
    
         
            +
                  - max-age=31536000
         
     | 
| 
      
 100 
     | 
    
         
            +
                  X-Content-Type-Options:
         
     | 
| 
      
 101 
     | 
    
         
            +
                  - nosniff
         
     | 
| 
      
 102 
     | 
    
         
            +
                  X-Frame-Options:
         
     | 
| 
      
 103 
     | 
    
         
            +
                  - SAMEORIGIN
         
     | 
| 
      
 104 
     | 
    
         
            +
                  X-Request-Id:
         
     | 
| 
      
 105 
     | 
    
         
            +
                  - ea7fd0cf-b13f-4f3a-8cb2-5f1d52c8c687
         
     | 
| 
      
 106 
     | 
    
         
            +
                  X-Runtime:
         
     | 
| 
      
 107 
     | 
    
         
            +
                  - '0.011826'
         
     | 
| 
      
 108 
     | 
    
         
            +
                  X-Xss-Protection:
         
     | 
| 
      
 109 
     | 
    
         
            +
                  - 1; mode=block
         
     | 
| 
      
 110 
     | 
    
         
            +
                  Content-Length:
         
     | 
| 
      
 111 
     | 
    
         
            +
                  - '1473'
         
     | 
| 
      
 112 
     | 
    
         
            +
                  Connection:
         
     | 
| 
      
 113 
     | 
    
         
            +
                  - keep-alive
         
     | 
| 
      
 114 
     | 
    
         
            +
                body:
         
     | 
| 
      
 115 
     | 
    
         
            +
                  encoding: UTF-8
         
     | 
| 
      
 116 
     | 
    
         
            +
                  string: |-
         
     | 
| 
      
 117 
     | 
    
         
            +
                    {
         
     | 
| 
      
 118 
     | 
    
         
            +
                      "oauth_token": {
         
     | 
| 
      
 119 
     | 
    
         
            +
                        "application_id": 824,
         
     | 
| 
      
 120 
     | 
    
         
            +
                        "token": "ec394658d69d9aea0d6de68a51b801523dac578caf91ae4d9fbc5fe9a1ffcd33",
         
     | 
| 
      
 121 
     | 
    
         
            +
                        "expires_in": null,
         
     | 
| 
      
 122 
     | 
    
         
            +
                        "revoked_at": null,
         
     | 
| 
      
 123 
     | 
    
         
            +
                        "created_at": "2015-08-04T10:14:54.011-06:00",
         
     | 
| 
      
 124 
     | 
    
         
            +
                        "oauth_access_token_id": 941,
         
     | 
| 
      
 125 
     | 
    
         
            +
                        "application_name": "Savings.com (pcid:200089)",
         
     | 
| 
      
 126 
     | 
    
         
            +
                        "application_owner_id": 235589788,
         
     | 
| 
      
 127 
     | 
    
         
            +
                        "application_owner_type": "Program",
         
     | 
| 
      
 128 
     | 
    
         
            +
                        "program_id": 235589788,
         
     | 
| 
      
 129 
     | 
    
         
            +
                        "program_name": "Savings.com",
         
     | 
| 
      
 130 
     | 
    
         
            +
                        "program_customer_identifier": "200089",
         
     | 
| 
      
 131 
     | 
    
         
            +
                        "program_start_dts": "2015-08-04T10:15:40.012-06:00",
         
     | 
| 
      
 132 
     | 
    
         
            +
                        "program_end_dts": "2018-08-04T10:15:40.012-06:00",
         
     | 
| 
      
 133 
     | 
    
         
            +
                        "organization_id": 2002086,
         
     | 
| 
      
 134 
     | 
    
         
            +
                        "organization_name": "Savings.com",
         
     | 
| 
      
 135 
     | 
    
         
            +
                        "organization_customer_identifier": "2002086",
         
     | 
| 
      
 136 
     | 
    
         
            +
                        "filter_id": 38,
         
     | 
| 
      
 137 
     | 
    
         
            +
                        "filter_name": "All Categories except EDUCATION ONLY",
         
     | 
| 
      
 138 
     | 
    
         
            +
                        "filter": "{\"offers\":[{\"not\":{\"or\":[{\"terms\":{\"categories.category_key\":[1113]}},{\"terms\":{\"categories.category_parent_key\":[1113]}}]}}],\"categories\":[{\"not\":{\"or\":[{\"terms\":{\"category_key\":[1113]}},{\"terms\":{\"category_parent_key\":[1113]}}]}}],\"stores\":[{\"not\":{\"or\":[{\"terms\":{\"store_categories.category_key\":[1113]}},{\"terms\":{\"store_categories.category_parent_key\":[1113]}}]}}]}",
         
     | 
| 
      
 139 
     | 
    
         
            +
                        "program_filter_id": 157,
         
     | 
| 
      
 140 
     | 
    
         
            +
                        "domains": [
         
     | 
| 
      
 141 
     | 
    
         
            +
                          "*.showitandsave.com"
         
     | 
| 
      
 142 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 143 
     | 
    
         
            +
                        "application_scopes": [
         
     | 
| 
      
 144 
     | 
    
         
            +
                          "api",
         
     | 
| 
      
 145 
     | 
    
         
            +
                          "docs"
         
     | 
| 
      
 146 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 147 
     | 
    
         
            +
                        "indexed_at": "2015-08-04T19:20:08.365Z",
         
     | 
| 
      
 148 
     | 
    
         
            +
                        "token_status": "valid"
         
     | 
| 
      
 149 
     | 
    
         
            +
                      }
         
     | 
| 
      
 150 
     | 
    
         
            +
                    }
         
     | 
| 
      
 151 
     | 
    
         
            +
                http_version: 
         
     | 
| 
      
 152 
     | 
    
         
            +
              recorded_at: Fri, 07 Aug 2015 16:56:23 GMT
         
     | 
| 
      
 153 
     | 
    
         
            +
            - request:
         
     | 
| 
      
 154 
     | 
    
         
            +
                method: get
         
     | 
| 
      
 155 
     | 
    
         
            +
                uri: https://token-demo.adcrws.com/v1/tokens/fcf4e7ee693a61155d1a40a0ca7577cc95ec785742a0ca295503185e290711e4
         
     | 
| 
      
 156 
     | 
    
         
            +
                body:
         
     | 
| 
      
 157 
     | 
    
         
            +
                  encoding: US-ASCII
         
     | 
| 
      
 158 
     | 
    
         
            +
                  string: ''
         
     | 
| 
      
 159 
     | 
    
         
            +
                headers:
         
     | 
| 
      
 160 
     | 
    
         
            +
                  Access-Token:
         
     | 
| 
      
 161 
     | 
    
         
            +
                  - token_without_limit
         
     | 
| 
      
 162 
     | 
    
         
            +
                  Content-Type:
         
     | 
| 
      
 163 
     | 
    
         
            +
                  - application/json
         
     | 
| 
      
 164 
     | 
    
         
            +
                  Accept:
         
     | 
| 
      
 165 
     | 
    
         
            +
                  - application/json
         
     | 
| 
      
 166 
     | 
    
         
            +
              response:
         
     | 
| 
      
 167 
     | 
    
         
            +
                status:
         
     | 
| 
      
 168 
     | 
    
         
            +
                  code: 200
         
     | 
| 
      
 169 
     | 
    
         
            +
                  message: OK
         
     | 
| 
      
 170 
     | 
    
         
            +
                headers:
         
     | 
| 
      
 171 
     | 
    
         
            +
                  Access-Control-Allow-Headers:
         
     | 
| 
      
 172 
     | 
    
         
            +
                  - Origin,  X-Requested-With, Content-Type, Accept, Authorization, Access-Token
         
     | 
| 
      
 173 
     | 
    
         
            +
                  Access-Control-Allow-Methods:
         
     | 
| 
      
 174 
     | 
    
         
            +
                  - POST, GET, PUT, DELETE, OPTIONS
         
     | 
| 
      
 175 
     | 
    
         
            +
                  Access-Control-Max-Age:
         
     | 
| 
      
 176 
     | 
    
         
            +
                  - '1728000'
         
     | 
| 
      
 177 
     | 
    
         
            +
                  Access-Control-Request-Method:
         
     | 
| 
      
 178 
     | 
    
         
            +
                  - GET
         
     | 
| 
      
 179 
     | 
    
         
            +
                  Cache-Control:
         
     | 
| 
      
 180 
     | 
    
         
            +
                  - max-age=0, private, must-revalidate
         
     | 
| 
      
 181 
     | 
    
         
            +
                  Content-Type:
         
     | 
| 
      
 182 
     | 
    
         
            +
                  - application/json
         
     | 
| 
      
 183 
     | 
    
         
            +
                  Date:
         
     | 
| 
      
 184 
     | 
    
         
            +
                  - Wed, 12 Aug 2015 17:46:36 GMT
         
     | 
| 
      
 185 
     | 
    
         
            +
                  Etag:
         
     | 
| 
      
 186 
     | 
    
         
            +
                  - '"459e7da3098aceaf5599a480d73ceccd"'
         
     | 
| 
      
 187 
     | 
    
         
            +
                  Server:
         
     | 
| 
      
 188 
     | 
    
         
            +
                  - nginx/1.6.2
         
     | 
| 
      
 189 
     | 
    
         
            +
                  Strict-Transport-Security:
         
     | 
| 
      
 190 
     | 
    
         
            +
                  - max-age=31536000
         
     | 
| 
      
 191 
     | 
    
         
            +
                  X-Content-Type-Options:
         
     | 
| 
      
 192 
     | 
    
         
            +
                  - nosniff
         
     | 
| 
      
 193 
     | 
    
         
            +
                  X-Frame-Options:
         
     | 
| 
      
 194 
     | 
    
         
            +
                  - SAMEORIGIN
         
     | 
| 
      
 195 
     | 
    
         
            +
                  X-Request-Id:
         
     | 
| 
      
 196 
     | 
    
         
            +
                  - 867adab5-e81f-455d-8b52-c010560664c7
         
     | 
| 
      
 197 
     | 
    
         
            +
                  X-Runtime:
         
     | 
| 
      
 198 
     | 
    
         
            +
                  - '0.014934'
         
     | 
| 
      
 199 
     | 
    
         
            +
                  X-Xss-Protection:
         
     | 
| 
      
 200 
     | 
    
         
            +
                  - 1; mode=block
         
     | 
| 
      
 201 
     | 
    
         
            +
                  Content-Length:
         
     | 
| 
      
 202 
     | 
    
         
            +
                  - '1530'
         
     | 
| 
      
 203 
     | 
    
         
            +
                  Connection:
         
     | 
| 
      
 204 
     | 
    
         
            +
                  - keep-alive
         
     | 
| 
      
 205 
     | 
    
         
            +
                body:
         
     | 
| 
      
 206 
     | 
    
         
            +
                  encoding: UTF-8
         
     | 
| 
      
 207 
     | 
    
         
            +
                  string: |-
         
     | 
| 
      
 208 
     | 
    
         
            +
                    {
         
     | 
| 
      
 209 
     | 
    
         
            +
                      "oauth_token": {
         
     | 
| 
      
 210 
     | 
    
         
            +
                        "application_id": 825,
         
     | 
| 
      
 211 
     | 
    
         
            +
                        "token": "fcf4e7ee693a61155d1a40a0ca7577cc95ec785742a0ca295503185e290711e4",
         
     | 
| 
      
 212 
     | 
    
         
            +
                        "expires_in": null,
         
     | 
| 
      
 213 
     | 
    
         
            +
                        "revoked_at": null,
         
     | 
| 
      
 214 
     | 
    
         
            +
                        "created_at": "2015-08-11T15:54:04.086-06:00",
         
     | 
| 
      
 215 
     | 
    
         
            +
                        "oauth_access_token_id": 942,
         
     | 
| 
      
 216 
     | 
    
         
            +
                        "application_name": "Loylogic (pcid:200090)",
         
     | 
| 
      
 217 
     | 
    
         
            +
                        "application_owner_id": 235589794,
         
     | 
| 
      
 218 
     | 
    
         
            +
                        "application_owner_type": "Program",
         
     | 
| 
      
 219 
     | 
    
         
            +
                        "program_id": 235589794,
         
     | 
| 
      
 220 
     | 
    
         
            +
                        "program_name": "Loylogic",
         
     | 
| 
      
 221 
     | 
    
         
            +
                        "program_customer_identifier": "200090",
         
     | 
| 
      
 222 
     | 
    
         
            +
                        "program_start_dts": "2015-08-11T15:54:45.783-06:00",
         
     | 
| 
      
 223 
     | 
    
         
            +
                        "program_end_dts": "2018-08-11T15:54:45.783-06:00",
         
     | 
| 
      
 224 
     | 
    
         
            +
                        "organization_id": 2001157,
         
     | 
| 
      
 225 
     | 
    
         
            +
                        "organization_name": "Loylogic",
         
     | 
| 
      
 226 
     | 
    
         
            +
                        "organization_customer_identifier": "2001157",
         
     | 
| 
      
 227 
     | 
    
         
            +
                        "filter_id": 35,
         
     | 
| 
      
 228 
     | 
    
         
            +
                        "filter_name": "Dining, Entertainment, Health/Beauty, Hotel, Services, Shopping",
         
     | 
| 
      
 229 
     | 
    
         
            +
                        "filter": "{\"offers\":[{\"or\":[{\"terms\":{\"categories.category_key\":[39,59,53,44,50,45]}},{\"terms\":{\"categories.category_parent_key\":[39,59,53,44,50,45]}}]}],\"categories\":[{\"or\":[{\"terms\":{\"category_key\":[39,59,53,44,50,45]}},{\"terms\":{\"category_parent_key\":[39,59,53,44,50,45]}}]}],\"stores\":[{\"or\":[{\"terms\":{\"store_categories.category_key\":[39,59,53,44,50,45]}},{\"terms\":{\"store_categories.category_parent_key\":[39,59,53,44,50,45]}}]}]}",
         
     | 
| 
      
 230 
     | 
    
         
            +
                        "program_filter_id": 158,
         
     | 
| 
      
 231 
     | 
    
         
            +
                        "domains": [
         
     | 
| 
      
 232 
     | 
    
         
            +
             
     | 
| 
      
 233 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 234 
     | 
    
         
            +
                        "application_scopes": [
         
     | 
| 
      
 235 
     | 
    
         
            +
                          "api",
         
     | 
| 
      
 236 
     | 
    
         
            +
                          "docs",
         
     | 
| 
      
 237 
     | 
    
         
            +
                          "internal"
         
     | 
| 
      
 238 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 239 
     | 
    
         
            +
                        "indexed_at": "2015-08-12T14:08:41.744Z",
         
     | 
| 
      
 240 
     | 
    
         
            +
                        "token_status": "valid"
         
     | 
| 
      
 241 
     | 
    
         
            +
                      }
         
     | 
| 
      
 242 
     | 
    
         
            +
                    }
         
     | 
| 
      
 243 
     | 
    
         
            +
                http_version: 
         
     | 
| 
      
 244 
     | 
    
         
            +
              recorded_at: Wed, 12 Aug 2015 17:46:36 GMT
         
     | 
| 
      
 245 
     | 
    
         
            +
            recorded_with: VCR 2.9.3
         
     |