citygrid_api 0.0.5.1 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. data/.sass-cache/c6f2c767b164f077e5b9fb1f18a7886d7c755211/test.scssc +0 -0
  2. data/Gemfile +3 -1
  3. data/Gemfile.lock +9 -1
  4. data/VERSION +1 -1
  5. data/citygrid_api.gemspec +85 -45
  6. data/citygrid_api.yml.backup +35 -0
  7. data/citygrid_api.yml.sample +35 -23
  8. data/fixtures/vcr_cassettes/AdGroupCriterion_mutate.yml +30 -0
  9. data/fixtures/vcr_cassettes/AdGroupCriterion_search.yml +35 -0
  10. data/fixtures/vcr_cassettes/Adding_a_place.yml +33 -0
  11. data/fixtures/vcr_cassettes/Call_Detail_by_campaign.yml +79 -0
  12. data/fixtures/vcr_cassettes/Geo.yml +32 -0
  13. data/fixtures/vcr_cassettes/Getting_an_offer_by_listing_ID.yml +54 -0
  14. data/fixtures/vcr_cassettes/Import_a_cg_account.yml +54 -0
  15. data/fixtures/vcr_cassettes/Initiating_a_Details.yml +133 -0
  16. data/fixtures/vcr_cassettes/Initiating_new_MultiDetails.yml +133 -0
  17. data/fixtures/vcr_cassettes/Method_of_Payment_mutate.yml +33 -0
  18. data/fixtures/vcr_cassettes/Method_of_Payment_search.yml +59 -0
  19. data/fixtures/vcr_cassettes/Mutating_AdGroup_Ads.yml +30 -0
  20. data/fixtures/vcr_cassettes/Report_summary_daily.yml +60 -0
  21. data/fixtures/vcr_cassettes/Report_summary_user_actions.yml +36 -0
  22. data/fixtures/vcr_cassettes/Search_Ad_Group_by_Campaign_Id.yml +31 -0
  23. data/fixtures/vcr_cassettes/Search_Billing_by_Campaign_Id.yml +30 -0
  24. data/fixtures/vcr_cassettes/Search_account_manager_by_Campaign_Id.yml +30 -0
  25. data/fixtures/vcr_cassettes/Searching_AdGroup_Geo.yml +57 -0
  26. data/fixtures/vcr_cassettes/Searching_budgets.yml +30 -0
  27. data/fixtures/vcr_cassettes/Searching_categories_by_listing_id.yml +35 -0
  28. data/fixtures/vcr_cassettes/Searching_categories_by_query.yml +33 -0
  29. data/fixtures/vcr_cassettes/Upload_an_image_Add_a_preview.yml +31 -0
  30. data/fixtures/vcr_cassettes/create_campaign.yml +30 -0
  31. data/fixtures/vcr_cassettes/log_in_a_session.yml +24 -0
  32. data/fixtures/vcr_cassettes/log_in_a_session_mutate_places.yml +56 -0
  33. data/fixtures/vcr_cassettes/query_account_type_by_id.yml +30 -0
  34. data/fixtures/vcr_cassettes/search_for_an_account_by_id.yml +31 -0
  35. data/fixtures/vcr_cassettes/search_for_an_account_by_name.yml +55 -0
  36. data/fixtures/vcr_cassettes/searching_for_a_CityGrid_listing.yml +168 -0
  37. data/fixtures/vcr_cassettes/searching_for_a_special_CityGrid_listing.yml +67 -0
  38. data/lib/citygrid/abstraction/requestable.rb +1 -0
  39. data/lib/citygrid/api/accounts/account.rb +17 -0
  40. data/lib/citygrid/api/accounts/authentication.rb +3 -0
  41. data/lib/citygrid/api/accounts/method_of_payment.rb +10 -0
  42. data/lib/citygrid/api/accounts/user.rb +18 -0
  43. data/lib/citygrid/api/accounts.rb +8 -0
  44. data/lib/citygrid/api/advertising/account_manager.rb +9 -0
  45. data/lib/citygrid/api/advertising/ad_group.rb +10 -0
  46. data/lib/citygrid/api/advertising/ad_group_ad.rb +10 -0
  47. data/lib/citygrid/api/advertising/ad_group_criterion.rb +10 -0
  48. data/lib/citygrid/api/advertising/ad_group_geo.rb +10 -0
  49. data/lib/citygrid/api/advertising/billing.rb +9 -0
  50. data/lib/citygrid/api/advertising/budget.rb +10 -0
  51. data/lib/citygrid/api/advertising/call_detail.rb +10 -0
  52. data/lib/citygrid/api/advertising/campaign.rb +10 -0
  53. data/lib/citygrid/api/advertising/category.rb +10 -0
  54. data/lib/citygrid/api/advertising/geolocation.rb +10 -0
  55. data/lib/citygrid/api/{ad_center → advertising}/image.rb +2 -2
  56. data/lib/citygrid/api/{ad_center → advertising}/performance.rb +5 -2
  57. data/lib/citygrid/api/advertising/places.rb +10 -0
  58. data/lib/citygrid/api/advertising.rb +10 -0
  59. data/lib/citygrid/api/content/offers.rb +2 -12
  60. data/lib/citygrid/api/content/places.rb +4 -26
  61. data/lib/citygrid/api/content.rb +1 -5
  62. data/lib/citygrid/api/mutatable.rb +15 -0
  63. data/lib/citygrid/api/searchable.rb +15 -0
  64. data/lib/citygrid/api.rb +54 -52
  65. data/lib/citygrid/details.rb +3 -6
  66. data/lib/citygrid/offers.rb +1 -5
  67. data/lib/citygrid/search.rb +3 -6
  68. data/lib/citygrid/session.rb +65 -0
  69. data/lib/citygrid.rb +46 -75
  70. data/lib/request_ext.rb +4 -5
  71. data/lib/string_ext.rb +7 -0
  72. data/test/api/accounts/test_account.rb +111 -0
  73. data/test/api/accounts/test_method_of_payment.rb +50 -0
  74. data/test/api/advertising/test_account_manager.rb +14 -0
  75. data/test/api/advertising/test_ad_group.rb +13 -0
  76. data/test/api/advertising/test_ad_group_ad.rb +24 -0
  77. data/test/api/advertising/test_ad_group_criterion.rb +47 -0
  78. data/test/api/{ad_center → advertising}/test_ad_group_geo.rb +1 -1
  79. data/test/api/{ad_center → advertising}/test_billing.rb +4 -3
  80. data/test/api/{ad_center → advertising}/test_budget.rb +3 -3
  81. data/test/api/{ad_center → advertising}/test_call_detail.rb +5 -11
  82. data/test/api/{ad_center → advertising}/test_category.rb +9 -12
  83. data/test/api/advertising/test_create_campaign_and_ad_group.rb +56 -0
  84. data/test/api/{ad_center → advertising}/test_geolocation.rb +1 -1
  85. data/test/api/{ad_center → advertising}/test_image.rb +1 -3
  86. data/test/api/{ad_center/test_reports.rb → advertising/test_performance.rb} +6 -10
  87. data/test/api/advertising/test_places.rb +109 -0
  88. data/test/{test_details.rb → api/content/test_details.rb} +2 -3
  89. data/test/{test_search.rb → api/content/test_search.rb} +2 -2
  90. data/test/auth_token.rb +39 -0
  91. data/test/helper.rb +31 -31
  92. data/test/session_helper.rb +20 -0
  93. data/test/test_session.rb +53 -0
  94. metadata +115 -67
  95. data/lib/citygrid/api/ad_center/account.rb +0 -26
  96. data/lib/citygrid/api/ad_center/account_manager.rb +0 -8
  97. data/lib/citygrid/api/ad_center/ad_group.rb +0 -8
  98. data/lib/citygrid/api/ad_center/ad_group_ad.rb +0 -8
  99. data/lib/citygrid/api/ad_center/ad_group_criterion.rb +0 -8
  100. data/lib/citygrid/api/ad_center/ad_group_geo.rb +0 -8
  101. data/lib/citygrid/api/ad_center/authentication.rb +0 -20
  102. data/lib/citygrid/api/ad_center/billing.rb +0 -8
  103. data/lib/citygrid/api/ad_center/budget.rb +0 -9
  104. data/lib/citygrid/api/ad_center/call_detail.rb +0 -25
  105. data/lib/citygrid/api/ad_center/campaign.rb +0 -8
  106. data/lib/citygrid/api/ad_center/category.rb +0 -9
  107. data/lib/citygrid/api/ad_center/geolocation.rb +0 -9
  108. data/lib/citygrid/api/ad_center/method_of_payment.rb +0 -10
  109. data/lib/citygrid/api/ad_center/places.rb +0 -8
  110. data/lib/citygrid/api/ad_center/user.rb +0 -8
  111. data/lib/citygrid/api/ad_center.rb +0 -20
  112. data/lib/citygrid/api/content/places/detail.rb +0 -11
  113. data/lib/citygrid/api/content/places/search.rb +0 -11
  114. data/test/api/ad_center/test_account.rb +0 -120
  115. data/test/api/ad_center/test_ad_group.rb +0 -50
  116. data/test/api/ad_center/test_ad_group_ad.rb +0 -27
  117. data/test/api/ad_center/test_ad_group_criterion.rb +0 -37
  118. data/test/api/ad_center/test_authentication.rb +0 -22
  119. data/test/api/ad_center/test_campaign.rb +0 -27
  120. data/test/api/ad_center/test_method_of_payment.rb +0 -51
  121. data/test/api/ad_center/test_places.rb +0 -79
  122. data/test/api/content/test_places.rb +0 -66
