penguyen1 / Padticular

1 stars 0 forks source link

AirBnB API -- returning only valuable data back to Search Component #40

Closed penguyen1 closed 8 years ago

penguyen1 commented 8 years ago

After using the data returned from the AirBnB listings search API (#25), I realized that the returned information was not informative nor specific enough to be rendered back to the user. Retrospectively, the AirBnB get listing info API (#39) returns a lot more informative and well-formatted data -- a win/win for the user, and me (the programmer)

As a result, I've decided to incorporate the two AirBnB API's by

// getting the price info from AirBnB's get listings search response
pricing_quote: {
  checkin: null,
  checkout: null,
  guests: 1,
  listing_currency: "EUR",
  localized_currency: "USD",
  localized_nightly_price: 53,
  localized_service_fee: 0,
  localized_total_price: 0,
  nightly_price: 51,
  service_fee: 0,
  total_price: 0
},

// getting the price info from AirBnB's get listing Info response 
price_formatted: "$600",
penguyen1 commented 8 years ago

Did this differently: