nineflats-api 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,6 +3,7 @@ module Nineflats
3
3
  attr_accessor :user_text, :place_text, :place_stars, :language
4
4
 
5
5
  def initialize(json)
6
+ @raw_data = json
6
7
  review = json.first[1]
7
8
 
8
9
  @user_text = review["user_text"]
@@ -10,9 +11,5 @@ module Nineflats
10
11
  @place_stars = review["place_stars"]
11
12
  @language = review["language"]
12
13
  end
13
-
14
- def self.api_call(slug)
15
- base_url + "/places/#{slug}/reviews?client_id=#{Nineflats::Base.client_app_key}"
16
- end
17
14
  end
18
15
  end
@@ -2,43 +2,39 @@ module Nineflats
2
2
  class User < Base
3
3
  attr_accessor :name, :slug, :user_photo_url, :favorites,
4
4
  :self_url, :favorites_url, :full_url
5
-
5
+
6
6
  def initialize(json)
7
+ @raw_data = json
7
8
  user = json.first[1]
8
-
9
+
9
10
  @name = user["name"]
10
11
  @slug = user["slug"]
11
12
  @user_photo_url = user["user_photo_url"]
12
-
13
+
13
14
  if user["links"]
14
15
  @self_url = Nineflats::Base.object_link("self", user["links"])
15
16
  @full_url = Nineflats::Base.object_link("full", user["links"])
16
17
  @favorites_url = Nineflats::Base.object_link("favorites", user["links"])
17
18
  end
18
19
  end
19
-
20
- def favorites
21
- return @favorites if @favorites
22
-
23
- json = Helpers.get_data(favorites_url)
24
-
25
- if json && json["places"]
26
- @favorites = json["places"].collect do |place_hash|
27
- Place.new(place_hash)
28
- end
29
- end
30
- end
31
20
 
32
- def self.bookings(user_id)
33
- Client.bookings(user_id)
21
+ def bookings
22
+ Client.user_bookings(self.slug)
34
23
  end
35
24
 
36
- def self.fetch(slug)
37
- User.new(Helpers.get_data(User.api_call(slug)))
25
+ def favorites(options={})
26
+ unless options[:reload]
27
+ return @favorites if @favorites
28
+ end
29
+ @favorites = Client.user_favorites(self.slug)
38
30
  end
39
-
40
- def self.api_call(slug)
41
- base_url + "/users/#{slug}?client_id=#{Nineflats::Base.client_app_key}"
31
+
32
+ def self.find_by_slug(slug)
33
+ Client.user(slug)
42
34
  end
35
+
36
+ # def self.bookings(user_id)
37
+ # Client.bookings(user_id)
38
+ # end
43
39
  end
44
40
  end
@@ -1,5 +1,5 @@
1
1
  module Nineflats
2
2
  module Api
3
- VERSION = "0.0.8"
3
+ VERSION = "0.0.9"
4
4
  end
5
5
  end
@@ -0,0 +1,25 @@
1
+ require 'spec_helper'
2
+
3
+ describe Nineflats::Client do
4
+
5
+ describe "requesting a user" do
6
+ before(:each) do
7
+ Nineflats::Client.connect('client_app_key', 'client_app_secret')
8
+ FakeWeb.register_uri(:get,
9
+ "http://www.9flats.com/api/v1/users/jana-k-1?client_id=client_app_key",
10
+ :body => Fixtures.user
11
+ )
12
+ end
13
+
14
+ it "should succeed" do
15
+ user = Nineflats::Client.user('jana-k-1')
16
+ user.class.should == Nineflats::User
17
+ user.name.should == 'Jana K.'
18
+ user.slug.should == "jana-k-1"
19
+ user.user_photo_url.should == "http://img3.9flats.com/users/photos/11405-1311181665/medium.jpg"
20
+ user.self_url.should == "http://api.9flats.com/api/v1/users/jana-k-1?client_id=client_app_key"
21
+ user.full_url.should == "http://www.9flats.com/users/jana-k-1"
22
+ user.favorites_url.should == "http://api.9flats.com/api/v1/users/jana-k-1/favorites?client_id=client_app_key"
23
+ end
24
+ end
25
+ end
@@ -32,7 +32,7 @@
32
32
  "place_type": "Entire place",