data/Gemfile CHANGED
@@ -4,14 +4,16 @@ gem "httparty", "~> 0.8.1"
4
4
  gem "json", "1.5.3"
5
5
  gem "riot", "~> 0.12.4"
6
6
  gem "awesome_print", "~> 0.4.0", :require => "ap"
7
- gem "haml"
8
7
 
9
8
  group :development do
10
9
  gem "bundler", "~> 1.0.0"
11
10
  gem "jeweler", "~> 1.6.2"
12
11
  gem "rcov", ">= 0"
12
+ gem "vcr"
13
+ gem "webmock"
13
14
  end
14
15
 
15
16
  group :dashboard do
16
17
  gem "sinatra"
18
+ gem "haml"
17
19
  end
data/Gemfile.lock CHANGED
@@ -1,7 +1,9 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
+ addressable (2.2.6)
4
5
  awesome_print (0.4.0)
6
+ crack (0.3.1)
5
7
  git (1.2.5)
6
8
  haml (3.1.4)
7
9
  httparty (0.8.1)
@@ -17,7 +19,7 @@ GEM
17
19
  rack (1.3.5)
18
20
  rack-protection (1.1.4)
19
21
  rack
20
- rake (0.9.2.2)
22
+ rake (0.9.2)
21
23
  rcov (0.9.11)
22
24
  riot (0.12.5)
23
25
  rr
@@ -27,6 +29,10 @@ GEM
27
29
  rack-protection (~> 1.1, >= 1.1.2)
