citygrid_api 0.0.5.1 → 0.0.6
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.
- data/.sass-cache/c6f2c767b164f077e5b9fb1f18a7886d7c755211/test.scssc +0 -0
- data/Gemfile +3 -1
- data/Gemfile.lock +9 -1
- data/VERSION +1 -1
- data/citygrid_api.gemspec +85 -45
- data/citygrid_api.yml.backup +35 -0
- data/citygrid_api.yml.sample +35 -23
- data/fixtures/vcr_cassettes/AdGroupCriterion_mutate.yml +30 -0
- data/fixtures/vcr_cassettes/AdGroupCriterion_search.yml +35 -0
- data/fixtures/vcr_cassettes/Adding_a_place.yml +33 -0
- data/fixtures/vcr_cassettes/Call_Detail_by_campaign.yml +79 -0
- data/fixtures/vcr_cassettes/Geo.yml +32 -0
- data/fixtures/vcr_cassettes/Getting_an_offer_by_listing_ID.yml +54 -0
- data/fixtures/vcr_cassettes/Import_a_cg_account.yml +54 -0
- data/fixtures/vcr_cassettes/Initiating_a_Details.yml +133 -0
- data/fixtures/vcr_cassettes/Initiating_new_MultiDetails.yml +133 -0
- data/fixtures/vcr_cassettes/Method_of_Payment_mutate.yml +33 -0
- data/fixtures/vcr_cassettes/Method_of_Payment_search.yml +59 -0
- data/fixtures/vcr_cassettes/Mutating_AdGroup_Ads.yml +30 -0
- data/fixtures/vcr_cassettes/Report_summary_daily.yml +60 -0
- data/fixtures/vcr_cassettes/Report_summary_user_actions.yml +36 -0
- data/fixtures/vcr_cassettes/Search_Ad_Group_by_Campaign_Id.yml +31 -0
- data/fixtures/vcr_cassettes/Search_Billing_by_Campaign_Id.yml +30 -0
- data/fixtures/vcr_cassettes/Search_account_manager_by_Campaign_Id.yml +30 -0
- data/fixtures/vcr_cassettes/Searching_AdGroup_Geo.yml +57 -0
- data/fixtures/vcr_cassettes/Searching_budgets.yml +30 -0
- data/fixtures/vcr_cassettes/Searching_categories_by_listing_id.yml +35 -0
- data/fixtures/vcr_cassettes/Searching_categories_by_query.yml +33 -0
- data/fixtures/vcr_cassettes/Upload_an_image_Add_a_preview.yml +31 -0
- data/fixtures/vcr_cassettes/create_campaign.yml +30 -0
- data/fixtures/vcr_cassettes/log_in_a_session.yml +24 -0
- data/fixtures/vcr_cassettes/log_in_a_session_mutate_places.yml +56 -0
- data/fixtures/vcr_cassettes/query_account_type_by_id.yml +30 -0
- data/fixtures/vcr_cassettes/search_for_an_account_by_id.yml +31 -0
- data/fixtures/vcr_cassettes/search_for_an_account_by_name.yml +55 -0
- data/fixtures/vcr_cassettes/searching_for_a_CityGrid_listing.yml +168 -0
- data/fixtures/vcr_cassettes/searching_for_a_special_CityGrid_listing.yml +67 -0
- data/lib/citygrid/abstraction/requestable.rb +1 -0
- data/lib/citygrid/api/accounts/account.rb +17 -0
- data/lib/citygrid/api/accounts/authentication.rb +3 -0
- data/lib/citygrid/api/accounts/method_of_payment.rb +10 -0
- data/lib/citygrid/api/accounts/user.rb +18 -0
- data/lib/citygrid/api/accounts.rb +8 -0
- data/lib/citygrid/api/advertising/account_manager.rb +9 -0
- data/lib/citygrid/api/advertising/ad_group.rb +10 -0
- data/lib/citygrid/api/advertising/ad_group_ad.rb +10 -0
- data/lib/citygrid/api/advertising/ad_group_criterion.rb +10 -0
- data/lib/citygrid/api/advertising/ad_group_geo.rb +10 -0
- data/lib/citygrid/api/advertising/billing.rb +9 -0
- data/lib/citygrid/api/advertising/budget.rb +10 -0
- data/lib/citygrid/api/advertising/call_detail.rb +10 -0
- data/lib/citygrid/api/advertising/campaign.rb +10 -0
- data/lib/citygrid/api/advertising/category.rb +10 -0
- data/lib/citygrid/api/advertising/geolocation.rb +10 -0
- data/lib/citygrid/api/{ad_center → advertising}/image.rb +2 -2
- data/lib/citygrid/api/{ad_center → advertising}/performance.rb +5 -2
- data/lib/citygrid/api/advertising/places.rb +10 -0
- data/lib/citygrid/api/advertising.rb +10 -0
- data/lib/citygrid/api/content/offers.rb +2 -12
- data/lib/citygrid/api/content/places.rb +4 -26
- data/lib/citygrid/api/content.rb +1 -5
- data/lib/citygrid/api/mutatable.rb +15 -0
- data/lib/citygrid/api/searchable.rb +15 -0
- data/lib/citygrid/api.rb +54 -52
- data/lib/citygrid/details.rb +3 -6
- data/lib/citygrid/offers.rb +1 -5
- data/lib/citygrid/search.rb +3 -6
- data/lib/citygrid/session.rb +65 -0
- data/lib/citygrid.rb +46 -75
- data/lib/request_ext.rb +4 -5
- data/lib/string_ext.rb +7 -0
- data/test/api/accounts/test_account.rb +111 -0
- data/test/api/accounts/test_method_of_payment.rb +50 -0
- data/test/api/advertising/test_account_manager.rb +14 -0
- data/test/api/advertising/test_ad_group.rb +13 -0
- data/test/api/advertising/test_ad_group_ad.rb +24 -0
- data/test/api/advertising/test_ad_group_criterion.rb +47 -0
- data/test/api/{ad_center → advertising}/test_ad_group_geo.rb +1 -1
- data/test/api/{ad_center → advertising}/test_billing.rb +4 -3
- data/test/api/{ad_center → advertising}/test_budget.rb +3 -3
- data/test/api/{ad_center → advertising}/test_call_detail.rb +5 -11
- data/test/api/{ad_center → advertising}/test_category.rb +9 -12
- data/test/api/advertising/test_create_campaign_and_ad_group.rb +56 -0
- data/test/api/{ad_center → advertising}/test_geolocation.rb +1 -1
- data/test/api/{ad_center → advertising}/test_image.rb +1 -3
- data/test/api/{ad_center/test_reports.rb → advertising/test_performance.rb} +6 -10
- data/test/api/advertising/test_places.rb +109 -0
- data/test/{test_details.rb → api/content/test_details.rb} +2 -3
- data/test/{test_search.rb → api/content/test_search.rb} +2 -2
- data/test/auth_token.rb +39 -0
- data/test/helper.rb +31 -31
- data/test/session_helper.rb +20 -0
- data/test/test_session.rb +53 -0
- metadata +115 -67
- data/lib/citygrid/api/ad_center/account.rb +0 -26
- data/lib/citygrid/api/ad_center/account_manager.rb +0 -8
- data/lib/citygrid/api/ad_center/ad_group.rb +0 -8
- data/lib/citygrid/api/ad_center/ad_group_ad.rb +0 -8
- data/lib/citygrid/api/ad_center/ad_group_criterion.rb +0 -8
- data/lib/citygrid/api/ad_center/ad_group_geo.rb +0 -8
- data/lib/citygrid/api/ad_center/authentication.rb +0 -20
- data/lib/citygrid/api/ad_center/billing.rb +0 -8
- data/lib/citygrid/api/ad_center/budget.rb +0 -9
- data/lib/citygrid/api/ad_center/call_detail.rb +0 -25
- data/lib/citygrid/api/ad_center/campaign.rb +0 -8
- data/lib/citygrid/api/ad_center/category.rb +0 -9
- data/lib/citygrid/api/ad_center/geolocation.rb +0 -9
- data/lib/citygrid/api/ad_center/method_of_payment.rb +0 -10
- data/lib/citygrid/api/ad_center/places.rb +0 -8
- data/lib/citygrid/api/ad_center/user.rb +0 -8
- data/lib/citygrid/api/ad_center.rb +0 -20
- data/lib/citygrid/api/content/places/detail.rb +0 -11
- data/lib/citygrid/api/content/places/search.rb +0 -11
- data/test/api/ad_center/test_account.rb +0 -120
- data/test/api/ad_center/test_ad_group.rb +0 -50
- data/test/api/ad_center/test_ad_group_ad.rb +0 -27
- data/test/api/ad_center/test_ad_group_criterion.rb +0 -37
- data/test/api/ad_center/test_authentication.rb +0 -22
- data/test/api/ad_center/test_campaign.rb +0 -27
- data/test/api/ad_center/test_method_of_payment.rb +0 -51
- data/test/api/ad_center/test_places.rb +0 -79
- data/test/api/content/test_places.rb +0 -66
@@ -0,0 +1,55 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: https://api-qassl.citygrid.com:443/accounts/user/v2/login?password=pppppp&username=QASalesCoord
|
6
|
+
body: !!null
|
7
|
+
headers: !!null
|
8
|
+
response: !ruby/struct:VCR::Response
|
9
|
+
status: !ruby/struct:VCR::ResponseStatus
|
10
|
+
code: 200
|
11
|
+
message: OK
|
12
|
+
headers:
|
13
|
+
date:
|
14
|
+
- Fri, 30 Dec 2011 01:05:47 GMT
|
15
|
+
server:
|
16
|
+
- Apache-Coyote/1.1
|
17
|
+
content-type:
|
18
|
+
- application/json
|
19
|
+
vary:
|
20
|
+
- Accept-Encoding
|
21
|
+
transfer-encoding:
|
22
|
+
- chunked
|
23
|
+
body: ! '{"code":201,"authToken":"563da3d1cfa3a8e75f6a09e89f542d67"}'
|
24
|
+
http_version: '1.1'
|
25
|
+
- !ruby/struct:VCR::HTTPInteraction
|
26
|
+
request: !ruby/struct:VCR::Request
|
27
|
+
method: :get
|
28
|
+
uri: https://api-qassl.citygrid.com:443/accounts/account/v2/get?userName=25-1
|
29
|
+
body: !!null
|
30
|
+
headers:
|
31
|
+
accept:
|
32
|
+
- application/json
|
33
|
+
content-type:
|
34
|
+
- Application/JSON
|
35
|
+
authtoken:
|
36
|
+
- 563da3d1cfa3a8e75f6a09e89f542d67
|
37
|
+
response: !ruby/struct:VCR::Response
|
38
|
+
status: !ruby/struct:VCR::ResponseStatus
|
39
|
+
code: 200
|
40
|
+
message: OK
|
41
|
+
headers:
|
42
|
+
date:
|
43
|
+
- Fri, 30 Dec 2011 01:05:48 GMT
|
44
|
+
server:
|
45
|
+
- Apache-Coyote/1.1
|
46
|
+
content-type:
|
47
|
+
- application/json
|
48
|
+
vary:
|
49
|
+
- Accept-Encoding
|
50
|
+
transfer-encoding:
|
51
|
+
- chunked
|
52
|
+
body: ! '{"totalNumEntries":1,"accountList":[{"id":"103","state":"TX","response":{"message":"OK","code":200},"status":"PENDING","firstName":"Dave","lastName":"Le
|
53
|
+
Blanc","address1":"700 E. 6th Street","city":"Austin","businessName":"Boiling
|
54
|
+
Pot","phone":"(512)472-0985","zipCode":"78701"}]}'
|
55
|
+
http_version: '1.1'
|
@@ -0,0 +1,168 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: http://api.citygridmedia.com:80/content/places/v2/search/where?client_ip=192.168.0.1&format=json&publisher=citygrid&what=sushi&where=Seattle
|
6
|
+
body: !!null
|
7
|
+
headers:
|
8
|
+
accept:
|
9
|
+
- application/json
|
10
|
+
content-type:
|
11
|
+
- Application/JSON
|
12
|
+
response: !ruby/struct:VCR::Response
|
13
|
+
status: !ruby/struct:VCR::ResponseStatus
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
date:
|
18
|
+
- Fri, 30 Dec 2011 01:06:18 GMT
|
19
|
+
server:
|
20
|
+
- Apache-Coyote/1.1
|
21
|
+
content-type:
|
22
|
+
- application/json
|
23
|
+
vary:
|
24
|
+
- Accept-Encoding
|
25
|
+
transfer-encoding:
|
26
|
+
- chunked
|
27
|
+
body: ! '{"results":{"query_id":null,"uri":"http://api.citygridmedia.com/search/places/v2/search/where?has_offers=false&format=json&page=1&rpp=20&histograms=false&what=sushi&where=Seattle&publisher=citygrid®ion_type=circle","first_hit":1,"last_hit":20,"total_hits":52,"page":1,"rpp":20,"did_you_mean":null,"regions":[{"type":"city","name":"Seattle,
|
28
|
+
WA","latitude":47.620434,"longitude":-122.35101,"default_radius":11.9400}],"histograms":[],"locations":[{"id":11349395,"featured":false,"name":"Wasabi
|
29
|
+
Bistro","address":{"street":"2311 2nd Ave","city":"Seattle","state":"WA","postal_code":"98121"},"neighborhood":"Belltown,
|
30
|
+
Downtown","latitude":47.6141,"longitude":-122.346,"distance":null,"image":"http://images.citysearch.net/assets/imgdb/profile/95/0d/11349395p1.jpg","phone_number":"2064416044","fax_number":null,"rating":9.0,"tagline":null,"profile":"http://seattle.citysearch.com/profile/11349395/seattle_wa/wasabi_bistro.html","website":null,"has_video":false,"has_offers":false,"offers":null,"user_review_count":101,"sample_categories":"Restaurants,
|
31
|
+
Dine At The Bar, MasterCard, Sushi, Japanese","impression_id":"000b00000011708d48ff574e6b8438d115ebd0871b","expansion":{"count":null,"uri":null},"tags":[{"id":1722,"name":"Restaurants","primary":false},{"id":11258,"name":"Dine
|
32
|
+
At The Bar","primary":false},{"id":11361,"name":"MasterCard","primary":false},{"id":11201,"name":"Sushi","primary":false},{"id":11202,"name":"Japanese","primary":false},{"id":11269,"name":"Group
|
33
|
+
Dining","primary":false},{"id":11232,"name":"$$","primary":false},{"id":11382,"name":"Visa","primary":false},{"id":11219,"name":"French","primary":false},{"id":11333,"name":"American
|
34
|
+
Express","primary":false},{"id":11298,"name":"People Watching","primary":false}],"public_id":"wasabi-bistro-seattle"},{"id":41928927,"featured":true,"name":"Umi
|
35
|
+
Sake House","address":{"street":"2230 First Ave","city":"Seattle","state":"WA","postal_code":"98121"},"neighborhood":"Downtown,
|
36
|
+
Belltown","latitude":47.612844,"longitude":-122.345644,"distance":null,"image":"http://images.citysearch.net/assets/imgdb/advertorial_profile/f2/7a/V-SEAWA-55089002_ID162741_guide_inclusion.jpg","phone_number":"2069737789","fax_number":null,"rating":8.0,"tagline":null,"profile":"http://seattle.citysearch.com/profile/41928927/seattle_wa/umi_sake_house.html","website":"http://seattle.citysearch.com/profile/external/41928927/seattle_wa/umi_sake_house.html","has_video":false,"has_offers":true,"offers":"happy
|
37
|
+
hour at umi sake house 4-6pm every day!","user_review_count":90,"sample_categories":"Catering,
|
38
|
+
Bars & Pubs, Restaurants, Bar Scene, Sushi","impression_id":"000b000000c9ecab1a53f842fcafd0340c917a88af","expansion":{"count":null,"uri":null},"tags":[{"id":1705,"name":"Catering","primary":false},{"id":1686,"name":"Bars
|
39
|
+
& Pubs","primary":false},{"id":1722,"name":"Restaurants","primary":false},{"id":11238,"name":"Bar
|
40
|
+
Scene","primary":false},{"id":11201,"name":"Sushi","primary":false},{"id":11202,"name":"Japanese","primary":false},{"id":11269,"name":"Group
|
41
|
+
Dining","primary":false},{"id":11232,"name":"$$","primary":false},{"id":11367,"name":"Open
|
42
|
+
7 Days","primary":false},{"id":11361,"name":"MasterCard","primary":false},{"id":11304,"name":"Private
|
43
|
+
Rooms","primary":false},{"id":11282,"name":"Late Night Dining","primary":false},{"id":11382,"name":"Visa","primary":false},{"id":11333,"name":"American
|
44
|
+
Express","primary":false},{"id":11271,"name":"Happy Hour","primary":false}],"public_id":"umi-sake-house-seattle-2"},{"id":36913040,"featured":true,"name":"Kisaku
|
45
|
+
Sushi Restaurant","address":{"street":"2101 N 55th St","city":"Seattle","state":"WA","postal_code":"98103"},"neighborhood":"Wallingford,
|
46
|
+
Lake Union","latitude":47.66867,"longitude":-122.333652,"distance":null,"image":"http://images.citysearch.net/assets/imgdb/merchant/2010/9/2/0/ZCDLBSLz149.jpeg","phone_number":"4253361689","fax_number":null,"rating":9.0,"tagline":null,"profile":"http://seattle.citysearch.com/profile/36913040/seattle_wa/kisaku_sushi_restaurant.html","website":"http://seattle.citysearch.com/profile/external/36913040/seattle_wa/kisaku_sushi_restaurant.html","has_video":false,"has_offers":false,"offers":null,"user_review_count":52,"sample_categories":"Restaurants,
|
47
|
+
Sushi, Seafood, Lunch Spot","impression_id":"000b000000ca4552b298a4432db0fe25e2577ca488","expansion":{"count":null,"uri":null},"tags":[{"id":1722,"name":"Restaurants","primary":false},{"id":11201,"name":"Sushi","primary":false},{"id":11228,"name":"Seafood","primary":false},{"id":11286,"name":"Lunch
|
48
|
+
Spot","primary":false}],"public_id":"kisaku-sushi-restaurant-seattle"},{"id":15088428,"featured":false,"name":"Ototo
|
49
|
+
Sushi","address":{"street":"7 Boston St","city":"Seattle","state":"WA","postal_code":"98109"},"neighborhood":"Magnolia
|
50
|
+
- Queen Anne, East Queen Anne, Magnolia / Queen Anne","latitude":47.6383,"longitude":-122.3567,"distance":null,"image":"http://images.citysearch.net/assets/imgdb/profile/13/7b/15088428p1.jpg","phone_number":"2066913838","fax_number":null,"rating":8.0,"tagline":null,"profile":"http://seattle.citysearch.com/profile/15088428/seattle_wa/ototo_sushi.html","website":null,"has_video":false,"has_offers":false,"offers":null,"user_review_count":80,"sample_categories":"Restaurants,
|
51
|
+
MasterCard, Local Favorite, Outdoor Dining, Sushi","impression_id":"000b000000463716dc43a94f728c4abdab4ee26acc","expansion":{"count":null,"uri":null},"tags":[{"id":1722,"name":"Restaurants","primary":false},{"id":11361,"name":"MasterCard","primary":false},{"id":11284,"name":"Local
|
52
|
+
Favorite","primary":false},{"id":11296,"name":"Outdoor Dining","primary":false},{"id":11201,"name":"Sushi","primary":false},{"id":11202,"name":"Japanese","primary":false},{"id":11232,"name":"$$","primary":false},{"id":11382,"name":"Visa","primary":false},{"id":11262,"name":"Family
|
53
|
+
Style Dining","primary":false},{"id":11286,"name":"Lunch Spot","primary":false},{"id":11307,"name":"Romantic
|
54
|
+
Dining","primary":false}],"public_id":"ototo-sushi-seattle"},{"id":10789937,"featured":false,"name":"Nishino","address":{"street":"3130
|
55
|
+
E Madison St","city":"Seattle","state":"WA","postal_code":"98112"},"neighborhood":"Capitol
|
56
|
+
Hill, Washington Park","latitude":47.62662,"longitude":-122.29167,"distance":null,"image":null,"phone_number":"2063225800","fax_number":null,"rating":9.0,"tagline":null,"profile":"http://seattle.citysearch.com/profile/10789937/seattle_wa/nishino.html","website":null,"has_video":false,"has_offers":false,"offers":null,"user_review_count":68,"sample_categories":"Restaurants,
|
57
|
+
Dine At The Bar, MasterCard, Local Favorite, Sushi","impression_id":"000b0000000782ddff4f1342729a643feb0f39ca4b","expansion":{"count":null,"uri":null},"tags":[{"id":1722,"name":"Restaurants","primary":false},{"id":11258,"name":"Dine
|
58
|
+
At The Bar","primary":false},{"id":11361,"name":"MasterCard","primary":false},{"id":11284,"name":"Local
|
59
|
+
Favorite","primary":false},{"id":11201,"name":"Sushi","primary":false},{"id":11202,"name":"Japanese","primary":false},{"id":11233,"name":"$$$","primary":false},{"id":11269,"name":"Group
|
60
|
+
Dining","primary":false},{"id":11382,"name":"Visa","primary":false},{"id":11333,"name":"American
|
61
|
+
Express","primary":false},{"id":11367,"name":"Open 7 Days","primary":false}],"public_id":"nishino-seattle"},{"id":41662071,"featured":true,"name":"Nijo","address":{"street":"83
|
62
|
+
Spring St","city":"Seattle","state":"WA","postal_code":"98104"},"neighborhood":"Central
|
63
|
+
Business District, Downtown","latitude":47.605,"longitude":-122.3376,"distance":null,"image":"http://images.citysearch.net/assets/imgdb/advertorial_profile/41/a7/V-SEAWA-55058479_ID90112_guide_inclusion.gif","phone_number":"2063884119","fax_number":null,"rating":8.0,"tagline":null,"profile":"http://seattle.citysearch.com/profile/41662071/seattle_wa/nijo.html","website":"http://seattle.citysearch.com/profile/external/41662071/seattle_wa/nijo.html","has_video":false,"has_offers":false,"offers":null,"user_review_count":37,"sample_categories":"Bars
|
64
|
+
& Pubs, Restaurants, Dine At The Bar, Bar Scene, Sushi","impression_id":"000b00000073b6a82ac770401aa533b2beb775bc85","expansion":{"count":null,"uri":null},"tags":[{"id":1686,"name":"Bars
|
65
|
+
& Pubs","primary":false},{"id":1722,"name":"Restaurants","primary":false},{"id":11258,"name":"Dine
|
66
|
+
At The Bar","primary":false},{"id":11238,"name":"Bar Scene","primary":false},{"id":11201,"name":"Sushi","primary":false},{"id":11202,"name":"Japanese","primary":false},{"id":11231,"name":"$","primary":false},{"id":11286,"name":"Lunch
|
67
|
+
Spot","primary":false},{"id":11361,"name":"MasterCard","primary":false},{"id":11296,"name":"Outdoor
|
68
|
+
Dining","primary":false},{"id":11349,"name":"Discover","primary":false},{"id":11382,"name":"Visa","primary":false},{"id":11333,"name":"American
|
69
|
+
Express","primary":false},{"id":11271,"name":"Happy Hour","primary":false}],"public_id":"nijo-seattle"},{"id":10776750,"featured":false,"name":"Maneki
|
70
|
+
Restaurant","address":{"street":"304 6th Ave S","city":"Seattle","state":"WA","postal_code":"98104"},"neighborhood":"Downtown,
|
71
|
+
International District","latitude":47.5998,"longitude":-122.3261,"distance":null,"image":null,"phone_number":"2066222631","fax_number":null,"rating":9.0,"tagline":null,"profile":"http://seattle.citysearch.com/profile/10776750/seattle_wa/maneki_restaurant.html","website":null,"has_video":false,"has_offers":false,"offers":null,"user_review_count":54,"sample_categories":"Banquet
|
72
|
+
Rooms, Restaurants, MasterCard, Local Favorite, Cash","impression_id":"000b000000769205dc81fe4c87b10bb4b15b44cf12","expansion":{"count":null,"uri":null},"tags":[{"id":3495,"name":"Banquet
|
73
|
+
Rooms","primary":false},{"id":1722,"name":"Restaurants","primary":false},{"id":11361,"name":"MasterCard","primary":false},{"id":11284,"name":"Local
|
74
|
+
Favorite","primary":false},{"id":11339,"name":"Cash","primary":false},{"id":11201,"name":"Sushi","primary":false},{"id":11202,"name":"Japanese","primary":false},{"id":11231,"name":"$","primary":false},{"id":11382,"name":"Visa","primary":false},{"id":11333,"name":"American
|
75
|
+
Express","primary":false},{"id":11272,"name":"Hidden Find","primary":false}],"public_id":"maneki-restaurant-seattle"},{"id":10767399,"featured":false,"name":"Dragonfish
|
76
|
+
Asian Cafe","address":{"street":"722 Pine St","city":"Seattle","state":"WA","postal_code":"98101"},"neighborhood":"Central
|
77
|
+
Business District, Downtown","latitude":47.6128,"longitude":-122.334,"distance":null,"image":"http://images.citysearch.net/assets/imgdb/advertorial_profile/e3/a8/V-SEAWA-00041525_ID62618_guide_inclusion.jpg","phone_number":"2064677777","fax_number":null,"rating":7.0,"tagline":null,"profile":"http://seattle.citysearch.com/profile/10767399/seattle_wa/dragonfish_asian_cafe.html","website":null,"has_video":false,"has_offers":false,"offers":null,"user_review_count":69,"sample_categories":"Catering,
|
78
|
+
Banquet Rooms, Restaurants, Cheap Eats, Dine At The Bar","impression_id":"000b000000a12f5eb65c044b79b82aa1b55becec51","expansion":{"count":null,"uri":null},"tags":[{"id":1705,"name":"Catering","primary":false},{"id":3495,"name":"Banquet
|
79
|
+
Rooms","primary":false},{"id":1722,"name":"Restaurants","primary":false},{"id":11249,"name":"Cheap
|
80
|
+
Eats","primary":false},{"id":11258,"name":"Dine At The Bar","primary":false},{"id":11238,"name":"Bar
|
81
|
+
Scene","primary":false},{"id":11275,"name":"Hotel Restaurants","primary":false},{"id":11235,"name":"Asian","primary":false},{"id":11201,"name":"Sushi","primary":false},{"id":11244,"name":"Business
|
82
|
+
Dining","primary":false},{"id":11256,"name":"Date Spot","primary":false},{"id":11269,"name":"Group
|
83
|
+
Dining","primary":false},{"id":11232,"name":"$$","primary":false},{"id":11297,"name":"Pan-Asian
|
84
|
+
& Pacific Rim","primary":false},{"id":11298,"name":"People Watching","primary":false},{"id":11286,"name":"Lunch
|
85
|
+
Spot","primary":false},{"id":11315,"name":"Special Occasion Dining","primary":false},{"id":11361,"name":"MasterCard","primary":false},{"id":11282,"name":"Late
|
86
|
+
Night Dining","primary":false},{"id":11382,"name":"Visa","primary":false},{"id":11240,"name":"Brunch","primary":false},{"id":11333,"name":"American
|
87
|
+
Express","primary":false}],"public_id":"dragonfish-asian-cafe-seattle"},{"id":10792523,"featured":false,"name":"Mashiko
|
88
|
+
Japanese Restaurant","address":{"street":"4725 California Ave SW","city":"Seattle","state":"WA","postal_code":"98116"},"neighborhood":"West
|
89
|
+
Seattle, Junction","latitude":47.5606,"longitude":-122.3868,"distance":null,"image":"http://images.citysearch.net/assets/imgdb/profile/07/a6/10792523p1.jpg","phone_number":"2069354339","fax_number":null,"rating":7.0,"tagline":null,"profile":"http://seattle.citysearch.com/profile/10792523/seattle_wa/mashiko_japanese_restaurant.html","website":null,"has_video":false,"has_offers":false,"offers":null,"user_review_count":66,"sample_categories":"Restaurants,
|
90
|
+
MasterCard, Cash, Sushi, Japanese","impression_id":"000b000000b8bc36b4fe8c44aaa5a125e2f4b6e4af","expansion":{"count":null,"uri":null},"tags":[{"id":1722,"name":"Restaurants","primary":false},{"id":11361,"name":"MasterCard","primary":false},{"id":11339,"name":"Cash","primary":false},{"id":11201,"name":"Sushi","primary":false},{"id":11202,"name":"Japanese","primary":false},{"id":11231,"name":"$","primary":false},{"id":11382,"name":"Visa","primary":false}],"public_id":"mashiko-japanese-restaurant-seattle"},{"id":10796501,"featured":false,"name":"Shiro''s","address":{"street":"2401
|
91
|
+
2nd Ave","city":"Seattle","state":"WA","postal_code":"98121"},"neighborhood":"Belltown,
|
92
|
+
Downtown","latitude":47.6148,"longitude":-122.347,"distance":null,"image":"http://images.citysearch.net/assets/imgdb/advertorial_profile/93/93/V-SEAWA-00067333_ID150695_guide_inclusion.jpg","phone_number":"2064439844","fax_number":"2064439974","rating":8.0,"tagline":null,"profile":"http://seattle.citysearch.com/profile/10796501/seattle_wa/shiro_s.html","website":null,"has_video":false,"has_offers":false,"offers":null,"user_review_count":57,"sample_categories":"Restaurants,
|
93
|
+
Dine At The Bar, Sushi, Japanese, Date Spot","impression_id":"000b00000062ef1fa6525a4866ba36ed7210a0d451","expansion":{"count":null,"uri":null},"tags":[{"id":1722,"name":"Restaurants","primary":false},{"id":11258,"name":"Dine
|
94
|
+
At The Bar","primary":false},{"id":11201,"name":"Sushi","primary":false},{"id":11202,"name":"Japanese","primary":false},{"id":11256,"name":"Date
|
95
|
+
Spot","primary":false},{"id":11269,"name":"Group Dining","primary":false},{"id":11232,"name":"$$","primary":false},{"id":11361,"name":"MasterCard","primary":false},{"id":11284,"name":"Local
|
96
|
+
Favorite","primary":false},{"id":11293,"name":"Notable Chef","primary":false},{"id":11382,"name":"Visa","primary":false},{"id":11333,"name":"American
|
97
|
+
Express","primary":false},{"id":11251,"name":"Chef''s Table","primary":false}],"public_id":"shiros-seattle"},{"id":41916621,"featured":true,"name":"Liberty","address":{"street":"517
|
98
|
+
15th Ave E","city":"Seattle","state":"WA","postal_code":"98102"},"neighborhood":"Capitol
|
99
|
+
Hill, Broadway","latitude":47.623421,"longitude":-122.312622,"distance":null,"image":"http://images.citysearch.net/assets/imgdb/profile/7b/e4/41916621p1.jpg","phone_number":"2069730073","fax_number":null,"rating":9.0,"tagline":null,"profile":"http://seattle.citysearch.com/profile/41916621/seattle_wa/liberty.html","website":"http://seattle.citysearch.com/profile/external/41916621/seattle_wa/liberty.html","has_video":false,"has_offers":false,"offers":null,"user_review_count":25,"sample_categories":"Ski
|
100
|
+
Resorts, Neighborhood Bars, Whiskey Bars, Lounges, Bars & Pubs","impression_id":"000b0000004af1abd241ae40dfacc8d2a96cf7a1d3","expansion":{"count":null,"uri":null},"tags":[{"id":4309,"name":"Ski
|
101
|
+
Resorts","primary":false},{"id":1698,"name":"Neighborhood Bars","primary":false},{"id":1703,"name":"Whiskey
|
102
|
+
Bars","primary":false},{"id":1697,"name":"Lounges","primary":false},{"id":1686,"name":"Bars
|
103
|
+
& Pubs","primary":false},{"id":1722,"name":"Restaurants","primary":false},{"id":11237,"name":"Bar
|
104
|
+
Menu","primary":false},{"id":10038,"name":"Private Parties","primary":false},{"id":11201,"name":"Sushi","primary":false},{"id":11065,"name":"Bar
|
105
|
+
Menu","primary":false},{"id":11202,"name":"Japanese","primary":false},{"id":11256,"name":"Date
|
106
|
+
Spot","primary":false},{"id":11099,"name":"Martinis","primary":false},{"id":11090,"name":"Happy
|
107
|
+
Hour","primary":false},{"id":11304,"name":"Private Rooms","primary":false},{"id":11085,"name":"Draft
|
108
|
+
Beer","primary":false},{"id":11086,"name":"Drink Specials","primary":false},{"id":10041,"name":"Specialty
|
109
|
+
Cocktails","primary":false},{"id":11271,"name":"Happy Hour","primary":false},{"id":11324,"name":"Upscale
|
110
|
+
Casual Dining","primary":false},{"id":11307,"name":"Romantic Dining","primary":false},{"id":10015,"name":"After
|
111
|
+
Work","primary":false}],"public_id":"liberty-seattle-2"},{"id":41514976,"featured":false,"name":"Rain
|
112
|
+
Modern Infusion Cuisine","address":{"street":"2208 N 45th St","city":"Seattle","state":"WA","postal_code":"98103"},"neighborhood":"Lake
|
113
|
+
Union, Wallingford","latitude":47.6615,"longitude":-122.3322,"distance":null,"image":null,"phone_number":"2065457848","fax_number":null,"rating":8.0,"tagline":null,"profile":"http://seattle.citysearch.com/profile/41514976/seattle_wa/rain_modern_infusion_cuisine.html","website":null,"has_video":false,"has_offers":false,"offers":null,"user_review_count":49,"sample_categories":"Catering,
|
114
|
+
Restaurants, Bar Menu, Dine At The Bar, Asian","impression_id":"000b000000c09eab7a40c54ea9a7cb8359a8ba15f9","expansion":{"count":null,"uri":null},"tags":[{"id":1705,"name":"Catering","primary":false},{"id":1722,"name":"Restaurants","primary":false},{"id":11237,"name":"Bar
|
115
|
+
Menu","primary":false},{"id":11258,"name":"Dine At The Bar","primary":false},{"id":11235,"name":"Asian","primary":false},{"id":11201,"name":"Sushi","primary":false},{"id":11202,"name":"Japanese","primary":false},{"id":11231,"name":"$","primary":false},{"id":11256,"name":"Date
|
116
|
+
Spot","primary":false},{"id":12838,"name":"Asian Fusion","primary":false},{"id":11367,"name":"Open
|
117
|
+
7 Days","primary":false},{"id":11286,"name":"Lunch Spot","primary":false},{"id":11361,"name":"MasterCard","primary":false},{"id":11349,"name":"Discover","primary":false},{"id":11382,"name":"Visa","primary":false},{"id":11333,"name":"American
|
118
|
+
Express","primary":false},{"id":11271,"name":"Happy Hour","primary":false}],"public_id":"rain-modern-infusion-cuisine-seattle"},{"id":38584648,"featured":false,"name":"Blue
|
119
|
+
C Sushi","address":{"street":"3411 Fremont Ave N","city":"Seattle","state":"WA","postal_code":"98103"},"neighborhood":"Lake
|
120
|
+
Union, Fremont","latitude":47.6498,"longitude":-122.35,"distance":null,"image":"http://images.citysearch.net/assets/imgdb/profile/08/f4/38584648p1.jpg","phone_number":"4257743719","fax_number":null,"rating":7.0,"tagline":null,"profile":"http://seattle.citysearch.com/profile/38584648/seattle_wa/blue_c_sushi.html","website":null,"has_video":false,"has_offers":false,"offers":null,"user_review_count":52,"sample_categories":"Restaurants,
|
121
|
+
MasterCard, Dine At The Bar, Local Favorite, Sushi","impression_id":"000b000000d5cbedca95144b208ccdae9b6c1b9558","expansion":{"count":null,"uri":null},"tags":[{"id":1722,"name":"Restaurants","primary":false},{"id":11361,"name":"MasterCard","primary":false},{"id":11258,"name":"Dine
|
122
|
+
At The Bar","primary":false},{"id":11284,"name":"Local Favorite","primary":false},{"id":11201,"name":"Sushi","primary":false},{"id":11202,"name":"Japanese","primary":false},{"id":11256,"name":"Date
|
123
|
+
Spot","primary":false},{"id":11231,"name":"$","primary":false},{"id":11382,"name":"Visa","primary":false},{"id":11286,"name":"Lunch
|
124
|
+
Spot","primary":false}],"public_id":"blue-c-sushi-seattle-4"},{"id":10800218,"featured":false,"name":"Toyota
|
125
|
+
Tsusho America Inc","address":{"street":"12543 Lake City Way NE","city":"Seattle","state":"WA","postal_code":"98125"},"neighborhood":"North,
|
126
|
+
Olympic Hills, North Seattle","latitude":47.7202,"longitude":-122.295,"distance":null,"image":null,"phone_number":"2063677972","fax_number":null,"rating":7.0,"tagline":null,"profile":"http://seattle.citysearch.com/profile/10800218/seattle_wa/toyota_tsusho_america_inc.html","website":null,"has_video":false,"has_offers":false,"offers":null,"user_review_count":48,"sample_categories":"Investments,
|
127
|
+
Restaurants, MasterCard, Local Favorite, Sushi","impression_id":"000b0000009f843a8704cc49ed9c511e8bf0098825","expansion":{"count":null,"uri":null},"tags":[{"id":1636,"name":"Investments","primary":false},{"id":1722,"name":"Restaurants","primary":false},{"id":11361,"name":"MasterCard","primary":false},{"id":11284,"name":"Local
|
128
|
+
Favorite","primary":false},{"id":11201,"name":"Sushi","primary":false},{"id":11202,"name":"Japanese","primary":false},{"id":11231,"name":"$","primary":false},{"id":11382,"name":"Visa","primary":false},{"id":11341,"name":"Check","primary":false},{"id":11286,"name":"Lunch
|
129
|
+
Spot","primary":false}],"public_id":"toyota-tsusho-america-inc-seattle"},{"id":11621610,"featured":false,"name":"Chiso
|
130
|
+
Restaurant","address":{"street":"3520 Fremont Ave N","city":"Seattle","state":"WA","postal_code":"98103"},"neighborhood":"Lake
|
131
|
+
Union, Fremont","latitude":47.650618,"longitude":-122.349884,"distance":null,"image":null,"phone_number":"2066323430","fax_number":null,"rating":9.0,"tagline":null,"profile":"http://seattle.citysearch.com/profile/11621610/seattle_wa/chiso_restaurant.html","website":null,"has_video":false,"has_offers":false,"offers":null,"user_review_count":35,"sample_categories":"Restaurants,
|
132
|
+
MasterCard, Cash, Sushi, Japanese","impression_id":"000b00000002db3c56a088437ab8b8f85bee496e2f","expansion":{"count":null,"uri":null},"tags":[{"id":1722,"name":"Restaurants","primary":false},{"id":11361,"name":"MasterCard","primary":false},{"id":11339,"name":"Cash","primary":false},{"id":11201,"name":"Sushi","primary":false},{"id":11202,"name":"Japanese","primary":false},{"id":11382,"name":"Visa","primary":false},{"id":11333,"name":"American
|
133
|
+
Express","primary":false},{"id":11347,"name":"Debit Card","primary":false},{"id":11271,"name":"Happy
|
134
|
+
Hour","primary":false}],"public_id":"chiso-restaurant-seattle"},{"id":10774459,"featured":false,"name":"Musashi","address":{"street":"1400
|
135
|
+
N 45th St","city":"Seattle","state":"WA","postal_code":"98103"},"neighborhood":"Lake
|
136
|
+
Union, Wallingford","latitude":47.6615,"longitude":-122.3404,"distance":null,"image":null,"phone_number":"2066330212","fax_number":null,"rating":8.0,"tagline":null,"profile":"http://seattle.citysearch.com/profile/10774459/seattle_wa/musashi.html","website":null,"has_video":false,"has_offers":false,"offers":null,"user_review_count":40,"sample_categories":"Restaurants,
|
137
|
+
Cheap Eats, Local Favorite, Sushi, Cash","impression_id":"000b000000d4888ec9c3624dc794c7245408d73c50","expansion":{"count":null,"uri":null},"tags":[{"id":1722,"name":"Restaurants","primary":false},{"id":11249,"name":"Cheap
|
138
|
+
Eats","primary":false},{"id":11284,"name":"Local Favorite","primary":false},{"id":11201,"name":"Sushi","primary":false},{"id":11339,"name":"Cash","primary":false},{"id":11202,"name":"Japanese","primary":false},{"id":11231,"name":"$","primary":false},{"id":11341,"name":"Check","primary":false}],"public_id":"musashi-seattle"},{"id":41873269,"featured":false,"name":"Red
|
139
|
+
Fin Japanese Restaurant & Sushi Bar","address":{"street":"612 Stewart St","city":"Seattle","state":"WA","postal_code":"98101"},"neighborhood":"Belltown,
|
140
|
+
Downtown","latitude":47.6137,"longitude":-122.336906,"distance":null,"image":"http://images.citysearch.net/assets/imgdb/profile/b9/cc/41873269p1.jpg","phone_number":"2064414340","fax_number":null,"rating":9.0,"tagline":null,"profile":"http://seattle.citysearch.com/profile/41873269/seattle_wa/red_fin_japanese_restaurant_sushi_bar.html","website":null,"has_video":false,"has_offers":false,"offers":null,"user_review_count":32,"sample_categories":"Restaurants,
|
141
|
+
Dine At The Bar, Bar Scene, Hotel Restaurants, Asian","impression_id":"000b00000094a93ee86f3a435585567e0ac42e5442","expansion":{"count":null,"uri":null},"tags":[{"id":1722,"name":"Restaurants","primary":false},{"id":11258,"name":"Dine
|
142
|
+
At The Bar","primary":false},{"id":11238,"name":"Bar Scene","primary":false},{"id":11275,"name":"Hotel
|
143
|
+
Restaurants","primary":false},{"id":11235,"name":"Asian","primary":false},{"id":11201,"name":"Sushi","primary":false},{"id":11202,"name":"Japanese","primary":false},{"id":11233,"name":"$$$","primary":false},{"id":11244,"name":"Business
|
144
|
+
Dining","primary":false},{"id":11243,"name":"Business Breakfast","primary":false},{"id":11367,"name":"Open
|
145
|
+
7 Days","primary":false},{"id":11298,"name":"People Watching","primary":false},{"id":11239,"name":"Breakfast","primary":false},{"id":11286,"name":"Lunch
|
146
|
+
Spot","primary":false},{"id":11361,"name":"MasterCard","primary":false},{"id":11282,"name":"Late
|
147
|
+
Night Dining","primary":false},{"id":11382,"name":"Visa","primary":false},{"id":11333,"name":"American
|
148
|
+
Express","primary":false},{"id":11271,"name":"Happy Hour","primary":false}],"public_id":"red-fin-japanese-restaurant-sushi-bar-seattle"},{"id":41419346,"featured":false,"name":"Yamashiro
|
149
|
+
Sushi Broker","address":{"street":"13754 Aurora Ave N","city":"Seattle","state":"WA","postal_code":"98133"},"neighborhood":"Northwest
|
150
|
+
Seattle, Northwest, Haller Lake","latitude":47.7297,"longitude":-122.3449,"distance":null,"image":"http://images.citysearch.net/assets/imgdb/advertorial_profile/fa/44/V-SEAWA-55051003_ID73619_guide_inclusion.jpg","phone_number":"2063612620","fax_number":null,"rating":8.0,"tagline":null,"profile":"http://seattle.citysearch.com/profile/41419346/seattle_wa/yamashiro_sushi_broker.html","website":null,"has_video":false,"has_offers":false,"offers":null,"user_review_count":36,"sample_categories":"Restaurants,
|
151
|
+
MasterCard, Asian, Cash, Late Night Dining","impression_id":"000b0000008ccef781d1e74d538288ae2834c33a0b","expansion":{"count":null,"uri":null},"tags":[{"id":1722,"name":"Restaurants","primary":false},{"id":11361,"name":"MasterCard","primary":false},{"id":11235,"name":"Asian","primary":false},{"id":11339,"name":"Cash","primary":false},{"id":11282,"name":"Late
|
152
|
+
Night Dining","primary":false},{"id":11201,"name":"Sushi","primary":false},{"id":11202,"name":"Japanese","primary":false},{"id":11269,"name":"Group
|
153
|
+
Dining","primary":false},{"id":11231,"name":"$","primary":false},{"id":11382,"name":"Visa","primary":false}],"public_id":"yamashiro-sushi-broker-seattle"},{"id":10772953,"featured":false,"name":"Hana
|
154
|
+
Restaurant","address":{"street":"219 Broadway E","city":"Seattle","state":"WA","postal_code":"98102"},"neighborhood":"Broadway,
|
155
|
+
Capitol Hill","latitude":47.6202,"longitude":-122.3211,"distance":null,"image":null,"phone_number":"2063281187","fax_number":null,"rating":8.0,"tagline":null,"profile":"http://seattle.citysearch.com/profile/10772953/seattle_wa/hana_restaurant.html","website":null,"has_video":false,"has_offers":false,"offers":null,"user_review_count":35,"sample_categories":"Restaurants,
|
156
|
+
MasterCard, Local Favorite, Sushi, Japanese","impression_id":"000b0000005fa610765a594d3eaa6455a1e4dc9819","expansion":{"count":null,"uri":null},"tags":[{"id":1722,"name":"Restaurants","primary":false},{"id":11361,"name":"MasterCard","primary":false},{"id":11284,"name":"Local
|
157
|
+
Favorite","primary":false},{"id":11201,"name":"Sushi","primary":false},{"id":11202,"name":"Japanese","primary":false},{"id":11232,"name":"$$","primary":false},{"id":11382,"name":"Visa","primary":false}],"public_id":"hana-restaurant-seattle"},{"id":10766503,"featured":false,"name":"Benihana","address":{"street":"1200
|
158
|
+
5th Ave","city":"Seattle","state":"WA","postal_code":"98101"},"neighborhood":"Downtown,
|
159
|
+
Central Business District","latitude":47.6081,"longitude":-122.3331,"distance":null,"image":"http://images.citysearch.net/assets/imgdb/advertorial_profile/f6/8b/V-SEAWA-00041473_ID94551_guide_inclusion.jpg","phone_number":"2066824686","fax_number":null,"rating":8.0,"tagline":null,"profile":"http://seattle.citysearch.com/profile/10766503/seattle_wa/benihana.html","website":null,"has_video":false,"has_offers":false,"offers":null,"user_review_count":34,"sample_categories":"Restaurants,
|
160
|
+
Sushi, Japanese, Travelers Check, Chicken","impression_id":"000b0000007caa1a3e7c6e484698f51a5bac97008e","expansion":{"count":null,"uri":null},"tags":[{"id":1722,"name":"Restaurants","primary":false},{"id":11201,"name":"Sushi","primary":false},{"id":11202,"name":"Japanese","primary":false},{"id":11379,"name":"Travelers
|
161
|
+
Check","primary":false},{"id":12839,"name":"Chicken","primary":false},{"id":12645,"name":"Romantic","primary":false},{"id":11228,"name":"Seafood","primary":false},{"id":10977,"name":"Japanese
|
162
|
+
Lessons","primary":false},{"id":11348,"name":"Diners Club","primary":false},{"id":10038,"name":"Private
|
163
|
+
Parties","primary":false},{"id":11238,"name":"Bar Scene","primary":false},{"id":11235,"name":"Asian","primary":false},{"id":11247,"name":"Carry
|
164
|
+
Out","primary":false},{"id":11244,"name":"Business Dining","primary":false},{"id":11269,"name":"Group
|
165
|
+
Dining","primary":false},{"id":11232,"name":"$$","primary":false},{"id":11361,"name":"MasterCard","primary":false},{"id":11339,"name":"Cash","primary":false},{"id":11382,"name":"Visa","primary":false},{"id":11241,"name":"Buffet","primary":false},{"id":11333,"name":"American
|
166
|
+
Express","primary":false},{"id":11262,"name":"Family Style Dining","primary":false},{"id":11263,"name":"Family-Friendly
|
167
|
+
Dining","primary":false},{"id":11352,"name":"Gift Certificate","primary":false},{"id":11316,"name":"Steakhouse","primary":false}],"public_id":"benihana-seattle"}]}}'
|
168
|
+
http_version: '1.1'
|
@@ -0,0 +1,67 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: http://api.citygridmedia.com:80/content/places/v2/search/where?client_ip=192.168.0.1&format=json&publisher=citygrid&what=el%20gaucho&where=seattle,%20wa
|
6
|
+
body: !!null
|
7
|
+
headers:
|
8
|
+
accept:
|
9
|
+
- application/json
|
10
|
+
content-type:
|
11
|
+
- Application/JSON
|
12
|
+
response: !ruby/struct:VCR::Response
|
13
|
+
status: !ruby/struct:VCR::ResponseStatus
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
date:
|
18
|
+
- Fri, 30 Dec 2011 01:06:19 GMT
|
19
|
+
server:
|
20
|
+
- Apache-Coyote/1.1
|
21
|
+
content-type:
|
22
|
+
- application/json
|
23
|
+
vary:
|
24
|
+
- Accept-Encoding
|
25
|
+
transfer-encoding:
|
26
|
+
- chunked
|
27
|
+
body: ! '{"results":{"query_id":null,"uri":"http://api.citygridmedia.com/search/places/v2/search/where?has_offers=false&format=json&page=1&rpp=20&histograms=false&what=el+gaucho&where=seattle%2C+wa&publisher=citygrid®ion_type=circle","first_hit":1,"last_hit":8,"total_hits":8,"page":1,"rpp":20,"did_you_mean":null,"regions":[{"type":"city","name":"Seattle,
|
28
|
+
WA","latitude":47.620434,"longitude":-122.35101,"default_radius":11.9400}],"histograms":[],"locations":[{"id":41280457,"featured":false,"name":"El
|
29
|
+
Gaucho","address":{"street":"2505 1st Ave","city":"Seattle","state":"WA","postal_code":"98121"},"neighborhood":"Downtown,
|
30
|
+
Belltown","latitude":47.6147,"longitude":-122.349,"distance":null,"image":"http://images.citysearch.net/assets/imgdb/advertorial_profile/6e/18/V-SEAWA-55044086_ID51753_guide_inclusion.jpg","phone_number":"2067281337","fax_number":null,"rating":8.0,"tagline":null,"profile":"http://seattle.citysearch.com/profile/41280457/seattle_wa/el_gaucho.html","website":null,"has_video":false,"has_offers":false,"offers":null,"user_review_count":125,"sample_categories":"Bars
|
31
|
+
& Clubs, Restaurants, Dine At The Bar, Bar Scene, Celeb Hangout","impression_id":"000b0000002bdc16a6e57242939ac5879704d8ba56","expansion":{"count":null,"uri":null},"tags":[{"id":164,"name":"Bars
|
32
|
+
& Clubs","primary":false},{"id":1722,"name":"Restaurants","primary":false},{"id":11258,"name":"Dine
|
33
|
+
At The Bar","primary":false},{"id":11238,"name":"Bar Scene","primary":false},{"id":11248,"name":"Celeb
|
34
|
+
Hangout","primary":false},{"id":11265,"name":"Fine Dining","primary":false},{"id":11234,"name":"$$$$","primary":false},{"id":11244,"name":"Business
|
35
|
+
Dining","primary":false},{"id":11256,"name":"Date Spot","primary":false},{"id":11379,"name":"Travelers
|
36
|
+
Check","primary":false},{"id":11298,"name":"People Watching","primary":false},{"id":11361,"name":"MasterCard","primary":false},{"id":11294,"name":"Notable
|
37
|
+
Wine List","primary":false},{"id":10015,"name":"After Work","primary":false},{"id":11284,"name":"Local
|
38
|
+
Favorite","primary":false},{"id":11282,"name":"Late Night Dining","primary":false},{"id":15490,"name":"South
|
39
|
+
American","primary":false},{"id":10013,"name":"21 & Over","primary":false},{"id":11382,"name":"Visa","primary":false},{"id":11333,"name":"American
|
40
|
+
Express","primary":false},{"id":11348,"name":"Diners Club","primary":false},{"id":11341,"name":"Check","primary":false},{"id":11352,"name":"Gift
|
41
|
+
Certificate","primary":false},{"id":11316,"name":"Steakhouse","primary":false}],"public_id":"el-gaucho-seattle-2"},{"id":45403893,"featured":false,"name":"El
|
42
|
+
Gaucho","address":{"street":"10 Harrison St","city":"Seattle","state":"WA","postal_code":"98109"},"neighborhood":"Magnolia
|
43
|
+
- Queen Anne, Magnolia / Queen Anne, Lower Queen Anne","latitude":47.6222,"longitude":-122.3565,"distance":null,"image":null,"phone_number":"2063521539","fax_number":null,"rating":null,"tagline":null,"profile":"http://seattle.citysearch.com/profile/45403893/seattle_wa/el_gaucho.html","website":null,"has_video":false,"has_offers":false,"offers":null,"user_review_count":0,"sample_categories":"Unclassified,
|
44
|
+
Hydroponics","impression_id":"000b000000abc8c99b665d42a7b56c66030c97dafd","expansion":{"count":null,"uri":null},"tags":[{"id":6019,"name":"Unclassified","primary":false},{"id":22,"name":"Hydroponics","primary":false}],"public_id":"el-gaucho-seattle"},{"id":601947329,"featured":false,"name":"Inn
|
45
|
+
At El Gaucho","address":{"street":"2507 1st Ave","city":"Seattle","state":"WA","postal_code":"98121"},"neighborhood":"Downtown,
|
46
|
+
Belltown","latitude":47.614799,"longitude":-122.34893,"distance":null,"image":null,"phone_number":"2062670500","fax_number":null,"rating":8.0,"tagline":null,"profile":"http://seattle.citysearch.com/profile/601947329/seattle_wa/inn_at_el_gaucho.html","website":null,"has_video":false,"has_offers":false,"offers":null,"user_review_count":1,"sample_categories":"Hotels
|
47
|
+
& Motels","impression_id":"000b000000e37515a24dbc4a2db84a6590d2f936f6","expansion":{"count":null,"uri":null},"tags":[{"id":4295,"name":"Hotels
|
48
|
+
& Motels","primary":false}],"public_id":"inn-at-el-gaucho-seattle"},{"id":44963930,"featured":false,"name":"Inn
|
49
|
+
At El Gaucho","address":{"street":"2505 1st Ave","city":"Seattle","state":"WA","postal_code":"98121"},"neighborhood":"Belltown,
|
50
|
+
Downtown","latitude":47.6147,"longitude":-122.349,"distance":null,"image":null,"phone_number":"2067281133","fax_number":null,"rating":8.0,"tagline":null,"profile":"http://seattle.citysearch.com/profile/44963930/seattle_wa/inn_at_el_gaucho.html","website":null,"has_video":false,"has_offers":false,"offers":null,"user_review_count":0,"sample_categories":"Hotels
|
51
|
+
& Motels, MasterCard, Visa","impression_id":"000b000000f88829cbc9764390a8c86d5b01befaac","expansion":{"count":null,"uri":null},"tags":[{"id":4295,"name":"Hotels
|
52
|
+
& Motels","primary":false},{"id":11361,"name":"MasterCard","primary":false},{"id":11382,"name":"Visa","primary":false}],"public_id":"inn-at-el-gaucho-seattle-3"},{"id":41791006,"featured":false,"name":"Inn
|
53
|
+
at El Gaucho","address":{"street":"2505 First Avenue","city":"Seattle","state":"WA","postal_code":"98121"},"neighborhood":"Belltown,
|
54
|
+
Downtown","latitude":47.6147,"longitude":-122.349,"distance":null,"image":"http://images.citysearch.net/assets/imgdb/profile/9c/60/41791006p1.jpg","phone_number":"2062370758","fax_number":null,"rating":6.0,"tagline":null,"profile":"http://seattle.citysearch.com/profile/41791006/seattle_wa/inn_at_el_gaucho.html","website":null,"has_video":false,"has_offers":false,"offers":null,"user_review_count":14,"sample_categories":"Tourist
|
55
|
+
Hotels, Lodging, Business Hotels, Hotels & Motels, Boutique Hotels","impression_id":"000b000000b084ea553f1c4b2d822b6f2e5264951e","expansion":{"count":null,"uri":null},"tags":[{"id":4303,"name":"Tourist
|
56
|
+
Hotels","primary":false},{"id":4287,"name":"Lodging","primary":false},{"id":4300,"name":"Business
|
57
|
+
Hotels","primary":false},{"id":4295,"name":"Hotels & Motels","primary":false},{"id":4298,"name":"Boutique
|
58
|
+
Hotels","primary":false},{"id":11361,"name":"MasterCard","primary":false},{"id":12636,"name":"Hotel
|
59
|
+
Dining","primary":false},{"id":11382,"name":"Visa","primary":false},{"id":11333,"name":"American
|
60
|
+
Express","primary":false},{"id":12645,"name":"Romantic","primary":false}],"public_id":"inn-at-el-gaucho-seattle-2"},{"id":681408060,"featured":false,"name":"El
|
61
|
+
Gaucho Belltown","address":{"street":"2505 1st Ave","city":"Seattle","state":"WA","postal_code":"98121"},"neighborhood":"Belltown,
|
62
|
+
Downtown","latitude":47.614747,"longitude":-122.348845,"distance":null,"image":null,"phone_number":"2067281337","fax_number":null,"rating":null,"tagline":null,"profile":"http://seattle.citysearch.com/profile/681408060/seattle_wa/el_gaucho_belltown.html","website":null,"has_video":false,"has_offers":false,"offers":null,"user_review_count":11,"sample_categories":"Unclassified","impression_id":"000b0000003fd21907d77143d5a4fd69b1c639697f","expansion":{"count":null,"uri":null},"tags":[{"id":6019,"name":"Unclassified","primary":false}],"public_id":"el-gaucho-belltown-seattle"},{"id":711406320,"featured":false,"name":"El
|
63
|
+
Gaucho Seattle","address":{"street":"2505 1st Ave","city":"Seattle","state":"WA","postal_code":"98121"},"neighborhood":"Downtown,
|
64
|
+
Belltown","latitude":47.614747,"longitude":-122.348845,"distance":null,"image":null,"phone_number":"2067281337","fax_number":null,"rating":null,"tagline":null,"profile":"http://seattle.citysearch.com/profile/711406320/seattle_wa/el_gaucho_seattle.html","website":null,"has_video":false,"has_offers":false,"offers":null,"user_review_count":11,"sample_categories":"Unclassified","impression_id":"000b0000000ec643a265454f21b069d92687191d50","expansion":{"count":null,"uri":null},"tags":[{"id":6019,"name":"Unclassified","primary":false}],"public_id":"el-gaucho-seattle-seattle"},{"id":659438890,"featured":false,"name":"EL
|
65
|
+
GAUCHO PRIVATE DINING","address":{"street":"2505 1st Ave","city":"Seattle","state":"WA","postal_code":"98121"},"neighborhood":"Belltown,
|
66
|
+
Downtown","latitude":47.614749,"longitude":-122.348847,"distance":null,"image":null,"phone_number":"2067281337","fax_number":null,"rating":null,"tagline":null,"profile":"http://seattle.citysearch.com/profile/659438890/seattle_wa/el_gaucho_private_dining.html","website":null,"has_video":false,"has_offers":false,"offers":null,"user_review_count":0,"sample_categories":"Restaurants","impression_id":"000b000000571dbeaf4ffb4ab8b541c7952626aaaf","expansion":{"count":null,"uri":null},"tags":[{"id":1722,"name":"Restaurants","primary":false}],"public_id":"el-gaucho-private-dining-seattle"}]}}'
|
67
|
+
http_version: '1.1'
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class CityGrid
|
2
|
+
class API
|
3
|
+
class Accounts
|
4
|
+
class Account < Accounts
|
5
|
+
extend CityGrid::API::Mutatable
|
6
|
+
extend CityGrid::API::Searchable
|
7
|
+
|
8
|
+
# Adds new customer account to existing user
|
9
|
+
# http://docs.prod.cs/display/citygridv2/Internal+-+Account#Internal-Account-AddNewCustomerAccounttoExistingUser
|
10
|
+
define_action :import_to_cg, :post, "customer/mutate", :auth_token => true, :format => false
|
11
|
+
|
12
|
+
# http://docs-dev.prod.cs/display/citygridv2/Internal+-+Account+Type
|
13
|
+
define_action :account_type, :get, "get/type", :auth_token => true
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
class CityGrid
|
2
|
+
class API
|
3
|
+
class Accounts
|
4
|
+
class User < Accounts
|
5
|
+
extend CityGrid::API::Mutatable
|
6
|
+
extend CityGrid::API::Searchable
|
7
|
+
|
8
|
+
def self.login options = {}
|
9
|
+
request_and_handle :post,
|
10
|
+
"#{endpoint}/login",
|
11
|
+
:query => options
|
12
|
+
end
|
13
|
+
|
14
|
+
define_action :validate, :get, "validate", :auth_token => true
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
class CityGrid
|
2
|
+
class API
|
3
|
+
class Advertising
|
4
|
+
class CallDetail < Advertising
|
5
|
+
define_action :campaign, :post, "campaign", :auth_token => true, :format => false
|
6
|
+
define_action :note, :post, "note", :auth_token => true, :format => false
|
7
|
+
end
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
@@ -2,8 +2,8 @@ require 'base64'
|
|
2
2
|
|
3
3
|
class CityGrid
|
4
4
|
class API
|
5
|
-
class
|
6
|
-
class Image <
|
5
|
+
class Advertising
|
6
|
+
class Image < Advertising
|
7
7
|
def self.upload user_id, name, type, image_path, options = {}
|
8
8
|
token = extract_auth_token options
|
9
9
|
image_data = Base64.encode64(File.open(image_path).read.to_s).gsub(/\n/, "")
|
@@ -1,7 +1,7 @@
|
|
1
1
|
class CityGrid
|
2
2
|
class API
|
3
|
-
class
|
4
|
-
class Performance <
|
3
|
+
class Advertising
|
4
|
+
class Performance < Advertising
|
5
5
|
class << self
|
6
6
|
def summary type, options = {}
|
7
7
|
token = extract_auth_token options
|
@@ -11,6 +11,9 @@ class CityGrid
|
|
11
11
|
:headers => merge_headers("authToken" => token)
|
12
12
|
end
|
13
13
|
end
|
14
|
+
|
15
|
+
define_action :daily, :post, "campaign/daily", :auth_token => true, :format => false
|
16
|
+
define_action :actions, :post, "campaign/actions", :auth_token => true, :format => false
|
14
17
|
end
|
15
18
|
end
|
16
19
|
end
|