33
33
  "links": [{
34
34
  "rel": "self",
35
- "href": "http://api.9flats.com/api/v1/places/apt-no-centro-histrico-de-lisboa?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
35
+ "href": "http://api.9flats.com/api/v1/places/apt-no-centro-histrico-de-lisboa?client_id=client_app_key"
36
36
  },
37
37
  {
38
38
  "rel": "full",
@@ -40,23 +40,23 @@
40
40
  },
41
41
  {
42
42
  "rel": "photos",
43
- "href": "http://api.9flats.com/api/v1/places/apt-no-centro-histrico-de-lisboa/photos?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
43
+ "href": "http://api.9flats.com/api/v1/places/apt-no-centro-histrico-de-lisboa/photos?client_id=client_app_key"
44
44
  },
45
45
  {
46
46
  "rel": "prices",
47
- "href": "http://api.9flats.com/api/v1/places/apt-no-centro-histrico-de-lisboa/prices?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
47
+ "href": "http://api.9flats.com/api/v1/places/apt-no-centro-histrico-de-lisboa/prices?client_id=client_app_key"
48
48
  },
49
49
  {
50
50
  "rel": "reviews",
51
- "href": "http://api.9flats.com/api/v1/places/apt-no-centro-histrico-de-lisboa/reviews?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
51
+ "href": "http://api.9flats.com/api/v1/places/apt-no-centro-histrico-de-lisboa/reviews?client_id=client_app_key"
52
52
  },
53
53
  {
54
54
  "rel": "calendar: current month",
55
- "href": "http://api.9flats.com/api/v1/places/apt-no-centro-histrico-de-lisboa/calendar/2011/10?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
55
+ "href": "http://api.9flats.com/api/v1/places/apt-no-centro-histrico-de-lisboa/calendar/2011/10?client_id=client_app_key"
56
56
  },
57
57
  {
58
58
  "rel": "calendar: next month",
59
- "href": "http://api.9flats.com/api/v1/places/apt-no-centro-histrico-de-lisboa/calendar/2011/11?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
59
+ "href": "http://api.9flats.com/api/v1/places/apt-no-centro-histrico-de-lisboa/calendar/2011/11?client_id=client_app_key"
60
60
  }],
61
61
  "host": {
62
62
  "name": "Paulo M.",
@@ -38,10 +38,10 @@
38
38
  },
39
39
  "links": [{
40
40
  "rel": "self",
41
- "href": "http://www.9flats.com/api/v1/places/harmony-villas-close-to-the-sea/calendar/2011/10?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
41
+ "href": "http://www.9flats.com/api/v1/places/harmony-villas-close-to-the-sea/calendar/2011/10?client_id=client_app_key"
42
42
  },
43
43
  {
44
44
  "rel": "calendar: next month",
45
- "href": "http://www.9flats.com/api/v1/places/harmony-villas-close-to-the-sea/calendar/2011/11?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
45
+ "href": "http://www.9flats.com/api/v1/places/harmony-villas-close-to-the-sea/calendar/2011/11?client_id=client_app_key"
46
46
  }]
47
47
  }
@@ -158,6 +158,6 @@
158
158
  "total_entries": 22,
159
159
  "links": [{
160
160
  "rel": "self",
161
- "href": "http://api.9flats.com/api/v1/places/harmony-villas-close-to-the-sea/photos?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
161
+ "href": "http://api.9flats.com/api/v1/places/harmony-villas-close-to-the-sea/photos?client_id=client_app_key"
162
162
  }]
163
163
  }
@@ -24,6 +24,6 @@
24
24
  },
25
25
  "links": [{
26
26
  "rel": "self",
27
- "href": "http://api.9flats.com/api/v1/places/harmony-villas-close-to-the-sea/prices?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
27
+ "href": "http://api.9flats.com/api/v1/places/harmony-villas-close-to-the-sea/prices?client_id=client_app_key"
28
28
  }]
29
29
  }
@@ -18,6 +18,6 @@
18
18
  }],
19
19
  "links": [{
20
20
  "rel": "self",
21
- "href": "http://api.9flats.com/api/v1/places/harmony-villas-close-to-the-sea/reviews?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
21
+ "href": "http://api.9flats.com/api/v1/places/harmony-villas-close-to-the-sea/reviews?client_id=client_app_key"
22
22
  }]
23
23
  }
@@ -37,7 +37,7 @@
37
37
  "place_type": "Entire place",
38
38
  "links": [{
39
39
  "rel": "self",
40
- "href": "http://api.9flats.com/api/v1/places/splendida-villa-toscana-?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
40
+ "href": "http://api.9flats.com/api/v1/places/splendida-villa-toscana-?client_id=client_app_key"
41
41
  },
42
42
  {
43
43
  "rel": "full",
@@ -45,23 +45,23 @@
45
45
  },
46
46
  {
47
47
  "rel": "photos",
48
- "href": "http://api.9flats.com/api/v1/places/splendida-villa-toscana-/photos?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
48
+ "href": "http://api.9flats.com/api/v1/places/splendida-villa-toscana-/photos?client_id=client_app_key"
49
49
  },
50
50
  {
51
51
  "rel": "prices",
52
- "href": "http://api.9flats.com/api/v1/places/splendida-villa-toscana-/prices?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
52
+ "href": "http://api.9flats.com/api/v1/places/splendida-villa-toscana-/prices?client_id=client_app_key"
53
53
  },
54
54
  {
55
55
  "rel": "reviews",
56
- "href": "http://api.9flats.com/api/v1/places/splendida-villa-toscana-/reviews?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
56
+ "href": "http://api.9flats.com/api/v1/places/splendida-villa-toscana-/reviews?client_id=client_app_key"
57
57
  },
58
58
  {
59
59
  "rel": "calendar: current month",
60
- "href": "http://api.9flats.com/api/v1/places/splendida-villa-toscana-/calendar/2011/10?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
60
+ "href": "http://api.9flats.com/api/v1/places/splendida-villa-toscana-/calendar/2011/10?client_id=client_app_key"
61
61
  },
62
62
  {
63
63
  "rel": "calendar: next month",
64
- "href": "http://api.9flats.com/api/v1/places/splendida-villa-toscana-/calendar/2011/11?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
64
+ "href": "http://api.9flats.com/api/v1/places/splendida-villa-toscana-/calendar/2011/11?client_id=client_app_key"
65
65
  }],
66
66
  "host": {
67
67
  "name": "ANTONINO R.",
@@ -103,7 +103,7 @@
103
103
  "place_type": "Entire place",
104
104
  "links": [{
105
105
  "rel": "self",
106
- "href": "http://api.9flats.com/api/v1/places/toscana-siena-e-la-val-di-merse-?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
106
+ "href": "http://api.9flats.com/api/v1/places/toscana-siena-e-la-val-di-merse-?client_id=client_app_key"
107
107
  },
108
108
  {
109
109
  "rel": "full",
@@ -111,23 +111,23 @@
111
111
  },
112
112
  {
113
113
  "rel": "photos",
114
- "href": "http://api.9flats.com/api/v1/places/toscana-siena-e-la-val-di-merse-/photos?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
114
+ "href": "http://api.9flats.com/api/v1/places/toscana-siena-e-la-val-di-merse-/photos?client_id=client_app_key"
115
115
  },
116
116
  {
117
117
  "rel": "prices",
118
- "href": "http://api.9flats.com/api/v1/places/toscana-siena-e-la-val-di-merse-/prices?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
118
+ "href": "http://api.9flats.com/api/v1/places/toscana-siena-e-la-val-di-merse-/prices?client_id=client_app_key"
119
119
  },
120
120
  {
121
121
  "rel": "reviews",
122
- "href": "http://api.9flats.com/api/v1/places/toscana-siena-e-la-val-di-merse-/reviews?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
122
+ "href": "http://api.9flats.com/api/v1/places/toscana-siena-e-la-val-di-merse-/reviews?client_id=client_app_key"
123
123
  },
124
124
  {
125
125
  "rel": "calendar: current month",
126
- "href": "http://api.9flats.com/api/v1/places/toscana-siena-e-la-val-di-merse-/calendar/2011/10?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
126
+ "href": "http://api.9flats.com/api/v1/places/toscana-siena-e-la-val-di-merse-/calendar/2011/10?client_id=client_app_key"
127
127
  },
128
128
  {
129
129
  "rel": "calendar: next month",
130
- "href": "http://api.9flats.com/api/v1/places/toscana-siena-e-la-val-di-merse-/calendar/2011/11?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
130
+ "href": "http://api.9flats.com/api/v1/places/toscana-siena-e-la-val-di-merse-/calendar/2011/11?client_id=client_app_key"
131
131
  }],
132
132
  "host": {
133
133
  "name": "Ilaria B.",
@@ -169,7 +169,7 @@
169
169
  "place_type": "Entire place",
170
170
  "links": [{
171
171
  "rel": "self",
172
- "href": "http://api.9flats.com/api/v1/places/podere-incrociati-?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
172
+ "href": "http://api.9flats.com/api/v1/places/podere-incrociati-?client_id=client_app_key"
173
173
  },
174
174
  {
175
175
  "rel": "full",
@@ -177,23 +177,23 @@
177
177
  },
178
178
  {
179
179
  "rel": "photos",
180
- "href": "http://api.9flats.com/api/v1/places/podere-incrociati-/photos?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
180
+ "href": "http://api.9flats.com/api/v1/places/podere-incrociati-/photos?client_id=client_app_key"
181
181
  },
182
182
  {
183
183
  "rel": "prices",
184
- "href": "http://api.9flats.com/api/v1/places/podere-incrociati-/prices?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
184
+ "href": "http://api.9flats.com/api/v1/places/podere-incrociati-/prices?client_id=client_app_key"
185
185
  },
186
186
  {
187
187
  "rel": "reviews",
188
- "href": "http://api.9flats.com/api/v1/places/podere-incrociati-/reviews?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
188
+ "href": "http://api.9flats.com/api/v1/places/podere-incrociati-/reviews?client_id=client_app_key"
189
189
  },
190
190
  {
191
191
  "rel": "calendar: current month",
192
- "href": "http://api.9flats.com/api/v1/places/podere-incrociati-/calendar/2011/10?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
192
+ "href": "http://api.9flats.com/api/v1/places/podere-incrociati-/calendar/2011/10?client_id=client_app_key"
193
193
  },
194
194
  {
195
195
  "rel": "calendar: next month",
196
- "href": "http://api.9flats.com/api/v1/places/podere-incrociati-/calendar/2011/11?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
196
+ "href": "http://api.9flats.com/api/v1/places/podere-incrociati-/calendar/2011/11?client_id=client_app_key"
197
197
  }],
198
198
  "host": {
199
199
  "name": "ANTONINO R.",
@@ -235,7 +235,7 @@
235
235
  "place_type": "Entire place",
236
236
  "links": [{
237
237
  "rel": "self",
238
- "href": "http://api.9flats.com/api/v1/places/podere-incrociati-casa-indipendente?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
238
+ "href": "http://api.9flats.com/api/v1/places/podere-incrociati-casa-indipendente?client_id=client_app_key"
239
239
  },
240
240
  {
241
241
  "rel": "full",
@@ -243,23 +243,23 @@
243
243
  },
244
244
  {
245
245
  "rel": "photos",
246
- "href": "http://api.9flats.com/api/v1/places/podere-incrociati-casa-indipendente/photos?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
246
+ "href": "http://api.9flats.com/api/v1/places/podere-incrociati-casa-indipendente/photos?client_id=client_app_key"
247
247
  },
248
248
  {
249
249
  "rel": "prices",
250
- "href": "http://api.9flats.com/api/v1/places/podere-incrociati-casa-indipendente/prices?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
250
+ "href": "http://api.9flats.com/api/v1/places/podere-incrociati-casa-indipendente/prices?client_id=client_app_key"
251
251
  },
252
252
  {
253
253
  "rel": "reviews",
254
- "href": "http://api.9flats.com/api/v1/places/podere-incrociati-casa-indipendente/reviews?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
254
+ "href": "http://api.9flats.com/api/v1/places/podere-incrociati-casa-indipendente/reviews?client_id=client_app_key"
255
255
  },
256
256
  {
257
257
  "rel": "calendar: current month",
258
- "href": "http://api.9flats.com/api/v1/places/podere-incrociati-casa-indipendente/calendar/2011/10?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
258
+ "href": "http://api.9flats.com/api/v1/places/podere-incrociati-casa-indipendente/calendar/2011/10?client_id=client_app_key"
259
259
  },
260
260
  {
261
261
  "rel": "calendar: next month",
262
- "href": "http://api.9flats.com/api/v1/places/podere-incrociati-casa-indipendente/calendar/2011/11?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
262
+ "href": "http://api.9flats.com/api/v1/places/podere-incrociati-casa-indipendente/calendar/2011/11?client_id=client_app_key"
263
263
  }],
264
264
  "host": {
265
265
  "name": "ANTONINO R.",
@@ -301,7 +301,7 @@
301
301
  "place_type": "Private room",
302
302
  "links": [{
303
303
  "rel": "self",
304
- "href": "http://api.9flats.com/api/v1/places/agriturismo-amina?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
304
+ "href": "http://api.9flats.com/api/v1/places/agriturismo-amina?client_id=client_app_key"
305
305
  },
306
306
  {
307
307
  "rel": "full",
@@ -309,23 +309,23 @@
309
309
  },
310
310
  {
311
311
  "rel": "photos",
312
- "href": "http://api.9flats.com/api/v1/places/agriturismo-amina/photos?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
312
+ "href": "http://api.9flats.com/api/v1/places/agriturismo-amina/photos?client_id=client_app_key"
313
313
  },
314
314
  {
315
315
  "rel": "prices",
316
- "href": "http://api.9flats.com/api/v1/places/agriturismo-amina/prices?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
316
+ "href": "http://api.9flats.com/api/v1/places/agriturismo-amina/prices?client_id=client_app_key"
317
317
  },
318
318
  {
319
319
  "rel": "reviews",
320
- "href": "http://api.9flats.com/api/v1/places/agriturismo-amina/reviews?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
320
+ "href": "http://api.9flats.com/api/v1/places/agriturismo-amina/reviews?client_id=client_app_key"
321
321
  },
322
322
  {
323
323
  "rel": "calendar: current month",
324
- "href": "http://api.9flats.com/api/v1/places/agriturismo-amina/calendar/2011/10?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
324
+ "href": "http://api.9flats.com/api/v1/places/agriturismo-amina/calendar/2011/10?client_id=client_app_key"
325
325
  },
326
326
  {
327
327
  "rel": "calendar: next month",
328
- "href": "http://api.9flats.com/api/v1/places/agriturismo-amina/calendar/2011/11?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
328
+ "href": "http://api.9flats.com/api/v1/places/agriturismo-amina/calendar/2011/11?client_id=client_app_key"
329
329
  }],
330
330
  "host": {
331
331
  "name": "Agriturismo Amina M.",
@@ -367,7 +367,7 @@
367
367
  "place_type": "Entire place",
368
368
  "links": [{
369
369
  "rel": "self",
370
- "href": "http://api.9flats.com/api/v1/places/villa-righino?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
370
+ "href": "http://api.9flats.com/api/v1/places/villa-righino?client_id=client_app_key"
371
371
  },
372
372
  {
373
373
  "rel": "full",
@@ -375,23 +375,23 @@
375
375
  },
376
376
  {
377
377
  "rel": "photos",
378
- "href": "http://api.9flats.com/api/v1/places/villa-righino/photos?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
378
+ "href": "http://api.9flats.com/api/v1/places/villa-righino/photos?client_id=client_app_key"
379
379
  },
380
380
  {
381
381
  "rel": "prices",
382
- "href": "http://api.9flats.com/api/v1/places/villa-righino/prices?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
382
+ "href": "http://api.9flats.com/api/v1/places/villa-righino/prices?client_id=client_app_key"
383
383
  },
384
384
  {
385
385
  "rel": "reviews",
386
- "href": "http://api.9flats.com/api/v1/places/villa-righino/reviews?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
386
+ "href": "http://api.9flats.com/api/v1/places/villa-righino/reviews?client_id=client_app_key"
387
387
  },
388
388
  {
389
389
  "rel": "calendar: current month",
390
- "href": "http://api.9flats.com/api/v1/places/villa-righino/calendar/2011/10?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
390
+ "href": "http://api.9flats.com/api/v1/places/villa-righino/calendar/2011/10?client_id=client_app_key"
391
391
  },
392
392
  {
393
393
  "rel": "calendar: next month",
394
- "href": "http://api.9flats.com/api/v1/places/villa-righino/calendar/2011/11?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
394
+ "href": "http://api.9flats.com/api/v1/places/villa-righino/calendar/2011/11?client_id=client_app_key"
395
395
  }],
396
396
  "host": {
397
397
  "name": "Lucia C.",
@@ -433,7 +433,7 @@
433
433
  "place_type": "Entire place",
434
434
  "links": [{
435
435
  "rel": "self",
436
- "href": "http://api.9flats.com/api/v1/places/tre-madonne-del-lago?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
436
+ "href": "http://api.9flats.com/api/v1/places/tre-madonne-del-lago?client_id=client_app_key"
437
437
  },
438
438
  {
439
439
  "rel": "full",
@@ -441,23 +441,23 @@
441
441
  },
442
442
  {
443
443
  "rel": "photos",
444
- "href": "http://api.9flats.com/api/v1/places/tre-madonne-del-lago/photos?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
444
+ "href": "http://api.9flats.com/api/v1/places/tre-madonne-del-lago/photos?client_id=client_app_key"
445
445
  },
446
446
  {
447
447
  "rel": "prices",
448
- "href": "http://api.9flats.com/api/v1/places/tre-madonne-del-lago/prices?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
448
+ "href": "http://api.9flats.com/api/v1/places/tre-madonne-del-lago/prices?client_id=client_app_key"
449
449
  },
450
450
  {
451
451
  "rel": "reviews",
452
- "href": "http://api.9flats.com/api/v1/places/tre-madonne-del-lago/reviews?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
452
+ "href": "http://api.9flats.com/api/v1/places/tre-madonne-del-lago/reviews?client_id=client_app_key"
453
453
  },
454
454
  {
455
455
  "rel": "calendar: current month",
456
- "href": "http://api.9flats.com/api/v1/places/tre-madonne-del-lago/calendar/2011/10?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
456
+ "href": "http://api.9flats.com/api/v1/places/tre-madonne-del-lago/calendar/2011/10?client_id=client_app_key"
457
457
  },
458
458
  {
459
459
  "rel": "calendar: next month",
460
- "href": "http://api.9flats.com/api/v1/places/tre-madonne-del-lago/calendar/2011/11?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
460
+ "href": "http://api.9flats.com/api/v1/places/tre-madonne-del-lago/calendar/2011/11?client_id=client_app_key"
461
461
  }],
462
462
  "host": {
463
463
  "name": "Antonello B.",
@@ -499,7 +499,7 @@
499
499
  "place_type": "Private room",
500
500
  "links": [{
501
501
  "rel": "self",
502
- "href": "http://api.9flats.com/api/v1/places/agriturismo-amina-2?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
502
+ "href": "http://api.9flats.com/api/v1/places/agriturismo-amina-2?client_id=client_app_key"
503
503
  },
504
504
  {
505
505
  "rel": "full",
@@ -507,23 +507,23 @@
507
507
  },
508
508
  {
509
509
  "rel": "photos",
510
- "href": "http://api.9flats.com/api/v1/places/agriturismo-amina-2/photos?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
510
+ "href": "http://api.9flats.com/api/v1/places/agriturismo-amina-2/photos?client_id=client_app_key"
511
511
  },
512
512
  {
513
513
  "rel": "prices",
514
- "href": "http://api.9flats.com/api/v1/places/agriturismo-amina-2/prices?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
514
+ "href": "http://api.9flats.com/api/v1/places/agriturismo-amina-2/prices?client_id=client_app_key"
515
515
  },
516
516
  {
517
517
  "rel": "reviews",
518
- "href": "http://api.9flats.com/api/v1/places/agriturismo-amina-2/reviews?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
518
+ "href": "http://api.9flats.com/api/v1/places/agriturismo-amina-2/reviews?client_id=client_app_key"
519
519
  },
520
520
  {
521
521
  "rel": "calendar: current month",
522
- "href": "http://api.9flats.com/api/v1/places/agriturismo-amina-2/calendar/2011/10?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
522
+ "href": "http://api.9flats.com/api/v1/places/agriturismo-amina-2/calendar/2011/10?client_id=client_app_key"
523
523
  },
524
524
  {
525
525
  "rel": "calendar: next month",
526
- "href": "http://api.9flats.com/api/v1/places/agriturismo-amina-2/calendar/2011/11?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
526
+ "href": "http://api.9flats.com/api/v1/places/agriturismo-amina-2/calendar/2011/11?client_id=client_app_key"
527
527
  }],
528
528
  "host": {
529
529
  "name": "Agriturismo Amina M.",
@@ -565,7 +565,7 @@
565
565
  "place_type": "Entire place",
566
566
  "links": [{
567
567
  "rel": "self",
568
- "href": "http://api.9flats.com/api/v1/places/la-colombaia?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
568
+ "href": "http://api.9flats.com/api/v1/places/la-colombaia?client_id=client_app_key"
569
569
  },
570
570
  {
571
571
  "rel": "full",
@@ -573,23 +573,23 @@
573
573
  },
574
574
  {
575
575
  "rel": "photos",
576
- "href": "http://api.9flats.com/api/v1/places/la-colombaia/photos?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
576
+ "href": "http://api.9flats.com/api/v1/places/la-colombaia/photos?client_id=client_app_key"
577
577
  },
578
578
  {
579
579
  "rel": "prices",
580
- "href": "http://api.9flats.com/api/v1/places/la-colombaia/prices?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
580
+ "href": "http://api.9flats.com/api/v1/places/la-colombaia/prices?client_id=client_app_key"
581
581
  },
582
582
  {
583
583
  "rel": "reviews",
584
- "href": "http://api.9flats.com/api/v1/places/la-colombaia/reviews?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
584
+ "href": "http://api.9flats.com/api/v1/places/la-colombaia/reviews?client_id=client_app_key"
585
585
  },
586
586
  {
587
587
  "rel": "calendar: current month",
588
- "href": "http://api.9flats.com/api/v1/places/la-colombaia/calendar/2011/10?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
588
+ "href": "http://api.9flats.com/api/v1/places/la-colombaia/calendar/2011/10?client_id=client_app_key"
589
589
  },
590
590
  {
591
591
  "rel": "calendar: next month",
592
- "href": "http://api.9flats.com/api/v1/places/la-colombaia/calendar/2011/11?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
592
+ "href": "http://api.9flats.com/api/v1/places/la-colombaia/calendar/2011/11?client_id=client_app_key"
593
593
  }],
594
594
  "host": {
595
595
  "name": "Nicola G.",
@@ -599,7 +599,7 @@
599
599
  }],
600
600
  "links": [{
601
601
  "rel": "self",
602
- "href": "http://api.9flats.com/api/v1/places?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S&search[amenities]=&search[bb_ne]=&search[bb_sw]=&search[currency]=USD&search[end_date]=&search[exclude_place_id]=&search[lat]=43.3186614&search[lng]=11.3305135&search[number_of_bathrooms]=0&search[number_of_bedrooms]=0&search[number_of_beds]=3&search[page]=1&search[place_type]=&search[price_max]=&search[price_min]=&search[query]=siena&search[radius]=20&search[sort_by]=top_ranking&search[start_date]=&search[woeid]="
602
+ "href": "http://api.9flats.com/api/v1/places?client_id=client_app_key&search[amenities]=&search[bb_ne]=&search[bb_sw]=&search[currency]=USD&search[end_date]=&search[exclude_place_id]=&search[lat]=43.3186614&search[lng]=11.3305135&search[number_of_bathrooms]=0&search[number_of_bedrooms]=0&search[number_of_beds]=3&search[page]=1&search[place_type]=&search[price_max]=&search[price_min]=&search[query]=siena&search[radius]=20&search[sort_by]=top_ranking&search[start_date]=&search[woeid]="
603
603
  },
604
604
  {
605
605
  "rel": "full",
@@ -607,6 +607,6 @@
607
607
  },
608
608
  {
609
609
  "rel": "next_page",
610
- "href": "http://api.9flats.com/api/v1/places?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S&search[amenities]=&search[bb_ne]=&search[bb_sw]=&search[currency]=USD&search[end_date]=&search[exclude_place_id]=&search[lat]=43.3186614&search[lng]=11.3305135&search[number_of_bathrooms]=0&search[number_of_bedrooms]=0&search[number_of_beds]=3&search[page]=2&search[place_type]=&search[price_max]=&search[price_min]=&search[query]=siena&search[radius]=20&search[sort_by]=top_ranking&search[start_date]=&search[woeid]="
610
+ "href": "http://api.9flats.com/api/v1/places?client_id=client_app_key&search[amenities]=&search[bb_ne]=&search[bb_sw]=&search[currency]=USD&search[end_date]=&search[exclude_place_id]=&search[lat]=43.3186614&search[lng]=11.3305135&search[number_of_bathrooms]=0&search[number_of_bedrooms]=0&search[number_of_beds]=3&search[page]=2&search[place_type]=&search[price_max]=&search[price_min]=&search[query]=siena&search[radius]=20&search[sort_by]=top_ranking&search[start_date]=&search[woeid]="
611
611
  }]
612
612
  }