28
30
  tilt (~> 1.3, >= 1.3.3)
29
31
  tilt (1.3.3)
32
+ vcr (1.11.3)
33
+ webmock (1.7.8)
34
+ addressable (~> 2.2, > 2.2.5)
35
+ crack (>= 0.1.7)
30
36
 
31
37
  PLATFORMS
32
38
  ruby
@@ -41,3 +47,5 @@ DEPENDENCIES
41
47
  rcov
42
48
  riot (~> 0.12.4)
43
49
  sinatra
50
+ vcr
51
+ webmock
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.5
1
+ 0.0.6
data/citygrid_api.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "citygrid_api"
8
- s.version = "0.0.5.1"
8
+ s.version = "0.0.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Elpizo Choi"]
12
- s.date = "2011-12-17"
12
+ s.date = "2011-12-30"
13
13
  s.description = "Ruby wrapper for CityGrid APIs"
14
14
  s.email = "fu7iin@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -20,6 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.files = [
21
21
  ".document",
22
22
  ".sass-cache/7a5a675d951455410512a59af5ab2d160bd1735c/test.scssc",
23
+ ".sass-cache/c6f2c767b164f077e5b9fb1f18a7886d7c755211/test.scssc",
23
24
  "Gemfile",
24
25
  "Gemfile.lock",
25
26
  "LICENSE.txt",
@@ -28,9 +29,40 @@ Gem::Specification.new do |s|
28
29
  "Rakefile",
29
30
  "VERSION",
30
31
  "citygrid_api.gemspec",
32
+ "citygrid_api.yml.backup",
31
33
  "citygrid_api.yml.sample",
32
34
  "config.ru",
33
35
  "dashboard.rb",
36
+ "fixtures/vcr_cassettes/AdGroupCriterion_mutate.yml",
37
+ "fixtures/vcr_cassettes/AdGroupCriterion_search.yml",
38
+ "fixtures/vcr_cassettes/Adding_a_place.yml",
39
+ "fixtures/vcr_cassettes/Call_Detail_by_campaign.yml",
40
+ "fixtures/vcr_cassettes/Geo.yml",
41
+ "fixtures/vcr_cassettes/Getting_an_offer_by_listing_ID.yml",
42
+ "fixtures/vcr_cassettes/Import_a_cg_account.yml",
43
+ "fixtures/vcr_cassettes/Initiating_a_Details.yml",
44
+ "fixtures/vcr_cassettes/Initiating_new_MultiDetails.yml",
45
+ "fixtures/vcr_cassettes/Method_of_Payment_mutate.yml",
46
+ "fixtures/vcr_cassettes/Method_of_Payment_search.yml",
47
+ "fixtures/vcr_cassettes/Mutating_AdGroup_Ads.yml",
48
+ "fixtures/vcr_cassettes/Report_summary_daily.yml",
49
+ "fixtures/vcr_cassettes/Report_summary_user_actions.yml",
50
+ "fixtures/vcr_cassettes/Search_Ad_Group_by_Campaign_Id.yml",
51
+ "fixtures/vcr_cassettes/Search_Billing_by_Campaign_Id.yml",
52
+ "fixtures/vcr_cassettes/Search_account_manager_by_Campaign_Id.yml",
53
+ "fixtures/vcr_cassettes/Searching_AdGroup_Geo.yml",
54
+ "fixtures/vcr_cassettes/Searching_budgets.yml",
55
+ "fixtures/vcr_cassettes/Searching_categories_by_listing_id.yml",
56
+ "fixtures/vcr_cassettes/Searching_categories_by_query.yml",
57
+ "fixtures/vcr_cassettes/Upload_an_image_Add_a_preview.yml",
58
+ "fixtures/vcr_cassettes/create_campaign.yml",
59
+ "fixtures/vcr_cassettes/log_in_a_session.yml",
60
+ "fixtures/vcr_cassettes/log_in_a_session_mutate_places.yml",
61
+ "fixtures/vcr_cassettes/query_account_type_by_id.yml",
62
+ "fixtures/vcr_cassettes/search_for_an_account_by_id.yml",
63
+ "fixtures/vcr_cassettes/search_for_an_account_by_name.yml",
64
+ "fixtures/vcr_cassettes/searching_for_a_CityGrid_listing.yml",
65
+ "fixtures/vcr_cassettes/searching_for_a_special_CityGrid_listing.yml",
34
66
  "lib/citygrid.rb",
35
67
  "lib/citygrid/abstraction.rb",
36
68
  "lib/citygrid/abstraction/collection.rb",
@@ -39,69 +71,74 @@ Gem::Specification.new do |s|
39
71
  "lib/citygrid/abstraction/super_array.rb",
40
72
  "lib/citygrid/abstraction/super_hash.rb",
41
73
  "lib/citygrid/api.rb",
42
- "lib/citygrid/api/ad_center.rb",
43
- "lib/citygrid/api/ad_center/account.rb",
44
- "lib/citygrid/api/ad_center/account_manager.rb",
45
- "lib/citygrid/api/ad_center/ad_group.rb",
46
- "lib/citygrid/api/ad_center/ad_group_ad.rb",
47
- "lib/citygrid/api/ad_center/ad_group_criterion.rb",
48
- "lib/citygrid/api/ad_center/ad_group_geo.rb",
49
- "lib/citygrid/api/ad_center/authentication.rb",
50
- "lib/citygrid/api/ad_center/billing.rb",
51
- "lib/citygrid/api/ad_center/budget.rb",
52
- "lib/citygrid/api/ad_center/call_detail.rb",
53
- "lib/citygrid/api/ad_center/campaign.rb",
54
- "lib/citygrid/api/ad_center/category.rb",
55
- "lib/citygrid/api/ad_center/geolocation.rb",
56
- "lib/citygrid/api/ad_center/image.rb",
57
- "lib/citygrid/api/ad_center/method_of_payment.rb",
58
- "lib/citygrid/api/ad_center/performance.rb",
59
- "lib/citygrid/api/ad_center/places.rb",
60
- "lib/citygrid/api/ad_center/user.rb",
74
+ "lib/citygrid/api/accounts.rb",
75
+ "lib/citygrid/api/accounts/account.rb",
76
+ "lib/citygrid/api/accounts/authentication.rb",
77
+ "lib/citygrid/api/accounts/method_of_payment.rb",
78
+ "lib/citygrid/api/accounts/user.rb",
79
+ "lib/citygrid/api/advertising.rb",
80
+ "lib/citygrid/api/advertising/account_manager.rb",
81
+ "lib/citygrid/api/advertising/ad_group.rb",
82
+ "lib/citygrid/api/advertising/ad_group_ad.rb",
83
+ "lib/citygrid/api/advertising/ad_group_criterion.rb",
84
+ "lib/citygrid/api/advertising/ad_group_geo.rb",
85
+ "lib/citygrid/api/advertising/billing.rb",
86
+ "lib/citygrid/api/advertising/budget.rb",
87
+ "lib/citygrid/api/advertising/call_detail.rb",
88
+ "lib/citygrid/api/advertising/campaign.rb",
89
+ "lib/citygrid/api/advertising/category.rb",
90
+ "lib/citygrid/api/advertising/geolocation.rb",
91
+ "lib/citygrid/api/advertising/image.rb",
92
+ "lib/citygrid/api/advertising/performance.rb",
93
+ "lib/citygrid/api/advertising/places.rb",
61
94
  "lib/citygrid/api/content.rb",
62
95
  "lib/citygrid/api/content/offers.rb",
63
96
  "lib/citygrid/api/content/places.rb",
64
- "lib/citygrid/api/content/places/detail.rb",
65
- "lib/citygrid/api/content/places/search.rb",
66
97
  "lib/citygrid/api/content/reviews.rb",
98
+ "lib/citygrid/api/mutatable.rb",
67
99
  "lib/citygrid/api/response.rb",
100
+ "lib/citygrid/api/searchable.rb",
68
101
  "lib/citygrid/details.rb",
69
102
  "lib/citygrid/listing.rb",
70
103
  "lib/citygrid/offers.rb",
71
104
  "lib/citygrid/reviews.rb",
72
105
  "lib/citygrid/search.rb",
106
+ "lib/citygrid/session.rb",
73
107
  "lib/citygrid_api.rb",
74
108
  "lib/dashboard/sinatra_partial.rb",
75
109
  "lib/dashboard/stored_reporter.rb",
76
110
  "lib/dashboard/test_result.rb",
77
111
  "lib/request_ext.rb",
112
+ "lib/string_ext.rb",
78
113
  "public/javascript/dashboard.js",
79
- "test/api/ad_center/test_account.rb",
80
- "test/api/ad_center/test_ad_group.rb",
81
- "test/api/ad_center/test_ad_group_ad.rb",
82
- "test/api/ad_center/test_ad_group_criterion.rb",
83
- "test/api/ad_center/test_ad_group_geo.rb",
84
- "test/api/ad_center/test_authentication.rb",
85
- "test/api/ad_center/test_billing.rb",
86
- "test/api/ad_center/test_budget.rb",
87
- "test/api/ad_center/test_call_detail.rb",
88
- "test/api/ad_center/test_campaign.rb",
89
- "test/api/ad_center/test_category.rb",
90
- "test/api/ad_center/test_geolocation.rb",
91
- "test/api/ad_center/test_image.rb",
92
- "test/api/ad_center/test_method_of_payment.rb",
93
- "test/api/ad_center/test_places.rb",
94
- "test/api/ad_center/test_reports.rb",
114
+ "test/api/accounts/test_account.rb",
115
+ "test/api/accounts/test_method_of_payment.rb",
116
+ "test/api/advertising/test_account_manager.rb",
117
+ "test/api/advertising/test_ad_group.rb",
118
+ "test/api/advertising/test_ad_group_ad.rb",
119
+ "test/api/advertising/test_ad_group_criterion.rb",
120
+ "test/api/advertising/test_ad_group_geo.rb",
121
+ "test/api/advertising/test_billing.rb",
122
+ "test/api/advertising/test_budget.rb",
123
+ "test/api/advertising/test_call_detail.rb",
124
+ "test/api/advertising/test_category.rb",
125
+ "test/api/advertising/test_create_campaign_and_ad_group.rb",
126
+ "test/api/advertising/test_geolocation.rb",
127
+ "test/api/advertising/test_image.rb",
128
+ "test/api/advertising/test_performance.rb",
129
+ "test/api/advertising/test_places.rb",
130
+ "test/api/content/test_details.rb",
95
131
  "test/api/content/test_offers.rb",
96
- "test/api/content/test_places.rb",
132
+ "test/api/content/test_search.rb",
133
+ "test/auth_token.rb",
97
134
  "test/helper.rb",
98
135
  "test/publisher_helper.rb.sample",
136
+ "test/session_helper.rb",
99
137
  "test/test_config.rb",
100
- "test/test_details.rb",
101
138
  "test/test_img.jpg",
102
139
  "test/test_img_big.png",
103
140
  "test/test_listing.rb",
104
- "test/test_search.rb",
141
+ "test/test_session.rb",
105
142
  "test/test_super_array.rb",
106
143
  "test/test_super_hash.rb",
107
144
  "views/_context_result.haml",
@@ -123,29 +160,32 @@ Gem::Specification.new do |s|
123
160
  s.add_runtime_dependency(%q<json>, ["= 1.5.3"])
124
161
  s.add_runtime_dependency(%q<riot>, ["~> 0.12.4"])
125
162
  s.add_runtime_dependency(%q<awesome_print>, ["~> 0.4.0"])
126
- s.add_runtime_dependency(%q<haml>, [">= 0"])
127
163
  s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
128
164
  s.add_development_dependency(%q<jeweler>, ["~> 1.6.2"])
129
165
  s.add_development_dependency(%q<rcov>, [">= 0"])
166
+ s.add_development_dependency(%q<vcr>, [">= 0"])
167
+ s.add_development_dependency(%q<webmock>, [">= 0"])
130
168
  else
131
169
  s.add_dependency(%q<httparty>, ["~> 0.8.1"])
132
170
  s.add_dependency(%q<json>, ["= 1.5.3"])
133
171
  s.add_dependency(%q<riot>, ["~> 0.12.4"])
134
172
  s.add_dependency(%q<awesome_print>, ["~> 0.4.0"])
135
- s.add_dependency(%q<haml>, [">= 0"])
136
173
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
137
174
  s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
138
175
  s.add_dependency(%q<rcov>, [">= 0"])
176
+ s.add_dependency(%q<vcr>, [">= 0"])
177
+ s.add_dependency(%q<webmock>, [">= 0"])
139
178
  end
140
179
  else
141
180
  s.add_dependency(%q<httparty>, ["~> 0.8.1"])
142
181
  s.add_dependency(%q<json>, ["= 1.5.3"])
143
182
  s.add_dependency(%q<riot>, ["~> 0.12.4"])
144
183
  s.add_dependency(%q<awesome_print>, ["~> 0.4.0"])
145
- s.add_dependency(%q<haml>, [">= 0"])
146
184
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
147
185
  s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
148
186
  s.add_dependency(%q<rcov>, [">= 0"])
187
+ s.add_dependency(%q<vcr>, [">= 0"])
188
+ s.add_dependency(%q<webmock>, [">= 0"])
149
189
  end
150
190
  end
151
191
 
@@ -0,0 +1,35 @@
1
+ defaults:
2
+ hostname: api.qa.citygrid.com
3
+ ssl_hostname: api-qassl.citygrid.com
4
+
5
+ # endpoint_name: endpoint
6
+ # OR
7
+ # endpoint_name:
8
+ # ssl: true/false
9
+ # endpoint: endpoint
10
+
11
+ endpoints:
12
+ account:
13
+ ssl: true
14
+ endpoint: accounts/account/v2
15
+ account_manager: advertising/campaign/v2/accountmanager
16
+ ad_group: advertising/adgroup/v2
17
+ ad_group_ad: advertising/adgroupad/v2
18
+ ad_group_criterion: advertising/adgroupcriterion/v2
19
+ ad_group_geo: advertising/adgroupgeo/v2
20
+ authentication:
21
+ ssl: true
22
+ endpoint: accounts/user/v2
23
+ billing: advertising/billing/v2
24
+ budget: advertising/budget/v2/recommend
25
+ campaign: advertising/campaign/v2
26
+ category: content/category/v2
27
+ geo_location: content/places/v2/geocode
28
+ image: advertising/image/v2
29
+ method_of_payment:
30
+ ssl: true
31
+ endpoint: accounts/mop/v2
32
+ places: content/places/v2
33
+ performance: advertising/performance/v2/campaign
34
+ user: accounts/user/v2
35
+ call_detail: advertising/calldetail/v2
@@ -8,26 +8,38 @@ defaults:
8
8
  # ssl: true/false
9
9
  # endpoint: endpoint
10
10
 
