citygrid_api 0.0.6 → 0.0.7
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/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
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
---
|
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
|
3
|
+
request: !ruby/struct:VCR::Request
|
|
4
|
+
method: :get
|
|
5
|
+
uri: http://api.citygridmedia.com:80/content/reviews/v2/search/where?client_ip=192.168.0.1&format=json&listing_id=628554020&publisher=citygrid
|
|
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
|
+
- Wed, 04 Jan 2012 01:30:57 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/reviews/reviews/v2/search/where?listing_id=628554020&format=json&page=1&rpp=20&radius=5.0&histograms=false&publisher=citygrid®ion_type=circle","first_hit":1,"last_hit":11,"total_hits":11,"page":1,"rpp":20,"did_you_mean":null,"regions":[],"histograms":[],"reviews":[{"review_id":"judy_-2059525145","review_title":"Gourmet
|
|
28
|
+
and NY Style","review_text":"How can it go wrong with those two combination?
|
|
29
|
+
Gourmet and NY Style thin crust. New ownership and it''s no longer shady like
|
|
30
|
+
the old place. Cleaner, much friendlier, completely new. Bella Kitchen is
|
|
31
|
+
here to stay and I would go there…","pros":null,"cons":null,"review_rating":10,"review_date":"2010-01-25T23:19:21Z","review_author":"Guest
|
|
32
|
+
G.","helpful_count":null,"unhelpful_count":null,"type":"external_user_review","source":"Judy''sBook","reference_id":"1","source_id":"13","attribution_logo":"http://static2.judysbook.com/img/partners/citygrid/jb_iab_88_31.jpg","attribution_text":"Judy''sBook","attribution_url":"http://www.judysbook.com/","listing_id":628554020,"business_name":"Bella
|
|
33
|
+
Kitchen","impression_id":"000b00000317ae5788f0d048d7b52d4fdec0b27fba","review_author_url":null,"review_url":"http://www.judysbook.com/members/101311/posts/2010/1/4927819/","public_id":"bella-kitchen-kirkland"},{"review_id":"cg_203303941","review_title":"Bella
|
|
34
|
+
Kitchen","review_text":"Experience a wholesome pizza hot from the oven, handcrafted
|
|
35
|
+
from real, fresh ingredients. Worlds apart from the oily, bland pizzas out there.
|
|
36
|
+
It''s all about the fresh ingredients! This is what a pizza should be. They
|
|
37
|
+
make fantastic…","pros":null,"cons":null,"review_rating":0,"review_date":"2011-01-13T18:02:31Z","review_author":"CS
|
|
38
|
+
Contributor","helpful_count":0,"unhelpful_count":0,"type":"editorial_review","source":"CITYSEARCH","reference_id":"1","source_id":"5","attribution_logo":null,"attribution_text":"Citysearch","attribution_url":"
|
|
39
|
+
","listing_id":628554020,"business_name":"Bella Kitchen","impression_id":"000b000003aba8ef4536b64387aefb5bae48aeca97","review_author_url":"http://my.citysearch.com/members/public/profile/CS+Contributor?i=000b000003aba8ef4536b64387aefb5bae48aeca97","review_url":"http://seattle.citysearch.com/review/628554020?reviewId=203303941","public_id":"bella-kitchen-kirkland"},{"review_id":"cg_51216721","review_title":"Delicious","review_text":"I
|
|
40
|
+
tried this place recently for the first time and i found out it was under new
|
|
41
|
+
ownership. I ordered a personal Hawaiian pizza (Tropicali) and it was extremely
|
|
42
|
+
good! The new owner was super friendly! After that, i took my girlfriend…","pros":"Best
|
|
43
|
+
pizza and salad in town!","cons":"In the middle of renovation","review_rating":10,"review_date":"2009-12-11T17:02:54Z","review_author":"Peter
|
|
44
|
+
Robertson","helpful_count":0,"unhelpful_count":0,"type":"user_review","source":"CITYSEARCH","reference_id":"1","source_id":"5","attribution_logo":null,"attribution_text":"Citysearch","attribution_url":"
|
|
45
|
+
","listing_id":628554020,"business_name":"Bella Kitchen","impression_id":"000b00000321940e2470c74b81a5ce82574b99f4f4","review_author_url":"http://my.citysearch.com/members/public/profile/Peter+Robertson?i=000b00000321940e2470c74b81a5ce82574b99f4f4","review_url":"http://seattle.citysearch.com/review/628554020?reviewId=51216721","public_id":"bella-kitchen-kirkland"},{"review_id":"cg_51255921","review_title":"Great
|
|
46
|
+
pizza place","review_text":"I''ve seen signs saying slice and soda for 5$. i
|
|
47
|
+
wanted to try it out and found out that they didnt have this deal because of
|
|
48
|
+
new ownership. They now have a 10\" personal pan pizza for 5$. Even better deal.
|
|
49
|
+
I looked at this menu and…","pros":"Best gourmet pizza at a low price","cons":"nothing","review_rating":10,"review_date":"2009-12-14T22:45:39Z","review_author":"BLAM","helpful_count":0,"unhelpful_count":0,"type":"user_review","source":"CITYSEARCH","reference_id":"1","source_id":"5","attribution_logo":null,"attribution_text":"Citysearch","attribution_url":"
|
|
50
|
+
","listing_id":628554020,"business_name":"Bella Kitchen","impression_id":"000b0000034718cea32d1648c4bb3dfa228b742fc4","review_author_url":"http://my.citysearch.com/members/public/profile/BLAM?i=000b0000034718cea32d1648c4bb3dfa228b742fc4","review_url":"http://seattle.citysearch.com/review/628554020?reviewId=51255921","public_id":"bella-kitchen-kirkland"},{"review_id":"cg_51314721","review_title":"Good
|
|
51
|
+
NY style pizza","review_text":"Really good New York style pizza in Kirkland.
|
|
52
|
+
The delivery guy made it quickly and he was polite young dude. They take a credit
|
|
53
|
+
card over the phone. Small lunch pizza''s for dine in or take out too.","pros":"Good
|
|
54
|
+
sauce on the pizza. Fast delivery.","cons":null,"review_rating":8,"review_date":"2009-12-18T19:35:13Z","review_author":"DasCoug","helpful_count":0,"unhelpful_count":0,"type":"user_review","source":"CITYSEARCH","reference_id":"1","source_id":"5","attribution_logo":null,"attribution_text":"Citysearch","attribution_url":"
|
|
55
|
+
","listing_id":628554020,"business_name":"Bella Kitchen","impression_id":"000b000003202cb72e9c2643468557c95627d494af","review_author_url":"http://my.citysearch.com/members/public/profile/DasCoug?i=000b000003202cb72e9c2643468557c95627d494af","review_url":"http://seattle.citysearch.com/review/628554020?reviewId=51314721","public_id":"bella-kitchen-kirkland"},{"review_id":"cg_51329631","review_title":"Great
|
|
56
|
+
Price Better Pizza","review_text":"New ownership only made this place more efficient. I''m
|
|
57
|
+
a very picker eater coming from 6 years of restaurant management. These guys
|
|
58
|
+
have a good thing going on. The price is perfect. This is a place I recommend
|
|
59
|
+
to everyone.","pros":"Great Pizza not just run of the mill Pizza. Friendly
|
|
60
|
+
Staff","cons":"None thus far.","review_rating":10,"review_date":"2009-12-20T18:13:27Z","review_author":"brjackbauer","helpful_count":0,"unhelpful_count":0,"type":"user_review","source":"CITYSEARCH","reference_id":"1","source_id":"5","attribution_logo":null,"attribution_text":"Citysearch","attribution_url":"
|
|
61
|
+
","listing_id":628554020,"business_name":"Bella Kitchen","impression_id":"000b000003a77c576c3b4644ad8799ba4d3c3cebd9","review_author_url":"http://my.citysearch.com/members/public/profile/brjackbauer?i=000b000003a77c576c3b4644ad8799ba4d3c3cebd9","review_url":"http://seattle.citysearch.com/review/628554020?reviewId=51329631","public_id":"bella-kitchen-kirkland"},{"review_id":"cg_51487211","review_title":"Citysearch
|
|
62
|
+
Editorial Review","review_text":"Formerly known as Top Pizza, this Kirkland
|
|
63
|
+
pizzeria dishes out New York-style pies at affordable prices.","pros":null,"cons":null,"review_rating":0,"review_date":"2010-01-05T15:35:08Z","review_author":"Chelsea
|
|
64
|
+
Lin","helpful_count":0,"unhelpful_count":0,"type":"editorial_review","source":"CITYSEARCH","reference_id":"1","source_id":"5","attribution_logo":null,"attribution_text":"Citysearch","attribution_url":"
|
|
65
|
+
","listing_id":628554020,"business_name":"Bella Kitchen","impression_id":"000b000003b487503d9dba48f9beb5f45e9d427618","review_author_url":"http://my.citysearch.com/members/public/profile/Chelsea+Lin?i=000b000003b487503d9dba48f9beb5f45e9d427618","review_url":"http://seattle.citysearch.com/review/628554020?reviewId=51487211","public_id":"bella-kitchen-kirkland"},{"review_id":"cg_53138011","review_title":"A
|
|
66
|
+
Wonderful Find","review_text":"The pizza is good and the pastas and salads are
|
|
67
|
+
outstanding. This is true gourmet food at very reasonable prices served out
|
|
68
|
+
of a small, unpretentious location. The best vegetarian lasagna I have ever
|
|
69
|
+
eaten. Ilya has served us when we…","pros":"Terrific Food","cons":"No Beer
|
|
70
|
+
or Wine","review_rating":10,"review_date":"2010-01-18T13:26:18Z","review_author":"KirklandFrank","helpful_count":0,"unhelpful_count":0,"type":"user_review","source":"CITYSEARCH","reference_id":"1","source_id":"5","attribution_logo":null,"attribution_text":"Citysearch","attribution_url":"
|
|
71
|
+
","listing_id":628554020,"business_name":"Bella Kitchen","impression_id":"000b0000036c7d09ea4a134b519f3e316f8d4dc3a0","review_author_url":"http://my.citysearch.com/members/public/profile/KirklandFrank?i=000b0000036c7d09ea4a134b519f3e316f8d4dc3a0","review_url":"http://seattle.citysearch.com/review/628554020?reviewId=53138011","public_id":"bella-kitchen-kirkland"},{"review_id":"cg_60586521","review_title":"not
|
|
72
|
+
good","review_text":"my husband ordered from here a week ago and i was amazed
|
|
73
|
+
by how poorly he was treated. people were texting on their phone while my husband
|
|
74
|
+
was ordering, they were occupied by the tv and computer it seemed. the place
|
|
75
|
+
is beautiful inside, …","pros":"thin crust was good","cons":"people there are
|
|
76
|
+
rude","review_rating":2,"review_date":"2010-02-28T18:19:40Z","review_author":"MALINA
|
|
77
|
+
JACOBS","helpful_count":0,"unhelpful_count":0,"type":"user_review","source":"CITYSEARCH","reference_id":"1","source_id":"5","attribution_logo":null,"attribution_text":"Citysearch","attribution_url":"
|
|
78
|
+
","listing_id":628554020,"business_name":"Bella Kitchen","impression_id":"000b0000033a2fd06b72fd4f369e6121d505312ef3","review_author_url":"http://my.citysearch.com/members/public/profile/MALINA+JACOBS?i=000b0000033a2fd06b72fd4f369e6121d505312ef3","review_url":"http://seattle.citysearch.com/review/628554020?reviewId=60586521","public_id":"bella-kitchen-kirkland"},{"review_id":"cg_63936251","review_title":"Awesome
|
|
79
|
+
Food!","review_text":"This place is awesome! I have eatten here many times and
|
|
80
|
+
enjoy the food very much. The pizza''s have soooo much flavor in them it''s
|
|
81
|
+
amazing. I was talking with one of the chef''s their about the pizza (Very friendly
|
|
82
|
+
staff) they said that…","pros":"Best Pizza, Great Calzones, Friendly, GOOD PRICE","cons":"None
|
|
83
|
+
really","review_rating":10,"review_date":"2010-03-18T10:33:29Z","review_author":"dbacon11223","helpful_count":0,"unhelpful_count":0,"type":"user_review","source":"CITYSEARCH","reference_id":"1","source_id":"5","attribution_logo":null,"attribution_text":"Citysearch","attribution_url":"
|
|
84
|
+
","listing_id":628554020,"business_name":"Bella Kitchen","impression_id":"000b000003adc40b552f5c47e6a442bcb3d0e6a6b3","review_author_url":"http://my.citysearch.com/members/public/profile/dbacon11223?i=000b000003adc40b552f5c47e6a442bcb3d0e6a6b3","review_url":"http://seattle.citysearch.com/review/628554020?reviewId=63936251","public_id":"bella-kitchen-kirkland"},{"review_id":"cg_79945861","review_title":"Pizza
|
|
85
|
+
- Not horrible","review_text":"When here with 2 sons and brother. My sons are
|
|
86
|
+
pizza guys and know good from bad. This pizza was not so good as the person
|
|
87
|
+
who made it obviously over-docked it making it paper thin and did not give the
|
|
88
|
+
dough time to rise after docking…","pros":"clean store, great cheese and toppings","cons":"dough
|
|
89
|
+
and sauce","review_rating":4,"review_date":"2010-06-16T17:11:31Z","review_author":"bunniboo","helpful_count":0,"unhelpful_count":0,"type":"user_review","source":"CITYSEARCH","reference_id":"1","source_id":"5","attribution_logo":null,"attribution_text":"Citysearch","attribution_url":"
|
|
90
|
+
","listing_id":628554020,"business_name":"Bella Kitchen","impression_id":"000b0000038e5ccbc3cef34749b045806f5ed5d717","review_author_url":"http://my.citysearch.com/members/public/profile/bunniboo?i=000b0000038e5ccbc3cef34749b045806f5ed5d717","review_url":"http://seattle.citysearch.com/review/628554020?reviewId=79945861","public_id":"bella-kitchen-kirkland"}]}}'
|
|
91
|
+
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: 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:13:30 GMT
|
|
15
15
|
server:
|
|
16
16
|
- Apache-Coyote/1.1
|
|
17
17
|
content-type:
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
- Accept-Encoding
|
|
21
21
|
transfer-encoding:
|
|
22
22
|
- chunked
|
|
23
|
-
body: ! '{"code":201,"authToken":"
|
|
23
|
+
body: ! '{"code":201,"authToken":"aa153f928ca9930301aa07761dd084bf"}'
|
|
24
24
|
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: 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:13:31 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":"1dc30b1b28f5cab98506b95b3677baa1"}'
|
|
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: http://api.
|
|
28
|
+
uri: http://sandbox-api.citygrid.com:80/content/places/v2/mutate
|
|
29
29
|
body: ! '{"mutateOperationListResource":[{"operator":"ADD","operand":{"name":"Pi
|
|
30
30
|
on sunset in LAAAAAAAAAAAAAA","address_1":"Jackson 2102","address_2":"","city":"Los
|
|
31
31
|
Angeles","state":"California","postal_code":90025,"phone_number":3103333333,"website_url":"pi.com","primary_tag_id":3623,"bullet1":"Knoll
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
content-type:
|
|
37
37
|
- Application/JSON
|
|
38
38
|
authtoken:
|
|
39
|
-
-
|
|
39
|
+
- 1dc30b1b28f5cab98506b95b3677baa1
|
|
40
40
|
response: !ruby/struct:VCR::Response
|
|
41
41
|
status: !ruby/struct:VCR::ResponseStatus
|
|
42
42
|
code: 200
|
|
43
43
|
message: OK
|
|
44
44
|
headers:
|
|
45
45
|
date:
|
|
46
|
-
-
|
|
46
|
+
- Sat, 31 Dec 2011 01:13:31 GMT
|
|
47
47
|
server:
|
|
48
48
|
- Apache-Coyote/1.1
|
|
49
49
|
content-type:
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
- Accept-Encoding
|
|
53
53
|
transfer-encoding:
|
|
54
54
|
- chunked
|
|
55
|
-
body: ! '{"resources":[{"response":{"message":"OK","code":200},"listingId":
|
|
55
|
+
body: ! '{"resources":[{"response":{"message":"OK","code":200},"listingId":904202240}]}'
|
|
56
56
|
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: https://api
|
|
5
|
+
uri: https://sandbox-api.citygrid.com:443/accounts/account/v2/get/type?format=json&id=1250702
|
|
6
6
|
body: !!null
|
|
7
7
|
headers:
|
|
8
8
|
accept:
|
|
@@ -10,21 +10,33 @@
|
|
|
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
|
-
code:
|
|
17
|
-
message:
|
|
16
|
+
code: 404
|
|
17
|
+
message: Not Found
|
|
18
18
|
headers:
|
|
19
19
|
date:
|
|
20
|
-
-
|
|
20
|
+
- Sat, 31 Dec 2011 01:11:09 GMT
|
|
21
21
|
server:
|
|
22
|
-
- Apache
|
|
22
|
+
- Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/0.9.8e-fips-rhel5
|
|
23
|
+
content-length:
|
|
24
|
+
- '226'
|
|
23
25
|
content-type:
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
- text/html; charset=iso-8859-1
|
|
27
|
+
body: ! '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
|
|
28
|
+
|
|
29
|
+
<html><head>
|
|
30
|
+
|
|
31
|
+
<title>404 Not Found</title>
|
|
32
|
+
|
|
33
|
+
</head><body>
|
|
34
|
+
|
|
35
|
+
<h1>Not Found</h1>
|
|
36
|
+
|
|
37
|
+
<p>The requested URL /accounts/account/v2/get/type was not found on this server.</p>
|
|
38
|
+
|
|
39
|
+
</body></html>
|
|
40
|
+
|
|
41
|
+
'
|
|
30
42
|
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: https://api
|
|
5
|
+
uri: https://sandbox-api.citygrid.com:443/accounts/account/v2/get?id=1250702
|
|
6
6
|
body: !!null
|
|
7
7
|
headers:
|
|
8
8
|
accept:
|
|
@@ -10,22 +10,33 @@
|
|
|
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
|
-
code:
|
|
17
|
-
message:
|
|
16
|
+
code: 404
|
|
17
|
+
message: Not Found
|
|
18
18
|
headers:
|
|
19
19
|
date:
|
|
20
|
-
-
|
|
20
|
+
- Sat, 31 Dec 2011 01:11:08 GMT
|
|
21
21
|
server:
|
|
22
|
-
- Apache
|
|
22
|
+
- Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/0.9.8e-fips-rhel5
|
|
23
|
+
content-length:
|
|
24
|
+
- '221'
|
|
23
25
|
content-type:
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
- text/html; charset=iso-8859-1
|
|
27
|
+
body: ! '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
|
|
28
|
+
|
|
29
|
+
<html><head>
|
|
30
|
+
|
|
31
|
+
<title>404 Not Found</title>
|
|
32
|
+
|
|
33
|
+
</head><body>
|
|
34
|
+
|
|
35
|
+
<h1>Not Found</h1>
|
|
36
|
+
|
|
37
|
+
<p>The requested URL /accounts/account/v2/get was not found on this server.</p>
|
|
38
|
+
|
|
39
|
+
</body></html>
|
|
40
|
+
|
|
41
|
+
'
|
|
31
42
|
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: https://api
|
|
5
|
+
uri: https://sandbox-api.citygrid.com:443/accounts/user/v2/login?password=pppppp&username=QASalesCoord
|
|
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:06 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":"20f1918ababef692f0b7e71940acbe4b"}'
|
|
24
24
|
http_version: '1.1'
|
|
25
25
|
- !ruby/struct:VCR::HTTPInteraction
|
|
26
26
|
request: !ruby/struct:VCR::Request
|
|
27
27
|
method: :get
|
|
28
|
-
uri: https://api
|
|
28
|
+
uri: https://sandbox-api.citygrid.com:443/accounts/account/v2/get?userName=25-1
|
|
29
29
|
body: !!null
|
|
30
30
|
headers:
|
|
31
31
|
accept:
|
|
@@ -33,23 +33,33 @@
|
|
|
33
33
|
content-type:
|
|
34
34
|
- Application/JSON
|
|
35
35
|
authtoken:
|
|
36
|
-
-
|
|
36
|
+
- 20f1918ababef692f0b7e71940acbe4b
|
|
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:08 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
|
+
- '221'
|
|
46
48
|
content-type:
|
|
47
|
-
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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/get was not found on this server.</p>
|
|
61
|
+
|
|
62
|
+
</body></html>
|
|
63
|
+
|
|
64
|
+
'
|
|
55
65
|
http_version: '1.1'
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
|
3
|
+
request: !ruby/struct:VCR::Request
|
|
4
|
+
method: :post
|
|
5
|
+
uri: http://sandbox-api.citygrid.com:80/advertising/calldetail/v2/campaign
|
|
6
|
+
body: ! '{"campaignId":786,"period":"last30Days"}'
|
|
7
|
+
headers:
|
|
8
|
+
accept:
|
|
9
|
+
- application/json
|
|
10
|
+
content-type:
|
|
11
|
+
- Application/JSON
|
|
12
|
+
authtoken:
|
|
13
|
+
- 20f1918ababef692f0b7e71940acbe4b
|
|
14
|
+
response: !ruby/struct:VCR::Response
|
|
15
|
+
status: !ruby/struct:VCR::ResponseStatus
|
|
16
|
+
code: 403
|
|
17
|
+
message: Forbidden
|
|
18
|
+
headers:
|
|
19
|
+
date:
|
|
20
|
+
- Sat, 31 Dec 2011 01:12:46 GMT
|
|
21
|
+
server:
|
|
22
|
+
- Apache/2.2.4 (Unix) mod_perl/2.0.5 Perl/v5.8.5
|
|
23
|
+
content-length:
|
|
24
|
+
- '350'
|
|
25
|
+
content-type:
|
|
26
|
+
- text/html; charset=iso-8859-1
|
|
27
|
+
body: ! '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
|
|
28
|
+
|
|
29
|
+
<html><head>
|
|
30
|
+
|
|
31
|
+
<title>403 Forbidden</title>
|
|
32
|
+
|
|
33
|
+
</head><body>
|
|
34
|
+
|
|
35
|
+
<h1>Forbidden</h1>
|
|
36
|
+
|
|
37
|
+
<p>You don''t have permission to access /advertising/calldetail/v2/campaign
|
|
38
|
+
|
|
39
|
+
on this server.</p>
|
|
40
|
+
|
|
41
|
+
<hr>
|
|
42
|
+
|
|
43
|
+
<address>Apache/2.2.4 (Unix) mod_perl/2.0.5 Perl/v5.8.5 Server at sandbox-api.citygrid.com
|
|
44
|
+
Port 80</address>
|
|
45
|
+
|
|
46
|
+
</body></html>
|
|
47
|
+
|
|
48
|
+
'
|
|
49
|
+
http_version: '1.1'
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
---
|
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
|
3
|
+
request: !ruby/struct:VCR::Request
|
|
4
|
+
method: :post
|
|
5
|
+
uri: https://sandbox-api.citygrid.com:443/accounts/user/v2/login?password=pppppp&username=kunimom
|
|
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
|
+
- Sat, 31 Dec 2011 01:12:22 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":"ea42560cc6365e5ad550e61bc6059471"}'
|
|
24
|
+
http_version: '1.1'
|
|
25
|
+
- !ruby/struct:VCR::HTTPInteraction
|
|
26
|
+
request: !ruby/struct:VCR::Request
|
|
27
|
+
method: :get
|
|
28
|
+
uri: https://sandbox-api.citygrid.com:443/accounts/mop/v2/get?accountId=111
|
|
29
|
+
body: !!null
|
|
30
|
+
headers:
|
|
31
|
+
accept:
|
|
32
|
+
- application/json
|
|
33
|
+
content-type:
|
|
34
|
+
- Application/JSON
|
|
35
|
+
authtoken:
|
|
36
|
+
- ea42560cc6365e5ad550e61bc6059471
|
|
37
|
+
response: !ruby/struct:VCR::Response
|
|
38
|
+
status: !ruby/struct:VCR::ResponseStatus
|
|
39
|
+
code: 404
|
|
40
|
+
message: Not Found
|
|
41
|
+
headers:
|
|
42
|
+
date:
|
|
43
|
+
- Sat, 31 Dec 2011 01:12:23 GMT
|
|
44
|
+
server:
|
|
45
|
+
- Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/0.9.8e-fips-rhel5
|
|
46
|
+
content-length:
|
|
47
|
+
- '217'
|
|
48
|
+
content-type:
|
|
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/mop/v2/get was not found on this server.</p>
|
|
61
|
+
|
|
62
|
+
</body></html>
|
|
63
|
+
|
|
64
|
+
'
|
|
65
|
+
http_version: '1.1'
|