citygrid_api 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/.sass-cache/c6f2c767b164f077e5b9fb1f18a7886d7c755211/test.scssc +0 -0
- data/README.rdoc +42 -13
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/citygrid_api.gemspec +23 -12
- data/citygrid_api.yml.sample +10 -2
- data/citygrid_api.yml.sandbox +46 -0
- data/dashboard.rb +1 -1
- data/fixtures/vcr_cassettes/AdGroupCriterion_mutate.yml +3 -3
- data/fixtures/vcr_cassettes/AdGroupCriterion_search.yml +3 -3
- data/fixtures/vcr_cassettes/Adding_a_place.yml +4 -4
- data/fixtures/vcr_cassettes/Geo.yml +30 -13
- data/fixtures/vcr_cassettes/Getting_an_offer.yml +413 -0
- data/fixtures/vcr_cassettes/Getting_an_offer_by_listing_ID.yml +12 -12
- data/fixtures/vcr_cassettes/Import_a_cg_account.yml +28 -16
- data/fixtures/vcr_cassettes/Initiating_a_Details.yml +14 -30
- data/fixtures/vcr_cassettes/Initiating_new_MultiDetails.yml +13 -13
- data/fixtures/vcr_cassettes/Mutating_AdGroup_Ads.yml +4 -4
- data/fixtures/vcr_cassettes/Report_summary_daily.yml +34 -34
- data/fixtures/vcr_cassettes/Report_summary_user_actions.yml +14 -10
- data/fixtures/vcr_cassettes/Search_Ad_Group_by_Campaign_Id.yml +3 -3
- data/fixtures/vcr_cassettes/Search_Billing_by_Campaign_Id.yml +31 -12
- data/fixtures/vcr_cassettes/Search_account_manager_by_Campaign_Id.yml +25 -12
- data/fixtures/vcr_cassettes/Searching_AdGroup_Geo.yml +6 -6
- data/fixtures/vcr_cassettes/Searching_budgets.yml +31 -12
- data/fixtures/vcr_cassettes/Searching_categories_by_listing_id.yml +3 -3
- data/fixtures/vcr_cassettes/Searching_categories_by_query.yml +3 -3
- data/fixtures/vcr_cassettes/Upload_an_image_Add_a_preview.yml +31 -12
- data/fixtures/vcr_cassettes/{Method_of_Payment_mutate.yml → create_a_mop.yml} +24 -12
- data/fixtures/vcr_cassettes/create_an_offer.yml +51 -0
- data/fixtures/vcr_cassettes/create_campaign.yml +5 -5
- data/fixtures/vcr_cassettes/create_campaign_then_create_ad_group_belonging_to_campaign.yml +61 -0
- data/fixtures/vcr_cassettes/create_campaign_then_create_ad_group_belonging_to_campaign_then_search_.yml +91 -0
- data/fixtures/vcr_cassettes/getting_reviews_by_listing_id.yml +91 -0
- data/fixtures/vcr_cassettes/log_in_a_session.yml +3 -3
- data/fixtures/vcr_cassettes/log_in_a_session_mutate_places.yml +7 -7
- data/fixtures/vcr_cassettes/query_account_type_by_id.yml +24 -12
- data/fixtures/vcr_cassettes/search_for_an_account_by_id.yml +24 -13
- data/fixtures/vcr_cassettes/search_for_an_account_by_name.yml +27 -17
- data/fixtures/vcr_cassettes/search_for_call_detail_by_campaign.yml +49 -0
- data/fixtures/vcr_cassettes/search_for_mop_by_account_id.yml +65 -0
- data/fixtures/vcr_cassettes/searching_for_a_CityGrid_listing.yml +57 -53
- data/fixtures/vcr_cassettes/searching_for_a_special_CityGrid_listing.yml +10 -10
- data/fixtures/vcr_cassettes/user_log_in_with_raw_API.yml +24 -0
- data/fixtures/vcr_cassettes/user_log_in_with_session.yml +24 -0
- data/lib/citygrid/api/accounts/account.rb +2 -2
- data/lib/citygrid/api/accounts/method_of_payment.rb +2 -2
- data/lib/citygrid/api/accounts/user.rb +8 -4
- data/lib/citygrid/api/advertising/account_manager.rb +1 -1
- data/lib/citygrid/api/advertising/ad_group.rb +2 -2
- data/lib/citygrid/api/advertising/ad_group_ad.rb +2 -2
- data/lib/citygrid/api/advertising/ad_group_criterion.rb +2 -2
- data/lib/citygrid/api/advertising/ad_group_geo.rb +2 -2
- data/lib/citygrid/api/advertising/billing.rb +2 -1
- data/lib/citygrid/api/advertising/budget.rb +2 -2
- data/lib/citygrid/api/advertising/call_detail.rb +2 -2
- data/lib/citygrid/api/advertising/campaign.rb +2 -2
- data/lib/citygrid/api/advertising/category.rb +2 -2
- data/lib/citygrid/api/advertising/geolocation.rb +2 -2
- data/lib/citygrid/api/advertising/image.rb +3 -3
- data/lib/citygrid/api/advertising/offers.rb +10 -0
- data/lib/citygrid/api/advertising/places.rb +2 -2
- data/lib/citygrid/api/content/offers.rb +11 -2
- data/lib/citygrid/api/content/places.rb +1 -1
- data/lib/citygrid/api/content/response.rb +14 -0
- data/lib/citygrid/api/content/reviews.rb +5 -2
- data/lib/citygrid/api/mutable.rb +13 -0
- data/lib/citygrid/api/searchable.rb +4 -6
- data/lib/citygrid/api.rb +70 -52
- data/lib/citygrid/session.rb +5 -9
- data/lib/citygrid.rb +28 -1
- data/test/api/accounts/test_account.rb +53 -32
- data/test/api/accounts/test_method_of_payment.rb +40 -43
- data/test/api/accounts/test_user.rb +16 -0
- data/test/api/advertising/test_call_detail.rb +17 -2
- data/test/api/advertising/test_offers.rb +33 -0
- data/test/api/advertising/test_places.rb +18 -0
- data/test/api/content/test_offers.rb +14 -14
- data/test/api/content/test_response.rb +51 -0
- data/test/api/content/test_reviews.rb +11 -0
- data/test/helper.rb +18 -11
- metadata +41 -29
- data/README +0 -21
- data/citygrid_api.yml.backup +0 -35
- data/fixtures/vcr_cassettes/Call_Detail_by_campaign.yml +0 -79
- data/fixtures/vcr_cassettes/Method_of_Payment_search.yml +0 -59
- data/lib/citygrid/api/mutatable.rb +0 -15
@@ -2,7 +2,7 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: https://api
|
5
|
+
uri: https://sandbox-api.citygrid.com:443/accounts/user/v2/login?password=pppppp&username=GARYTEST
|
6
6
|
body: !!null
|
7
7
|
headers: !!null
|
8
8
|
response: !ruby/struct:VCR::Response
|
@@ -11,7 +11,7 @@
|
|
11
11
|
message: OK
|
12
12
|
headers:
|
13
13
|
date:
|
14
|
-
-
|
14
|
+
- Sat, 31 Dec 2011 01:11:10 GMT
|
15
15
|
server:
|
16
16
|
- Apache-Coyote/1.1
|
17
17
|
content-type:
|
@@ -20,12 +20,12 @@
|
|
20
20
|
- Accept-Encoding
|
21
21
|
transfer-encoding:
|
22
22
|
- chunked
|
23
|
-
body: ! '{"code":201,"authToken":"
|
23
|
+
body: ! '{"code":201,"authToken":"2f45061f07f7e61a9f3953d7bfbd904b"}'
|
24
24
|
http_version: '1.1'
|
25
25
|
- !ruby/struct:VCR::HTTPInteraction
|
26
26
|
request: !ruby/struct:VCR::Request
|
27
27
|
method: :post
|
28
|
-
uri: https://api
|
28
|
+
uri: https://sandbox-api.citygrid.com:443/accounts/account/v2/customer/mutate
|
29
29
|
body: ! '{"mutateOperationListResource":[{"operator":"ADD","operand":{"firstName":"nico-api","lastName":"gomez-api","phone":"9001111112","businessName":"businessProveApi","address1":"dir-api","city":"montevideo","state":"Montevideo","zipCode":"90069"}}]}'
|
30
30
|
headers:
|
31
31
|
accept:
|
@@ -33,22 +33,34 @@
|
|
33
33
|
content-type:
|
34
34
|
- Application/JSON
|
35
35
|
authtoken:
|
36
|
-
-
|
36
|
+
- 2f45061f07f7e61a9f3953d7bfbd904b
|
37
37
|
response: !ruby/struct:VCR::Response
|
38
38
|
status: !ruby/struct:VCR::ResponseStatus
|
39
|
-
code:
|
40
|
-
message:
|
39
|
+
code: 404
|
40
|
+
message: Not Found
|
41
41
|
headers:
|
42
42
|
date:
|
43
|
-
-
|
43
|
+
- Sat, 31 Dec 2011 01:11:10 GMT
|
44
44
|
server:
|
45
|
-
- Apache
|
45
|
+
- Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/0.9.8e-fips-rhel5
|
46
|
+
content-length:
|
47
|
+
- '233'
|
46
48
|
content-type:
|
47
|
-
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
49
|
+
- text/html; charset=iso-8859-1
|
50
|
+
body: ! '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
|
51
|
+
|
52
|
+
<html><head>
|
53
|
+
|
54
|
+
<title>404 Not Found</title>
|
55
|
+
|
56
|
+
</head><body>
|
57
|
+
|
58
|
+
<h1>Not Found</h1>
|
59
|
+
|
60
|
+
<p>The requested URL /accounts/account/v2/customer/mutate was not found on this
|
61
|
+
server.</p>
|
62
|
+
|
63
|
+
</body></html>
|
64
|
+
|
65
|
+
'
|
54
66
|
http_version: '1.1'
|
@@ -15,7 +15,7 @@
|
|
15
15
|
message: OK
|
16
16
|
headers:
|
17
17
|
date:
|
18
|
-
-
|
18
|
+
- Sat, 31 Dec 2011 01:13:24 GMT
|
19
19
|
server:
|
20
20
|
- Apache-Coyote/1.1
|
21
21
|
content-type:
|
@@ -24,10 +24,11 @@
|
|
24
24
|
- Accept-Encoding
|
25
25
|
transfer-encoding:
|
26
26
|
- chunked
|
27
|
-
body: ! '{"locations":[{"id":7117426,"reference_id":"1","impression_id":"
|
28
|
-
Marie Restaurant","teaser":
|
27
|
+
body: ! '{"locations":[{"id":7117426,"reference_id":"1","impression_id":"0009000000853cb9b6d8e44443a2bd6fb942d63ba9","display_ad":false,"infousa_id":508613312,"name":"Philip
|
28
|
+
Marie Restaurant","teaser":"BEST Restaurant in the West Village NYC - call now
|
29
|
+
for daily specials!","address":{"street":"569 Hudson Street","delivery_point":null,"city":"New
|
29
30
|
York","state":"NY","postal_code":"10014","cross_street":"W 11th Street","latitude":40.735910,"longitude":-74.005940},"contact_info":{"display_phone":"2122426200","display_url":"http://www.philipmarie.com","social_media":{"twitter_username":{"image_icon":null,"text":"philipmarie","url":null},"facebook_fanpage":{"image_icon":null,"text":"philipmarienyc?ref=ts#!pagesPhilip-Marie-Restaurant136344239721051","url":null}}},"markets":["New
|
30
|
-
York, NY Metro"],"neighborhoods":["West Village","Downtown"],"urls":{"profile_url":"http://www.citysearch.com/profile/7117426/new_york_ny/philip_marie_restaurant.html","reviews_url":"http://www.citysearch.com/review/7117426","video_url":null,"website_url":"http://pfpc.citygridmedia.com/content/places/v2/click?q=
|
31
|
+
York, NY Metro"],"neighborhoods":["West Village","Downtown"],"urls":{"profile_url":"http://www.citysearch.com/profile/7117426/new_york_ny/philip_marie_restaurant.html","reviews_url":"http://www.citysearch.com/review/7117426","video_url":null,"website_url":"http://pfpc.citygridmedia.com/content/places/v2/click?q=Eg5LbGeFZEmz9alMRG3UqHCSHTWWqqpiUFE37OfVvOS1dvm1TGN35zIlLdjDlmLJMzgHaA_hF40a2FiH2wUsba1Ddc1BEcYolVEXmdG9NrPIDt_JNbCaAf1kaYQYoiMSB9wjKnNLFxZqslrLuzx9QdyQdZUnFDFrWvPo8EBXrbi9BUGxYkssz7BIyrWy2Sp9vsxyneuMvsLSHsGq6tpXHaT-2dbJn58QueZQkVIj7F3L1uGrDD6RTreIm-HGFXPi-6CFM1gCLFp9zY1jCKcgkRsVOwaGTtkcNS5P-BI4aBKkk8lL8ULoXAqnVJbQPHdDZGZcHwI2MmxugF6esGycl6U1TVczEY4rV0ZuHyB1AQjdyyOxkGu0CA","menu_url":"http://pfpc.citygridmedia.com/content/places/v2/click?q=Eg5LbGeFZEmz9alMRG3UqDvpvBTRaDvne9EXlpV4zuxiZCUUPQTt3dJXfuAq2xw-1ky1Hr8QDm_tkbi14Jc1JqoYDNmKG_Tp274YGz3T_atrkhGnD-8wSboC-FG1T68OBSB-mpj7imOs2feexSf5tmQyrmXpgqqkvMfIbkGfDvs0aaafXEZmU7u7tPeO8UT_WkmJOGnC0pWRBvFqo8RLFF7zJ5xacD3xczW90TWpxqT2XG5ovK7sUTnqj3jNFELw6E33T5L2st2qnrYic-oFGhHzgZb8JdYbxfo9HTGSAQeZ8ZI23BBPhvYoWjMvadNce9Rk0OMyXKeB2SEFIj3daJhLEE7vJhPGw_kEkQMpMyK8n9_e_MDYwbWz-2DN-Pltr_ql1ouwR-fWzD4dS3WcRA","reservation_url":"http://pfpc.citygridmedia.com/content/places/v2/click?q=Eg5LbGeFZEmz9alMRG3UqDvpvBTRaDvngS7pST9QDCo0vDVrAHdLCfltd4H5A7GHPMknNycX67o9spbXDeFDtROovE0g4AdYKV0Rj6P3jsdxs--_S47Uu3NOLjSzoAdNsgGOCPovb70orJdWxR9-jtfjsQBFj78JShUfmbsQGzZLACas1DAYuiN6aAwZO0mDsKhihfIwjTglCU3FwTT9Jt4REb5YGjAQC5o9boobXpxe3AfFTFFN-ylw9VzEPmpVlszNAqOyjBiE4Th7c-9uMhGEOhbGoXbKoeTXIz_Phu4Bbm8RgtOJPnnVYago6-1PEGonZYABJsBxDKTT1-wg-q8PKkovKFsvJdWaa2JkTPwwmcWPluvPJtX8x2DajUGQkKSWziafXDdJfHt5glv7hG8xPY6iyJ-T8i37L4q7mwCRfSoeUtFRUw","map_url":"http://www.citysearch.com/profile/map/7117426/new_york_ny/philip_marie_restaurant.html","send_to_friend_url":"http://www.citysearch.com/profile/sendto/7117426/new_york_ny/philip_marie_restaurant.html","email_link":"http://www.citysearch.com/profile/email_business/7117426/new_york_ny/philip_marie_restaurant.html","custom_link_1":null,"custom_link_2":null,"web_comment_url":null,"web_article_url":null,"web_profile_url":null,"web_rates_url":null,"gift_url":null,"request_quote_url":null,"virtual_tour_url":null,"book_limo_url":null,"order_url":null,"custom_link_3":null,"custom_link_4":null},"customer_content":{"customer_message":{"attribution_source":"CUSTOMER","attribution_logo":"http://images.citysearch.net/assets/imgdb/custom/ue-357/CS_logo88x31.jpg","attribution_text":"Citysearch","value":"At
|
31
32
|
Philip Marie, located in the West Village of NYC, our main dining room is fashioned
|
32
33
|
as an upscale American bistro. The lower level offers a glimpse of the unique
|
33
34
|
style that separates Philip Marie Restaurant from any other historic or American
|
@@ -55,16 +56,16 @@
|
|
55
56
|
Special Features"}]},{"name_id":11238,"name":"Bar Scene","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":148,"name":"Restaurant
|
56
57
|
Special Features"}]},{"name_id":11247,"name":"Carry Out","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":148,"name":"Restaurant
|
57
58
|
Special Features"}]},{"name_id":12821,"name":"Casual Date Spot","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":148,"name":"Restaurant
|
58
|
-
Special Features"}]},{"name_id":11244,"name":"Business Dining","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":148,"name":"Restaurant
|
59
59
|
Special Features"}]},{"name_id":12822,"name":"Dining Discounts","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":148,"name":"Restaurant
|
60
|
+
Special Features"}]},{"name_id":11244,"name":"Business Dining","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":148,"name":"Restaurant
|
60
61
|
Special Features"}]},{"name_id":11243,"name":"Business Breakfast","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":148,"name":"Restaurant
|
61
62
|
Special Features"}]},{"name_id":11232,"name":"$$","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":147,"name":"Restaurant
|
62
63
|
Meal Price"}]},{"name_id":12824,"name":"Margaritas","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":148,"name":"Restaurant
|
63
|
-
Special Features"}]},{"name_id":
|
64
|
-
|
64
|
+
Special Features"}]},{"name_id":11286,"name":"Lunch Spot","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":148,"name":"Restaurant
|
65
|
+
Special Features"}]},{"name_id":11184,"name":"Wine Tasting","parent_id":1720,"parent":"Liquor
|
65
66
|
Stores","primary":false,"groups":[{"group_id":145,"name":"Liquor Store Special
|
66
|
-
Features"}]},{"name_id":
|
67
|
-
|
67
|
+
Features"}]},{"name_id":1086,"name":"Thanksgiving Dinners","parent_id":1085,"parent":"Thanksgiving
|
68
|
+
Day Events","primary":false,"groups":[]},{"name_id":11189,"name":"New American","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":146,"name":"Cuisine"}]},{"name_id":11284,"name":"Local
|
68
69
|
Favorite","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":148,"name":"Restaurant
|
69
70
|
Special Features"}]},{"name_id":11283,"name":"Live Music","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":148,"name":"Restaurant
|
70
71
|
Special Features"}]},{"name_id":11382,"name":"Visa","parent_id":1738,"parent":"Global","primary":false,"groups":[{"group_id":152,"name":"Payment
|
@@ -92,10 +93,9 @@
|
|
92
93
|
& Pubs","primary":false,"groups":[{"group_id":133,"name":"Bar & Pub Special
|
93
94
|
Features"}]},{"name_id":11269,"name":"Group Dining","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":148,"name":"Restaurant
|
94
95
|
Special Features"}]},{"name_id":1065,"name":"Memorial Day Events","parent_id":1024,"parent":"Holiday
|
95
|
-
Events","primary":false,"groups":[]},{"name_id":
|
96
|
-
Dining","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":148,"name":"Restaurant
|
97
|
-
Special Features"}]},{"name_id":
|
98
|
-
Methods"}]},{"name_id":11262,"name":"Family Style Dining","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":148,"name":"Restaurant
|
96
|
+
Events","primary":false,"groups":[]},{"name_id":11361,"name":"MasterCard","parent_id":1738,"parent":"Global","primary":false,"groups":[{"group_id":152,"name":"Payment
|
97
|
+
Methods"}]},{"name_id":11315,"name":"Special Occasion Dining","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":148,"name":"Restaurant
|
98
|
+
Special Features"}]},{"name_id":11262,"name":"Family Style Dining","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":148,"name":"Restaurant
|
99
99
|
Special Features"}]},{"name_id":11263,"name":"Family-Friendly Dining","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":148,"name":"Restaurant
|
100
100
|
Special Features"}]}],"attributes":[{"attribute_id":null,"name":"Services","value":"Booking
|
101
101
|
Advisable"},{"attribute_id":null,"name":"Cards Accepted","value":"visa"},{"attribute_id":null,"name":"Cards
|
@@ -113,21 +113,5 @@
|
|
113
113
|
Madness menu with out-of-this-world cocktails like the Chocolate Raz and Banana
|
114
114
|
Squirt and the Cotton Candy martini."},{"tip_name":"The Extras","tip_text":"Weekly
|
115
115
|
events include Clam Bake Tuesdays, occasional wine tastings and Sunday jazz
|
116
|
-
brunch. Saturdays, get unlimited mimosas with brunch ($17.95)."}],"images":[{"type":"GENERIC_IMAGE","height":null,"width":null,"image_url":"http://wcities.com/img/infoimg/restaurant/restaurant_American_Burgers.png","primary":false,"attribution_source":"wcities.com","attribution_logo":null,"attribution_text":"wcities.com"},{"type":"GENERIC_IMAGE","height":216,"width":252,"image_url":"http://images.citysearch.net/assets/imgdb/guide/2011/8/13/0/aYcBKroK63.jpeg","primary":false,"attribution_source":"CITYSEARCH","attribution_logo":"http://images.citysearch.net/assets/imgdb/custom/ue-357/CS_logo88x31.jpg","attribution_text":"Citysearch"},{"type":"GENERIC_IMAGE","height":216,"width":384,"image_url":"http://images.citysearch.net/assets/imgdb/merchant/2010/3/10/0/adTQCdCS10.jpeg","primary":false,"attribution_source":"CUSTOMER","attribution_logo":"http://images.citysearch.net/assets/imgdb/custom/ue-357/CS_logo88x31.jpg","attribution_text":"Citysearch"},{"type":"GENERIC_IMAGE","height":216,"width":384,"image_url":"http://images.citysearch.net/assets/imgdb/merchant/2010/3/10/0/QCDVPsZZ11.jpeg","primary":true,"attribution_source":"CUSTOMER","attribution_logo":"http://images.citysearch.net/assets/imgdb/custom/ue-357/CS_logo88x31.jpg","attribution_text":"Citysearch"},{"type":"GENERIC_IMAGE","height":216,"width":384,"image_url":"http://images.citysearch.net/assets/imgdb/merchant/2010/3/10/0/msjHfJdJ6.jpeg","primary":false,"attribution_source":"CUSTOMER","attribution_logo":"http://images.citysearch.net/assets/imgdb/custom/ue-357/CS_logo88x31.jpg","attribution_text":"Citysearch"},{"type":"WEBSITE_THUMBNAIL","height":120,"width":150,"image_url":"http://images.citysearch.net/assets/imgdb/website_thumbnails/6/26/7117426.png","primary":false,"attribution_source":"CITYSEARCH","attribution_logo":"http://images.citysearch.net/assets/imgdb/custom/ue-357/CS_logo88x31.jpg","attribution_text":"Citysearch"},{"type":"GENERIC_IMAGE","height":240,"width":320,"image_url":"http://images.citysearch.net/assets/imgdb/profile/fa/82/7117426p1.jpg","primary":false,"attribution_source":"CITYSEARCH","attribution_logo":"http://images.citysearch.net/assets/imgdb/custom/ue-357/CS_logo88x31.jpg","attribution_text":"Citysearch"},{"type":"GENERIC_IMAGE","height":216,"width":143,"image_url":"http://images.citysearch.net/assets/imgdb/guide/2010/6/15/0/dXiDWljY249.jpeg","primary":false,"attribution_source":"CITYSEARCH","attribution_logo":"http://images.citysearch.net/assets/imgdb/custom/ue-357/CS_logo88x31.jpg","attribution_text":"Citysearch"},{"type":"GENERIC_IMAGE","height":216,"width":322,"image_url":"http://images.citysearch.net/assets/imgdb/guide/2010/6/15/0/ExavhKgF259.jpeg","primary":false,"attribution_source":"CITYSEARCH","attribution_logo":"http://images.citysearch.net/assets/imgdb/custom/ue-357/CS_logo88x31.jpg","attribution_text":"Citysearch"}],"editorials":[
|
117
|
-
upscale country kitchen with a devoted clientele in the West Village heartland.","editorial_author":"Contributor","editorial_review":"<b>The
|
118
|
-
Scene</b><br>Owner/chef John Philip Greco and his wife Suzanne Marie Lonzar
|
119
|
-
put together their middle names to create the French-sounding moniker for their
|
120
|
-
wholly American restaurant. The space is cozy and welcoming: Large murals…","pros":"","cons":"","editorial_date":"2006-08-11T03:18:12-07:00","review_rating":6.0,"helpfulness_total_count":0,"helpful_count":0,"unhelpful_count":0}],"years_in_business":null,"last_update_time":"2011-10-21T00:00:00-07:00","public_id":"philip-marie-restaurant-new-york","business_operation_status":"open","review_info":{"overall_review_rating":9,"total_user_reviews":125,"total_user_reviews_shown":3,"reviews":[{"attribution_source":null,"attribution_logo":"","attribution_text":"Citysearch","review_id":"cg_479165261","review_url":"http://newyork.citysearch.com/review/7117426?reviewId=479165261","review_title":"food
|
121
|
-
is good ;amazing wine selection for conosuiers","review_author":"kimscott516","review_text":"cuisine
|
122
|
-
was refined and well cultured, the chicken was seasoned vibrantly, but slightly
|
123
|
-
dry from being overcooked. however, me being a somewhat of a wine critic in
|
124
|
-
my personal life, have to say that the selection was one of the most…","pros":"","cons":"","review_date":"2011-12-04T07:33:14-08:00","review_rating":8.0,"helpfulness_total_count":0,"helpful_count":0,"unhelpful_count":0,"review_type":"user_review"},{"attribution_source":null,"attribution_logo":"","attribution_text":"Citysearch","review_id":"cg_478585621","review_url":"http://newyork.citysearch.com/review/7117426?reviewId=478585621","review_title":"Stay
|
125
|
-
Away","review_author":"PanchoD","review_text":"Honestly its not a bad looking
|
126
|
-
place, but behind it all the food does not speak for itself... Mediocre at best
|
127
|
-
and thats being generous... Im not for bashing restaurants but this place is
|
128
|
-
not what it appears to be.. For starters i ordered…","pros":"","cons":"","review_date":"2011-11-03T05:08:03-07:00","review_rating":2.0,"helpfulness_total_count":0,"helpful_count":0,"unhelpful_count":0,"review_type":"user_review"},{"attribution_source":null,"attribution_logo":"","attribution_text":"Citysearch","review_id":"cg_478375071","review_url":"http://newyork.citysearch.com/review/7117426?reviewId=478375071","review_title":"ABSOLUTELY
|
129
|
-
WONDERFUL!!!","review_author":"ladynrg","review_text":"Last week my husband
|
130
|
-
& I had the pleasure of dining in the private Wine Room for 2 at Philip Marie.
|
131
|
-
Our custom tailored 5 course menu was exactly what we were looking for at an
|
132
|
-
unbelievable price. Not only was each item we enjoyed cooked…","pros":"","cons":"","review_date":"2011-10-22T02:11:01-07:00","review_rating":10.0,"helpfulness_total_count":0,"helpful_count":0,"unhelpful_count":0,"review_type":"user_review"}]}}]}'
|
116
|
+
brunch. Saturdays, get unlimited mimosas with brunch ($17.95)."}],"images":[{"type":"GENERIC_IMAGE","height":null,"width":null,"image_url":"http://wcities.com/img/infoimg/restaurant/restaurant_American_Burgers.png","primary":false,"attribution_source":"wcities.com","attribution_logo":null,"attribution_text":"wcities.com"},{"type":"GENERIC_IMAGE","height":216,"width":252,"image_url":"http://images.citysearch.net/assets/imgdb/guide/2011/8/13/0/aYcBKroK63.jpeg","primary":false,"attribution_source":"CITYSEARCH","attribution_logo":"http://images.citysearch.net/assets/imgdb/custom/ue-357/CS_logo88x31.jpg","attribution_text":"Citysearch"},{"type":"GENERIC_IMAGE","height":216,"width":384,"image_url":"http://images.citysearch.net/assets/imgdb/merchant/2010/3/10/0/adTQCdCS10.jpeg","primary":false,"attribution_source":"CUSTOMER","attribution_logo":"http://images.citysearch.net/assets/imgdb/custom/ue-357/CS_logo88x31.jpg","attribution_text":"Citysearch"},{"type":"GENERIC_IMAGE","height":216,"width":384,"image_url":"http://images.citysearch.net/assets/imgdb/merchant/2010/3/10/0/QCDVPsZZ11.jpeg","primary":true,"attribution_source":"CUSTOMER","attribution_logo":"http://images.citysearch.net/assets/imgdb/custom/ue-357/CS_logo88x31.jpg","attribution_text":"Citysearch"},{"type":"GENERIC_IMAGE","height":216,"width":384,"image_url":"http://images.citysearch.net/assets/imgdb/merchant/2010/3/10/0/msjHfJdJ6.jpeg","primary":false,"attribution_source":"CUSTOMER","attribution_logo":"http://images.citysearch.net/assets/imgdb/custom/ue-357/CS_logo88x31.jpg","attribution_text":"Citysearch"},{"type":"WEBSITE_THUMBNAIL","height":120,"width":150,"image_url":"http://images.citysearch.net/assets/imgdb/website_thumbnails/6/26/7117426.png","primary":false,"attribution_source":"CITYSEARCH","attribution_logo":"http://images.citysearch.net/assets/imgdb/custom/ue-357/CS_logo88x31.jpg","attribution_text":"Citysearch"},{"type":"GENERIC_IMAGE","height":240,"width":320,"image_url":"http://images.citysearch.net/assets/imgdb/profile/fa/82/7117426p1.jpg","primary":false,"attribution_source":"CITYSEARCH","attribution_logo":"http://images.citysearch.net/assets/imgdb/custom/ue-357/CS_logo88x31.jpg","attribution_text":"Citysearch"},{"type":"GENERIC_IMAGE","height":216,"width":143,"image_url":"http://images.citysearch.net/assets/imgdb/guide/2010/6/15/0/dXiDWljY249.jpeg","primary":false,"attribution_source":"CITYSEARCH","attribution_logo":"http://images.citysearch.net/assets/imgdb/custom/ue-357/CS_logo88x31.jpg","attribution_text":"Citysearch"},{"type":"GENERIC_IMAGE","height":216,"width":322,"image_url":"http://images.citysearch.net/assets/imgdb/guide/2010/6/15/0/ExavhKgF259.jpeg","primary":false,"attribution_source":"CITYSEARCH","attribution_logo":"http://images.citysearch.net/assets/imgdb/custom/ue-357/CS_logo88x31.jpg","attribution_text":"Citysearch"}],"editorials":[],"years_in_business":null,"last_update_time":"2011-10-21T00:00:00-07:00","public_id":"philip-marie-restaurant-new-york","business_operation_status":"open","review_info":{"overall_review_rating":9,"total_user_reviews":0,"total_user_reviews_shown":0,"reviews":[]}}]}'
|
133
117
|
http_version: '1.1'
|
@@ -15,7 +15,7 @@
|
|
15
15
|
message: OK
|
16
16
|
headers:
|
17
17
|
date:
|
18
|
-
-
|
18
|
+
- Sat, 31 Dec 2011 01:13:25 GMT
|
19
19
|
server:
|
20
20
|
- Apache-Coyote/1.1
|
21
21
|
content-type:
|
@@ -24,10 +24,11 @@
|
|
24
24
|
- Accept-Encoding
|
25
25
|
transfer-encoding:
|
26
26
|
- chunked
|
27
|
-
body: ! '{"locations":[{"id":7117426,"reference_id":"1","impression_id":"
|
28
|
-
Marie Restaurant","teaser":
|
27
|
+
body: ! '{"locations":[{"id":7117426,"reference_id":"1","impression_id":"000900000054539734747d4c15b7de8f8dd90ec019","display_ad":false,"infousa_id":508613312,"name":"Philip
|
28
|
+
Marie Restaurant","teaser":"BEST Restaurant in the West Village NYC - call now
|
29
|
+
for daily specials!","address":{"street":"569 Hudson Street","delivery_point":null,"city":"New
|
29
30
|
York","state":"NY","postal_code":"10014","cross_street":"W 11th Street","latitude":40.735910,"longitude":-74.005940},"contact_info":{"display_phone":"2122426200","display_url":"http://www.philipmarie.com","social_media":{"twitter_username":{"image_icon":null,"text":"philipmarie","url":null},"facebook_fanpage":{"image_icon":null,"text":"philipmarienyc?ref=ts#!pagesPhilip-Marie-Restaurant136344239721051","url":null}}},"markets":["New
|
30
|
-
York, NY Metro"],"neighborhoods":["West Village","Downtown"],"urls":{"profile_url":"http://www.citysearch.com/profile/7117426/new_york_ny/philip_marie_restaurant.html","reviews_url":"http://www.citysearch.com/review/7117426","video_url":null,"website_url":"http://pfpc.citygridmedia.com/content/places/v2/click?q=
|
31
|
+
York, NY Metro"],"neighborhoods":["West Village","Downtown"],"urls":{"profile_url":"http://www.citysearch.com/profile/7117426/new_york_ny/philip_marie_restaurant.html","reviews_url":"http://www.citysearch.com/review/7117426","video_url":null,"website_url":"http://pfpc.citygridmedia.com/content/places/v2/click?q=Eg5LbGeFZEmz9alMRG3UqHCSHTWWqqpiUFE37OfVvOS1dvm1TGN35zIlLdjDlmLJMzgHaA_hF40a2FiH2wUsba1Ddc1BEcYolVEXmdG9NrPIDt_JNbCaAf1kaYQYoiMSB9wjKnNLFxZqslrLuzx9QdyQdZUnFDFrWvPo8EBXrbg1dpW7W2C4iKC9O-YT18ysRv7J9SRlMP80z1qcYXy0QmzMZGuxM-Z1rrSoNQWKnVPgsW4JKqG7z3g6S_SOipDZQDrlIJRL4ZPG_gyhGnIcp0psOM_Ebym9gROiFjkeu3P5GrrqcbD551EZCiQKu469kQpcwp52IyLEi0wbCHkAQPXa7mjzrwHwlvg6hDoXWqBozi4xzqngXg","menu_url":"http://pfpc.citygridmedia.com/content/places/v2/click?q=Eg5LbGeFZEmz9alMRG3UqDvpvBTRaDvne9EXlpV4zuxiZCUUPQTt3dJXfuAq2xw-1ky1Hr8QDm_tkbi14Jc1JqoYDNmKG_Tp274YGz3T_atrkhGnD-8wSboC-FG1T68OBSB-mpj7imOs2feexSf5tmQyrmXpgqqkvMfIbkGfDvs0aaafXEZmU7u7tPeO8UT_WkmJOGnC0pUpJvNy2hyjh3vfn5tKM3YJsW_bVKqyUbqE4rr2f-eeTDvSaan5onP-lCghW9izhz40roGY_sXuUneLSY-n_L4AgOWsms85aTCI57rAN6_50yGH0EA8np6J79Mp4-TWX4RCjYe8Rkz7BjkWOdIhkvxTEIp7aI3F9S7CqVZa_zy0_PlqY6c1mm2LeFndSJWr_r0l26HSL6HSeA","reservation_url":"http://pfpc.citygridmedia.com/content/places/v2/click?q=Eg5LbGeFZEmz9alMRG3UqDvpvBTRaDvngS7pST9QDCo0vDVrAHdLCfltd4H5A7GHPMknNycX67o9spbXDeFDtROovE0g4AdYKV0Rj6P3jsdxs--_S47Uu3NOLjSzoAdNsgGOCPovb70orJdWxR9-jtfjsQBFj78JShUfmbsQGzZLACas1DAYuiN6aAwZO0mDsKhihfIwjTglCU3FwTT9Jt4REb5YGjAQC5o9boobXpze0BE_mKqxVaq6MsE13C5LK5VqCGqjL_tOYIl8HQnuegHXhGuia2hjh1bjeh5RrSuOaXOF4jAJfxFo-UYkLZaor4E-Eyja948xvW_nB1U3nb52WFseGPQtFKDuViFzBT5b6dRJrwA0Iz4rvknFkPt9QGBhWVqkBM62xjpJ1johxDvJ897JPJAY03XwQsHmmPzavDyhm7qQyg","map_url":"http://www.citysearch.com/profile/map/7117426/new_york_ny/philip_marie_restaurant.html","send_to_friend_url":"http://www.citysearch.com/profile/sendto/7117426/new_york_ny/philip_marie_restaurant.html","email_link":"http://www.citysearch.com/profile/email_business/7117426/new_york_ny/philip_marie_restaurant.html","custom_link_1":null,"custom_link_2":null,"web_comment_url":null,"web_article_url":null,"web_profile_url":null,"web_rates_url":null,"gift_url":null,"request_quote_url":null,"virtual_tour_url":null,"book_limo_url":null,"order_url":null,"custom_link_3":null,"custom_link_4":null},"customer_content":{"customer_message":{"attribution_source":"CUSTOMER","attribution_logo":"http://images.citysearch.net/assets/imgdb/custom/ue-357/CS_logo88x31.jpg","attribution_text":"Citysearch","value":"At
|
31
32
|
Philip Marie, located in the West Village of NYC, our main dining room is fashioned
|
32
33
|
as an upscale American bistro. The lower level offers a glimpse of the unique
|
33
34
|
style that separates Philip Marie Restaurant from any other historic or American
|
@@ -55,16 +56,16 @@
|
|
55
56
|
Special Features"}]},{"name_id":11238,"name":"Bar Scene","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":148,"name":"Restaurant
|
56
57
|
Special Features"}]},{"name_id":11247,"name":"Carry Out","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":148,"name":"Restaurant
|
57
58
|
Special Features"}]},{"name_id":12821,"name":"Casual Date Spot","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":148,"name":"Restaurant
|
58
|
-
Special Features"}]},{"name_id":11244,"name":"Business Dining","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":148,"name":"Restaurant
|
59
59
|
Special Features"}]},{"name_id":12822,"name":"Dining Discounts","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":148,"name":"Restaurant
|
60
|
+
Special Features"}]},{"name_id":11244,"name":"Business Dining","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":148,"name":"Restaurant
|
60
61
|
Special Features"}]},{"name_id":11243,"name":"Business Breakfast","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":148,"name":"Restaurant
|
61
62
|
Special Features"}]},{"name_id":11232,"name":"$$","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":147,"name":"Restaurant
|
62
63
|
Meal Price"}]},{"name_id":12824,"name":"Margaritas","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":148,"name":"Restaurant
|
63
|
-
Special Features"}]},{"name_id":
|
64
|
-
|
64
|
+
Special Features"}]},{"name_id":11286,"name":"Lunch Spot","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":148,"name":"Restaurant
|
65
|
+
Special Features"}]},{"name_id":11184,"name":"Wine Tasting","parent_id":1720,"parent":"Liquor
|
65
66
|
Stores","primary":false,"groups":[{"group_id":145,"name":"Liquor Store Special
|
66
|
-
Features"}]},{"name_id":
|
67
|
-
|
67
|
+
Features"}]},{"name_id":1086,"name":"Thanksgiving Dinners","parent_id":1085,"parent":"Thanksgiving
|
68
|
+
Day Events","primary":false,"groups":[]},{"name_id":11189,"name":"New American","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":146,"name":"Cuisine"}]},{"name_id":11284,"name":"Local
|
68
69
|
Favorite","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":148,"name":"Restaurant
|
69
70
|
Special Features"}]},{"name_id":11283,"name":"Live Music","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":148,"name":"Restaurant
|
70
71
|
Special Features"}]},{"name_id":11382,"name":"Visa","parent_id":1738,"parent":"Global","primary":false,"groups":[{"group_id":152,"name":"Payment
|
@@ -92,10 +93,9 @@
|
|
92
93
|
& Pubs","primary":false,"groups":[{"group_id":133,"name":"Bar & Pub Special
|
93
94
|
Features"}]},{"name_id":11269,"name":"Group Dining","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":148,"name":"Restaurant
|
94
95
|
Special Features"}]},{"name_id":1065,"name":"Memorial Day Events","parent_id":1024,"parent":"Holiday
|
95
|
-
Events","primary":false,"groups":[]},{"name_id":
|
96
|
-
Dining","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":148,"name":"Restaurant
|
97
|
-
Special Features"}]},{"name_id":
|
98
|
-
Methods"}]},{"name_id":11262,"name":"Family Style Dining","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":148,"name":"Restaurant
|
96
|
+
Events","primary":false,"groups":[]},{"name_id":11361,"name":"MasterCard","parent_id":1738,"parent":"Global","primary":false,"groups":[{"group_id":152,"name":"Payment
|
97
|
+
Methods"}]},{"name_id":11315,"name":"Special Occasion Dining","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":148,"name":"Restaurant
|
98
|
+
Special Features"}]},{"name_id":11262,"name":"Family Style Dining","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":148,"name":"Restaurant
|
99
99
|
Special Features"}]},{"name_id":11263,"name":"Family-Friendly Dining","parent_id":1722,"parent":"Restaurants","primary":false,"groups":[{"group_id":148,"name":"Restaurant
|
100
100
|
Special Features"}]}],"attributes":[{"attribute_id":null,"name":"Services","value":"Booking
|
101
101
|
Advisable"},{"attribute_id":null,"name":"Cards Accepted","value":"visa"},{"attribute_id":null,"name":"Cards
|
@@ -2,7 +2,7 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://api.
|
5
|
+
uri: http://sandbox-api.citygrid.com:80/advertising/adgroupad/v2/mutate
|
6
6
|
body: ! '{"mutateOperationListResource":[{"operator":"ADD","operand":{"groupId":"2861","ad":{"type":"PERFORMANCE_AD","tagline":"myTagline","imageUrl":"http://some_url.com"}}}]}'
|
7
7
|
headers:
|
8
8
|
accept:
|
@@ -10,14 +10,14 @@
|
|
10
10
|
content-type:
|
11
11
|
- Application/JSON
|
12
12
|
authtoken:
|
13
|
-
-
|
13
|
+
- 20f1918ababef692f0b7e71940acbe4b
|
14
14
|
response: !ruby/struct:VCR::Response
|
15
15
|
status: !ruby/struct:VCR::ResponseStatus
|
16
16
|
code: 200
|
17
17
|
message: OK
|
18
18
|
headers:
|
19
19
|
date:
|
20
|
-
-
|
20
|
+
- Sat, 31 Dec 2011 01:12:30 GMT
|
21
21
|
server:
|
22
22
|
- Apache-Coyote/1.1
|
23
23
|
content-type:
|
@@ -26,5 +26,5 @@
|
|
26
26
|
- Accept-Encoding
|
27
27
|
transfer-encoding:
|
28
28
|
- chunked
|
29
|
-
body: ! '{"adGroupAds":[{"adGroupId":"2861","id":"
|
29
|
+
body: ! '{"adGroupAds":[{"adGroupId":"2861","id":"89356962","adType":"PERFORMANCE_AD","status":"ACTIVE","tagline":"myTagline","imageUrl":"http://some_url.com","response":{"message":"OK","code":200}}]}'
|
30
30
|
http_version: '1.1'
|
@@ -2,7 +2,7 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://api.
|
5
|
+
uri: http://sandbox-api.citygrid.com:80/advertising/performance/v2/campaign/daily
|
6
6
|
body: ! '{"campaignId":786,"period":"last30Days"}'
|
7
7
|
headers:
|
8
8
|
accept:
|
@@ -10,14 +10,14 @@
|
|
10
10
|
content-type:
|
11
11
|
- Application/JSON
|
12
12
|
authtoken:
|
13
|
-
-
|
13
|
+
- 20f1918ababef692f0b7e71940acbe4b
|
14
14
|
response: !ruby/struct:VCR::Response
|
15
15
|
status: !ruby/struct:VCR::ResponseStatus
|
16
16
|
code: 200
|
17
17
|
message: OK
|
18
18
|
headers:
|
19
19
|
date:
|
20
|
-
-
|
20
|
+
- Sat, 31 Dec 2011 01:13:15 GMT
|
21
21
|
server:
|
22
22
|
- Apache-Coyote/1.1
|
23
23
|
content-type:
|
@@ -26,35 +26,35 @@
|
|
26
26
|
- Accept-Encoding
|
27
27
|
transfer-encoding:
|
28
28
|
- chunked
|
29
|
-
body: ! '{"totalNumEntries":"30","dailyCampaignPerformanceResources":[{"date":"
|
30
|
-
Y Mas, Inc.","totalBilledConnections":"
|
31
|
-
Y Mas, Inc.","totalBilledConnections":"
|
32
|
-
Y Mas, Inc.","totalBilledConnections":"
|
33
|
-
Y Mas, Inc.","totalBilledConnections":"
|
34
|
-
Y Mas, Inc.","totalBilledConnections":"
|
35
|
-
Y Mas, Inc.","totalBilledConnections":"
|
36
|
-
Y Mas, Inc.","totalBilledConnections":"
|
37
|
-
Y Mas, Inc.","totalBilledConnections":"
|
38
|
-
Y Mas, Inc.","totalBilledConnections":"
|
39
|
-
Y Mas, Inc.","totalBilledConnections":"
|
40
|
-
Y Mas, Inc.","totalBilledConnections":"
|
41
|
-
Y Mas, Inc.","totalBilledConnections":"
|
42
|
-
Y Mas, Inc.","totalBilledConnections":"
|
43
|
-
Y Mas, Inc.","totalBilledConnections":"
|
44
|
-
Y Mas, Inc.","totalBilledConnections":"
|
45
|
-
Y Mas, Inc.","totalBilledConnections":"
|
46
|
-
Y Mas, Inc.","totalBilledConnections":"
|
47
|
-
Y Mas, Inc.","totalBilledConnections":"
|
48
|
-
Y Mas, Inc.","totalBilledConnections":"
|
49
|
-
Y Mas, Inc.","totalBilledConnections":"
|
50
|
-
Y Mas, Inc.","totalBilledConnections":"
|
51
|
-
Y Mas, Inc.","totalBilledConnections":"
|
52
|
-
Y Mas, Inc.","totalBilledConnections":"
|
53
|
-
Y Mas, Inc.","totalBilledConnections":"
|
54
|
-
Y Mas, Inc.","totalBilledConnections":"
|
55
|
-
Y Mas, Inc.","totalBilledConnections":"
|
56
|
-
Y Mas, Inc.","totalBilledConnections":"
|
57
|
-
Y Mas, Inc.","totalBilledConnections":"
|
58
|
-
Y Mas, Inc.","totalBilledConnections":"
|
59
|
-
Y Mas, Inc.","totalBilledConnections":"
|
29
|
+
body: ! '{"totalNumEntries":"30","dailyCampaignPerformanceResources":[{"date":"20111130","response":{"code":200,"message":"OK"},"externalAccountId":"","campaignName":"CampaignRest1stTest-786","accountId":"111","campaignId":"786","cpc":"2.73","externalCampaignId":"","totalConnections":"110","accountName":"Enchiladas
|
30
|
+
Y Mas, Inc.","totalBilledConnections":"11","totalSpend":"30.00"},{"date":"20111101","response":{"code":200,"message":"OK"},"externalAccountId":"","campaignName":"CampaignRest1stTest-786","accountId":"111","campaignId":"786","cpc":"2.92","externalCampaignId":"","totalConnections":"120","accountName":"Enchiladas
|
31
|
+
Y Mas, Inc.","totalBilledConnections":"12","totalSpend":"35.00"},{"date":"20111102","response":{"code":200,"message":"OK"},"externalAccountId":"","campaignName":"CampaignRest1stTest-786","accountId":"111","campaignId":"786","cpc":"3.08","externalCampaignId":"","totalConnections":"130","accountName":"Enchiladas
|
32
|
+
Y Mas, Inc.","totalBilledConnections":"13","totalSpend":"40.00"},{"date":"20111103","response":{"code":200,"message":"OK"},"externalAccountId":"","campaignName":"CampaignRest1stTest-786","accountId":"111","campaignId":"786","cpc":"3.21","externalCampaignId":"","totalConnections":"140","accountName":"Enchiladas
|
33
|
+
Y Mas, Inc.","totalBilledConnections":"14","totalSpend":"45.00"},{"date":"20111104","response":{"code":200,"message":"OK"},"externalAccountId":"","campaignName":"CampaignRest1stTest-786","accountId":"111","campaignId":"786","cpc":"3.33","externalCampaignId":"","totalConnections":"150","accountName":"Enchiladas
|
34
|
+
Y Mas, Inc.","totalBilledConnections":"15","totalSpend":"50.00"},{"date":"20111105","response":{"code":200,"message":"OK"},"externalAccountId":"","campaignName":"CampaignRest1stTest-786","accountId":"111","campaignId":"786","cpc":"1.88","externalCampaignId":"","totalConnections":"160","accountName":"Enchiladas
|
35
|
+
Y Mas, Inc.","totalBilledConnections":"16","totalSpend":"30.00"},{"date":"20111106","response":{"code":200,"message":"OK"},"externalAccountId":"","campaignName":"CampaignRest1stTest-786","accountId":"111","campaignId":"786","cpc":"2.06","externalCampaignId":"","totalConnections":"170","accountName":"Enchiladas
|
36
|
+
Y Mas, Inc.","totalBilledConnections":"17","totalSpend":"35.00"},{"date":"20111107","response":{"code":200,"message":"OK"},"externalAccountId":"","campaignName":"CampaignRest1stTest-786","accountId":"111","campaignId":"786","cpc":"2.22","externalCampaignId":"","totalConnections":"180","accountName":"Enchiladas
|
37
|
+
Y Mas, Inc.","totalBilledConnections":"18","totalSpend":"40.00"},{"date":"20111108","response":{"code":200,"message":"OK"},"externalAccountId":"","campaignName":"CampaignRest1stTest-786","accountId":"111","campaignId":"786","cpc":"2.37","externalCampaignId":"","totalConnections":"190","accountName":"Enchiladas
|
38
|
+
Y Mas, Inc.","totalBilledConnections":"19","totalSpend":"45.00"},{"date":"20111109","response":{"code":200,"message":"OK"},"externalAccountId":"","campaignName":"CampaignRest1stTest-786","accountId":"111","campaignId":"786","cpc":"2.50","externalCampaignId":"","totalConnections":"200","accountName":"Enchiladas
|
39
|
+
Y Mas, Inc.","totalBilledConnections":"20","totalSpend":"50.00"},{"date":"20111110","response":{"code":200,"message":"OK"},"externalAccountId":"","campaignName":"CampaignRest1stTest-786","accountId":"111","campaignId":"786","cpc":"1.43","externalCampaignId":"","totalConnections":"210","accountName":"Enchiladas
|
40
|
+
Y Mas, Inc.","totalBilledConnections":"21","totalSpend":"30.00"},{"date":"20111111","response":{"code":200,"message":"OK"},"externalAccountId":"","campaignName":"CampaignRest1stTest-786","accountId":"111","campaignId":"786","cpc":"1.59","externalCampaignId":"","totalConnections":"220","accountName":"Enchiladas
|
41
|
+
Y Mas, Inc.","totalBilledConnections":"22","totalSpend":"35.00"},{"date":"20111112","response":{"code":200,"message":"OK"},"externalAccountId":"","campaignName":"CampaignRest1stTest-786","accountId":"111","campaignId":"786","cpc":"1.74","externalCampaignId":"","totalConnections":"230","accountName":"Enchiladas
|
42
|
+
Y Mas, Inc.","totalBilledConnections":"23","totalSpend":"40.00"},{"date":"20111113","response":{"code":200,"message":"OK"},"externalAccountId":"","campaignName":"CampaignRest1stTest-786","accountId":"111","campaignId":"786","cpc":"1.88","externalCampaignId":"","totalConnections":"240","accountName":"Enchiladas
|
43
|
+
Y Mas, Inc.","totalBilledConnections":"24","totalSpend":"45.00"},{"date":"20111114","response":{"code":200,"message":"OK"},"externalAccountId":"","campaignName":"CampaignRest1stTest-786","accountId":"111","campaignId":"786","cpc":"2.00","externalCampaignId":"","totalConnections":"250","accountName":"Enchiladas
|
44
|
+
Y Mas, Inc.","totalBilledConnections":"25","totalSpend":"50.00"},{"date":"20111115","response":{"code":200,"message":"OK"},"externalAccountId":"","campaignName":"CampaignRest1stTest-786","accountId":"111","campaignId":"786","cpc":"2.31","externalCampaignId":"","totalConnections":"260","accountName":"Enchiladas
|
45
|
+
Y Mas, Inc.","totalBilledConnections":"26","totalSpend":"60.00"},{"date":"20111116","response":{"code":200,"message":"OK"},"externalAccountId":"","campaignName":"CampaignRest1stTest-786","accountId":"111","campaignId":"786","cpc":"2.41","externalCampaignId":"","totalConnections":"270","accountName":"Enchiladas
|
46
|
+
Y Mas, Inc.","totalBilledConnections":"27","totalSpend":"65.00"},{"date":"20111117","response":{"code":200,"message":"OK"},"externalAccountId":"","campaignName":"CampaignRest1stTest-786","accountId":"111","campaignId":"786","cpc":"2.50","externalCampaignId":"","totalConnections":"280","accountName":"Enchiladas
|
47
|
+
Y Mas, Inc.","totalBilledConnections":"28","totalSpend":"70.00"},{"date":"20111118","response":{"code":200,"message":"OK"},"externalAccountId":"","campaignName":"CampaignRest1stTest-786","accountId":"111","campaignId":"786","cpc":"2.59","externalCampaignId":"","totalConnections":"290","accountName":"Enchiladas
|
48
|
+
Y Mas, Inc.","totalBilledConnections":"29","totalSpend":"75.00"},{"date":"20111119","response":{"code":200,"message":"OK"},"externalAccountId":"","campaignName":"CampaignRest1stTest-786","accountId":"111","campaignId":"786","cpc":"2.67","externalCampaignId":"","totalConnections":"300","accountName":"Enchiladas
|
49
|
+
Y Mas, Inc.","totalBilledConnections":"30","totalSpend":"80.00"},{"date":"20111120","response":{"code":200,"message":"OK"},"externalAccountId":"","campaignName":"CampaignRest1stTest-786","accountId":"111","campaignId":"786","cpc":"1.94","externalCampaignId":"","totalConnections":"310","accountName":"Enchiladas
|
50
|
+
Y Mas, Inc.","totalBilledConnections":"31","totalSpend":"60.00"},{"date":"20111121","response":{"code":200,"message":"OK"},"externalAccountId":"","campaignName":"CampaignRest1stTest-786","accountId":"111","campaignId":"786","cpc":"2.03","externalCampaignId":"","totalConnections":"320","accountName":"Enchiladas
|
51
|
+
Y Mas, Inc.","totalBilledConnections":"32","totalSpend":"65.00"},{"date":"20111122","response":{"code":200,"message":"OK"},"externalAccountId":"","campaignName":"CampaignRest1stTest-786","accountId":"111","campaignId":"786","cpc":"2.12","externalCampaignId":"","totalConnections":"330","accountName":"Enchiladas
|
52
|
+
Y Mas, Inc.","totalBilledConnections":"33","totalSpend":"70.00"},{"date":"20111123","response":{"code":200,"message":"OK"},"externalAccountId":"","campaignName":"CampaignRest1stTest-786","accountId":"111","campaignId":"786","cpc":"2.21","externalCampaignId":"","totalConnections":"340","accountName":"Enchiladas
|
53
|
+
Y Mas, Inc.","totalBilledConnections":"34","totalSpend":"75.00"},{"date":"20111124","response":{"code":200,"message":"OK"},"externalAccountId":"","campaignName":"CampaignRest1stTest-786","accountId":"111","campaignId":"786","cpc":"2.29","externalCampaignId":"","totalConnections":"350","accountName":"Enchiladas
|
54
|
+
Y Mas, Inc.","totalBilledConnections":"35","totalSpend":"80.00"},{"date":"20111125","response":{"code":200,"message":"OK"},"externalAccountId":"","campaignName":"CampaignRest1stTest-786","accountId":"111","campaignId":"786","cpc":"1.67","externalCampaignId":"","totalConnections":"360","accountName":"Enchiladas
|
55
|
+
Y Mas, Inc.","totalBilledConnections":"36","totalSpend":"60.00"},{"date":"20111126","response":{"code":200,"message":"OK"},"externalAccountId":"","campaignName":"CampaignRest1stTest-786","accountId":"111","campaignId":"786","cpc":"1.76","externalCampaignId":"","totalConnections":"370","accountName":"Enchiladas
|
56
|
+
Y Mas, Inc.","totalBilledConnections":"37","totalSpend":"65.00"},{"date":"20111127","response":{"code":200,"message":"OK"},"externalAccountId":"","campaignName":"CampaignRest1stTest-786","accountId":"111","campaignId":"786","cpc":"1.84","externalCampaignId":"","totalConnections":"380","accountName":"Enchiladas
|
57
|
+
Y Mas, Inc.","totalBilledConnections":"38","totalSpend":"70.00"},{"date":"20111128","response":{"code":200,"message":"OK"},"externalAccountId":"","campaignName":"CampaignRest1stTest-786","accountId":"111","campaignId":"786","cpc":"1.92","externalCampaignId":"","totalConnections":"390","accountName":"Enchiladas
|
58
|
+
Y Mas, Inc.","totalBilledConnections":"39","totalSpend":"75.00"},{"date":"20111129","response":{"code":200,"message":"OK"},"externalAccountId":"","campaignName":"CampaignRest1stTest-786","accountId":"111","campaignId":"786","cpc":"2.00","externalCampaignId":"","totalConnections":"400","accountName":"Enchiladas
|
59
|
+
Y Mas, Inc.","totalBilledConnections":"40","totalSpend":"80.00"}],"response":{"code":200,"message":"OK"}}'
|
60
60
|
http_version: '1.1'
|
@@ -2,7 +2,7 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://api.
|
5
|
+
uri: http://sandbox-api.citygrid.com:80/advertising/performance/v2/campaign/actions
|
6
6
|
body: ! '{"campaignId":786,"period":"last30Days"}'
|
7
7
|
headers:
|
8
8
|
accept:
|
@@ -10,14 +10,14 @@
|
|
10
10
|
content-type:
|
11
11
|
- Application/JSON
|
12
12
|
authtoken:
|
13
|
-
-
|
13
|
+
- 20f1918ababef692f0b7e71940acbe4b
|
14
14
|
response: !ruby/struct:VCR::Response
|
15
15
|
status: !ruby/struct:VCR::ResponseStatus
|
16
16
|
code: 200
|
17
17
|
message: OK
|
18
18
|
headers:
|
19
19
|
date:
|
20
|
-
-
|
20
|
+
- Sat, 31 Dec 2011 01:13:17 GMT
|
21
21
|
server:
|
22
22
|
- Apache-Coyote/1.1
|
23
23
|
content-type:
|
@@ -26,11 +26,15 @@
|
|
26
26
|
- Accept-Encoding
|
27
27
|
transfer-encoding:
|
28
28
|
- chunked
|
29
|
-
body: ! '{"totalNumEntries":"
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
29
|
+
body: ! '{"totalNumEntries":"10","userActions":[{"response":{"code":200,"message":"OK"},"campaignId":"786","cpc":"1.86","externalCampaignId":"","totalConnections":"860","totalSpend":"160.00","userAction":"Click
|
30
|
+
to website","totalBillableConnections":"86"},{"response":{"code":200,"message":"OK"},"campaignId":"786","cpc":"2.05","externalCampaignId":"","totalConnections":"660","totalSpend":"135.00","userAction":"View
|
31
|
+
Profile Page","totalBillableConnections":"66"},{"response":{"code":200,"message":"OK"},"campaignId":"786","cpc":"2.39","externalCampaignId":"","totalConnections":"460","totalSpend":"110.00","userAction":"View
|
32
|
+
menu - menu pages","totalBillableConnections":"46"},{"response":{"code":200,"message":"OK"},"campaignId":"786","cpc":"2.29","externalCampaignId":"","totalConnections":"720","totalSpend":"165.00","userAction":"Send
|
33
|
+
Profile Page to Email","totalBillableConnections":"72"},{"response":{"code":200,"message":"OK"},"campaignId":"786","cpc":"2.40","externalCampaignId":"","totalConnections":"750","totalSpend":"180.00","userAction":"View
|
34
|
+
Map","totalBillableConnections":"75"},{"response":{"code":200,"message":"OK"},"campaignId":"786","cpc":"1.92","externalCampaignId":"","totalConnections":"780","totalSpend":"150.00","userAction":"Watch
|
35
|
+
Video","totalBillableConnections":"78"},{"response":{"code":200,"message":"OK"},"campaignId":"786","cpc":"2.04","externalCampaignId":"","totalConnections":"810","totalSpend":"165.00","userAction":"Trackable
|
36
|
+
Phone Call","totalBillableConnections":"81"},{"response":{"code":200,"message":"OK"},"campaignId":"786","cpc":"2.14","externalCampaignId":"","totalConnections":"840","totalSpend":"180.00","userAction":"View
|
37
|
+
Offer","totalBillableConnections":"84"},{"response":{"code":200,"message":"OK"},"campaignId":"786","cpc":"2.24","externalCampaignId":"","totalConnections":"870","totalSpend":"195.00","userAction":"View
|
38
|
+
User Reviews","totalBillableConnections":"87"},{"response":{"code":200,"message":"OK"},"campaignId":"786","cpc":"2.33","externalCampaignId":"","totalConnections":"900","totalSpend":"210.00","userAction":"Request
|
39
|
+
Driving Directions","totalBillableConnections":"90"}],"response":{"code":200,"message":"OK"}}'
|
36
40
|
http_version: '1.1'
|
@@ -2,7 +2,7 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :get
|
5
|
-
uri: http://api.
|
5
|
+
uri: http://sandbox-api.citygrid.com:80/advertising/adgroup/v2/get?campaignId=2434702
|
6
6
|
body: !!null
|
7
7
|
headers:
|
8
8
|
accept:
|
@@ -10,14 +10,14 @@
|
|
10
10
|
content-type:
|
11
11
|
- Application/JSON
|
12
12
|
authtoken:
|
13
|
-
-
|
13
|
+
- 20f1918ababef692f0b7e71940acbe4b
|
14
14
|
response: !ruby/struct:VCR::Response
|
15
15
|
status: !ruby/struct:VCR::ResponseStatus
|
16
16
|
code: 200
|
17
17
|
message: OK
|
18
18
|
headers:
|
19
19
|
date:
|
20
|
-
-
|
20
|
+
- Sat, 31 Dec 2011 01:12:26 GMT
|
21
21
|
server:
|
22
22
|
- Apache-Coyote/1.1
|
23
23
|
content-type:
|