Starting on the details page
This commit is contained in:
@@ -22,6 +22,19 @@ module Wince::Yelp
|
||||
headers = HTTP::Headers{ "Authorization" => "Bearer " + @@token }
|
||||
response = HTTP::Client.get(uri, headers)
|
||||
end
|
||||
|
||||
def get_business_info(id : String)
|
||||
|
||||
uri = URI.new(
|
||||
scheme: "https",
|
||||
host: "api.yelp.com",
|
||||
path: "/v3/businesses/#{id}",
|
||||
query: params
|
||||
)
|
||||
headers = HTTP::Headers{ "Authorization" => "Bearer " + @@token }
|
||||
response = HTTP::Client.get(uri, headers)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
#response = Wince::Yelp.search_businesses("miss saigon", "94610")
|
||||
|
||||
Reference in New Issue
Block a user