11
- endpoints:
12
- account:
13
- ssl: true
14
- endpoint: accounts/account/v2
15
- ad_group: advertising/adgroup/v2
16
- ad_group_ad: advertising/adgroupad/v2
17
- ad_group_criterion: advertising/adgroupcriterion/v2
18
- ad_group_geo: advertising/adgroupgeo/v2
19
- authentication:
20
- ssl: true
21
- endpoint: accounts/user/v2
22
- budget: advertising/budget/v2/recommend
23
- campaign: advertising/campaign/v2
24
- category: content/category/v2
25
- geo_location: content/places/v2/geocode
26
- image: advertising/image/v2
27
- method_of_payment:
28
- ssl: true
29
- endpoint: accounts/mop/v2
30
- places: content/places/v2
31
- performance: advertising/performance/v2/campaign
32
- user: accounts/user/v2
33
- call_detail: advertising/calldetail/v2
11
+ api:
12
+ accounts:
13
+ account:
14
+ ssl: true
15
+ endpoint: accounts/account/v2
16
+ method_of_payment:
17
+ ssl: true
18
+ endpoint: accounts/mop/v2
19
+ user:
20
+ ssl: true
21
+ endpoint: accounts/user/v2
22
+ advertising:
23
+ account_manager:
24
+ ssl: true
25
+ endpoint: advertising/campaign/v2/accountmanager
26
+ ad_group: advertising/adgroup/v2
27
+ ad_group_ad: advertising/adgroupad/v2
28
+ ad_group_criterion: advertising/adgroupcriterion/v2
29
+ ad_group_geo: advertising/adgroupgeo/v2
30
+ budget: advertising/budget/v2/recommend
31
+ billing: advertising/billing/v2
32
+ call_detail: advertising/calldetail/v2
33
+ campaign: advertising/campaign/v2
34
+ category: content/category/v2
35
+ geo_location: content/places/v2/geocode
36
+ image: advertising/image/v2
37
+ places: content/places/v2
38
+ performance: advertising/performance/v2
39
+ content:
40
+ offers:
41
+ endpoint: content/offers/v2
42
+ hostname: api.citygridmedia.com
43
+ places:
44
+ endpoint: content/places/v2
45
+ hostname: api.citygridmedia.com
@@ -0,0 +1,30 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :post
5
+ uri: http://api.qa.citygrid.com:80/advertising/adgroupcriterion/v2/mutate
6
+ body: ! '{"mutateOperationListResource":[{"operator":"ADD","operand":{"adGroupId":"2","adGroupAdId":"1","adGroupCriterionId":"1722","type":"2"}},{"operator":"REMOVE","operand":{"adGroupId":"2","adGroupAdId":"1","adGroupCriterionId":"1722","type":"2"}}]}'
7
+ headers:
8
+ accept:
9
+ - application/json
10
+ content-type:
11
+ - Application/JSON
12
+ authtoken:
13
+ - 563da3d1cfa3a8e75f6a09e89f542d67
14
+ response: !ruby/struct:VCR::Response
15
+ status: !ruby/struct:VCR::ResponseStatus
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ date:
20
+ - Fri, 30 Dec 2011 01:06:02 GMT
21
+ server:
22
+ - Apache-Coyote/1.1
23
+ content-type:
24
+ - application/json
25
+ vary:
26
+ - Accept-Encoding
27
+ transfer-encoding:
28
+ - chunked
29
+ body: ! '{"totalNumEntries":2,"adGroupCriterions":[{"type":"SECONDARY","response":{"message":"OK","code":200},"adGroupId":"2","keyword":"Restaurants","adGroupCriterionId":"1722"},{"type":"SECONDARY","response":{"message":"OK","code":200},"adGroupId":"2","keyword":"Restaurants","adGroupCriterionId":"1722"}]}'
30
+ http_version: '1.1'
@@ -0,0 +1,35 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://api.qa.citygrid.com:80/advertising/adgroupcriterion/v2/get?adGroupId=6
6
+ body: !!null
7
+ headers:
8
+ accept:
9
+ - application/json
10
+ content-type:
11
+ - Application/JSON
12
+ authtoken:
13
+ - 563da3d1cfa3a8e75f6a09e89f542d67
14
+ response: !ruby/struct:VCR::Response
15
+ status: !ruby/struct:VCR::ResponseStatus
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ date:
20
+ - Fri, 30 Dec 2011 01:06:02 GMT
21
+ server:
22
+ - Apache-Coyote/1.1
23
+ content-type:
24
+ - application/json
25
+ vary:
26
+ - Accept-Encoding
27
+ transfer-encoding:
28
+ - chunked
29
+ body: ! '{"totalNumEntries":21,"adGroupCriterions":[{"type":"PRIMARY","response":{"message":"OK","code":200},"adGroupId":"6","keyword":"Bars
30
+ & Clubs","adGroupCriterionId":"164"},{"type":"PRIMARY","response":{"message":"OK","code":200},"adGroupId":"6","keyword":"Restaurants","adGroupCriterionId":"1722"},{"type":"PRIMARY","response":{"message":"OK","code":200},"adGroupId":"6","keyword":"Barbecue
31
+ Restaurants","adGroupCriterionId":"1724"},{"type":"PRIMARY","response":{"message":"OK","code":200},"adGroupId":"6","keyword":"Banquet
32
+ Rooms","adGroupCriterionId":"3495"},{"type":"PRIMARY","response":{"message":"OK","code":200},"adGroupId":"6","keyword":"Bars
33
+ & Pubs","adGroupCriterionId":"1686"},{"type":"PRIMARY","response":{"message":"OK","code":200},"adGroupId":"6","keyword":"Taverns","adGroupCriterionId":"1702"},{"type":"PRIMARY","response":{"message":"OK","code":200},"adGroupId":"6","keyword":"Traditional
34
+ American","adGroupCriterionId":"11190"},{"type":"SECONDARY","response":{"message":"OK","code":200},"adGroupId":"6","keyword":"Sushi","adGroupCriterionId":"11201"},{"type":"PRIMARY","response":{"message":"OK","code":200},"adGroupId":"6","keyword":"$","adGroupCriterionId":"11231"},{"type":"PRIMARY","response":{"message":"OK","code":200},"adGroupId":"6","keyword":"Brunch","adGroupCriterionId":"11240"}]}'
35
+ http_version: '1.1'
@@ -0,0 +1,33 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :post
5
+ uri: http://api.qa.citygrid.com:80/content/places/v2/mutate
6
+ body: ! '{"mutateOperationListResource":[{"operator":"ADD","operand":{"name":"Pi
7
+ on sunset in LAAAAAAAAAAAAAA","address_1":"Jackson 2102","address_2":"","city":"Los
8
+ Angeles","state":"California","postal_code":90025,"phone_number":3103333333,"website_url":"pi.com","primary_tag_id":3623,"bullet1":"Knoll
9
+ bullet 1","tagline":"my tagline","secondary_tags":"1776"}}]}'
10
+ headers:
11
+ accept:
12
+ - application/json
13
+ content-type:
14
+ - Application/JSON
15
+ authtoken:
16
+ - 92e47a6fae6c86044c1b697d85d7add8
17
+ response: !ruby/struct:VCR::Response
18
+ status: !ruby/struct:VCR::ResponseStatus
19
+ code: 200
20
+ message: OK
21
+ headers:
22
+ date:
23
+ - Fri, 30 Dec 2011 01:06:15 GMT
24
+ server:
25
+ - Apache-Coyote/1.1
26
+ content-type:
27
+ - application/json
28
+ vary:
29
+ - Accept-Encoding
30
+ transfer-encoding:
31
+ - chunked
32
+ body: ! '{"resources":[{"response":{"message":"OK","code":200},"listingId":904202040}]}'
33
+ http_version: '1.1'
@@ -0,0 +1,79 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :post
5
+ uri: http://api.qa.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
+ - 563da3d1cfa3a8e75f6a09e89f542d67
14
+ response: !ruby/struct:VCR::Response
15
+ status: !ruby/struct:VCR::ResponseStatus
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ date:
20
+ - Fri, 30 Dec 2011 01:06:05 GMT
21
+ server:
22
+ - Apache-Coyote/1.1
23
+ content-type:
24
+ - application/json
25
+ vary:
26
+ - Accept-Encoding
27
+ transfer-encoding:
28
+ - chunked
29
+ body: ! '{"request":{"campaignId":"786","period":"last30Days"},"response":{"code":200,"message":"OK"},"totalNumEntries":1,"callDetailsResources":[{"response":{"code":200,"message":"OK"},"campaignId":786,"campaignName":"CampaignRest1stTest-786","callDetails":[{"accountId":111,"accountName":"Enchiladas
30
+ Y Mas, Inc.","callId":"12ADCAB3FA5942D5BD85200DAA4C055E","callStartTime":1322775830000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"5124978784","duration":25,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
31
+ Y Mas, Inc.","callId":"F89838F633B643CE8A660285A81A9D91","callStartTime":1323187204000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"8066790115","duration":21,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
32
+ Y Mas, Inc.","callId":"657F4663AB0A437581C074F38F90B129","callStartTime":1324420988000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"5129185602","duration":48,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
33
+ Y Mas, Inc.","callId":"BFD3445200F64EDD9DD8F4A2A838F42D","callStartTime":1324481144000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"8066790115","duration":21,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
34
+ Y Mas, Inc.","callId":"1A5E9022F3ED46438403C419D0888DBF","callStartTime":1323531362000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"8066790115","duration":17,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
35
+ Y Mas, Inc.","callId":"43A0FE55C6B84CB584820BD2474F9495","callStartTime":1324727505000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"","duration":16,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
36
+ Y Mas, Inc.","callId":"A37A5F5BE7C44AAAABF6AF15415253E8","callStartTime":1324670052000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"5124191446","duration":67,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
37
+ Y Mas, Inc.","callId":"290623B05E994268BF998DC3A000D7CB","callStartTime":1324396351000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"","duration":46,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
38
+ Y Mas, Inc.","callId":"B5992670FE154F03AA5B7ED83126E6B3","callStartTime":1322846176000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"5126331212","duration":21,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
39
+ Y Mas, Inc.","callId":"1F08AC674B4E4611AD2515A875DBDD6E","callStartTime":1323207661000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"","duration":8,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
40
+ Y Mas, Inc.","callId":"C6A070D2D2294544A817588404AA4229","callStartTime":1323640826000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"5122286580","duration":0,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
41
+ Y Mas, Inc.","callId":"1539CEFCAB59474AA21BA9BB0E4D3D7D","callStartTime":1323876268000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"8066790115","duration":0,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
42
+ Y Mas, Inc.","callId":"D493D71D3EE5453086E4BD32663144E7","callStartTime":1323547023000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"5126659137","duration":10,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
43
+ Y Mas, Inc.","callId":"2D5F77A94B894CF495FB5C83BA21C26E","callStartTime":1323181615000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"5127861118","duration":39,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
44
+ Y Mas, Inc.","callId":"439BF2DA64BB4204AAF5F9AADA29C835","callStartTime":1323963549000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"5129185602","duration":30,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
45
+ Y Mas, Inc.","callId":"29E56E60C0F74F38B0E6FB105340E002","callStartTime":1323876244000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"8066790115","duration":0,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
46
+ Y Mas, Inc.","callId":"A8F1C018C8074D64BC5EA391DB2F5BDC","callStartTime":1324920090000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"5126194174","duration":0,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
47
+ Y Mas, Inc.","callId":"77CBAFB25B7540FD8A421B4444A2DB3B","callStartTime":1324745799000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"5127968208","duration":11,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
48
+ Y Mas, Inc.","callId":"9E148481969347D4A775A9229D766B49","callStartTime":1323789667000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"8066790115","duration":0,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
49
+ Y Mas, Inc.","callId":"978B1DA923114641BEFFB0880F2E2A98","callStartTime":1323357297000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"","duration":25,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
50
+ Y Mas, Inc.","callId":"21A21CBDE41241CC97ECED776F5B074D","callStartTime":1323789679000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"8066790115","duration":0,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
51
+ Y Mas, Inc.","callId":"52CBA12FEBCA43CCBD90C3DD826951FE","callStartTime":1324322226000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"","duration":0,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
52
+ Y Mas, Inc.","callId":"4E087A4571854412A650FEC16ACC6A90","callStartTime":1322750962000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"5127861118","duration":43,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
53
+ Y Mas, Inc.","callId":"104FC65DDA0F40E5B8531F58F2D27E96","callStartTime":1323291253000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"","duration":24,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
54
+ Y Mas, Inc.","callId":"336C33670AE5492F9C2FF5C1EDEF8F26","callStartTime":1322680630000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"","duration":37,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
55
+ Y Mas, Inc.","callId":"E02C35477CD7445686F40A77FC02D9FF","callStartTime":1324499372000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"5128282932","duration":21,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
56
+ Y Mas, Inc.","callId":"CF0B5C4135BB4BEA8E76A6553CAE9D8F","callStartTime":1324322205000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"","duration":0,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
57
+ Y Mas, Inc.","callId":"C50347F1330C4C00B0E2F3D3C1378197","callStartTime":1323876221000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"8066790115","duration":0,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
58
+ Y Mas, Inc.","callId":"BBC9B7056981414C9940F6282472168A","callStartTime":1323640910000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"5122286580","duration":0,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
59
+ Y Mas, Inc.","callId":"D3090087D59B45AAA74E7F197E17A9FF","callStartTime":1322761891000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"8066790115","duration":13,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
60
+ Y Mas, Inc.","callId":"DD8A35D9AFCA447BAF68D11C8F13EB5C","callStartTime":1323200390000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"5129187028","duration":233,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
61
+ Y Mas, Inc.","callId":"FAA58351421C481F8E976836422C1FBB","callStartTime":1323446032000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"8066790115","duration":34,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
62
+ Y Mas, Inc.","callId":"EA1D388DB4DF48BFB97F3D57E72A4E4C","callStartTime":1323386373000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"5128320013","duration":0,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
63
+ Y Mas, Inc.","callId":"CD7E221BAEDF489CA4CA95495C1ABA0A","callStartTime":1323789650000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"8066790115","duration":0,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
64
+ Y Mas, Inc.","callId":"3598953125454A3B938464078AC56E98","callStartTime":1323964059000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"8066790115","duration":26,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
65
+ Y Mas, Inc.","callId":"FB5F12788B8D4B01B931160AF4AA3A5F","callStartTime":1324154106000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"5124548701","duration":17,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
66
+ Y Mas, Inc.","callId":"D1AAEA7351F14DC589141A0E77E73020","callStartTime":1324687556000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"5124548701","duration":9,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
67
+ Y Mas, Inc.","callId":"124163A136544C769BF6047279377D26","callStartTime":1324134173000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"5126898625","duration":28,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
68
+ Y Mas, Inc.","callId":"BE0C25C8A2EB46529DAB094E252990EE","callStartTime":1325114868000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"5124614381","duration":11,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
69
+ Y Mas, Inc.","callId":"184E5E0C7D09419D95801CB567F98550","callStartTime":1323612923000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"5127960637","duration":29,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
70
+ Y Mas, Inc.","callId":"586B9865604C484CAC89D2D88C3E2E95","callStartTime":1322846363000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"5125523365","duration":18,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
71
+ Y Mas, Inc.","callId":"2EFE17BDD29E44C9B5E5B59FD15F53D2","callStartTime":1324686900000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"5124134037","duration":82,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
72
+ Y Mas, Inc.","callId":"0D53F7BF0351430CA0510D2673304922","callStartTime":1323531469000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"5126898625","duration":51,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
73
+ Y Mas, Inc.","callId":"41C956572C494F54AA72A2D14139F6AF","callStartTime":1323876151000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"8066790115","duration":0,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
74
+ Y Mas, Inc.","callId":"61B3160E54CC44639B570238ACE4F011","callStartTime":1323876487000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"8066790115","duration":0,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
75
+ Y Mas, Inc.","callId":"D5178E46076F40A7B1E6877C0018F2CC","callStartTime":1324576405000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"5125417773","duration":52,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
76
+ Y Mas, Inc.","callId":"D4CF93CBAA5D467583513F07D90C7A66","callStartTime":1324153943000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"5124548701","duration":86,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
77
+ Y Mas, Inc.","callId":"B2C73AA33ACD4718A8EF7E6A434FAEA2","callStartTime":1322660117000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"5128037243","duration":37,"rating":null,"classification":null,"notes":null,"audioUrl":""},{"accountId":111,"accountName":"Enchiladas
78
+ Y Mas, Inc.","callId":"3626AFB219084A2A89870616D087E089","callStartTime":1323876136000,"ringToNumber":"5124677100","trackableNumber":"5123716495","callerPhone":"8066790115","duration":0,"rating":null,"classification":null,"notes":null,"audioUrl":""}]}]}'
79
+ http_version: '1.1'
@@ -0,0 +1,32 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://api.qa.citygrid.com:80/content/places/v2/geocode/get?city=seattle&state=wa&streetAddress=720%203rd%20ave&zipCode=98007
6
+ body: !!null
7
+ headers:
8
+ accept:
9
+ - application/json
10
+ content-type:
11
+ - Application/JSON
12
+ authtoken:
13
+ - ''
14
+ response: !ruby/struct:VCR::Response
15
+ status: !ruby/struct:VCR::ResponseStatus
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ date:
20
+ - Fri, 30 Dec 2011 01:06:11 GMT
21
+ server:
22
+ - Apache-Coyote/1.1
23
+ content-type:
24
+ - application/json
25
+ vary:
26
+ - Accept-Encoding
27
+ transfer-encoding:
28
+ - chunked
29
+ body: ! '{"totalNumEntries":1,"geocodeResponse":[{"address":{"state":"WA","city":"Seattle","streetAddress":"720
30
+ 3rd Ave","zipCode":"98104-1868"},"geoAccuracy":"ADDRESS","postalConfidence":"APPROXIMATE","streetConfidence":"EXACT","lat":47.603618,"lon":-122.332203}],"message":"OK","searchAddress":"720
31
+ 3rd ave, seattle, wa 98007"}'
32
+ http_version: '1.1'