yelp

Yelp API HTTP Request Authorization Bearer

会有一股神秘感。 提交于 2019-12-11 15:26:29
问题 Good evening everyone. I'm a beginner to API's in general and need some help with Yelp's Fusion API. I think there is some error with my Authorization Variable/Header. I run the request and get a 404 error. Can someone provide some clarity? You can find more details on Yelp API on this link: https://www.yelp.com/developers/documentation/v3/business_search import requests url = 'https://api.yelp.com/v3/businesses/search/'; header = {'Authorization':'Bearer MYLONGTOKENx'} response = requests

Yelp API, OAuth and Angular with JSONP only works once

不问归期 提交于 2019-12-11 13:03:30
问题 So this question has been asked several times, but I believe I've finally boiled down exactly what goes wrong here. I'm using the Yelp API with Angular, which requires OAuth 1.0a to access. Like most people doing this type of implementation, I'm using the following code: .factory('YelpApi', ['$http', function ($http) { var randomString = function (length, chars) { var result = ''; for (var i = length; i > 0; --i) { result += chars[Math.round(Math.random() * (chars.length - 1))]; } return

cll parameters in Yelp API iOS

蓝咒 提交于 2019-12-11 12:09:52
问题 I am trying to integrate Yelp's search and business APIs into my app. However, i'm running into some issues. I want to give the yelp geocoder a businesses latitude and longitude. According to Yelps Developer website This is very vague and I don't really know what/ how to implement the cll parameters. Here is the yelp api i'm using I don't really know where/how to implement these cll parameters, so any help with that would be great. For the full API i'm using, you can access it here: https:/

load large JCON file in Python - Error = JSONDecodeError: Extra data

拟墨画扇 提交于 2019-12-11 04:14:27
问题 I am trying to load in python the file business.json from yelp academic data available for their academic challenge, see below (https://www.yelp.com/dataset/documentation/json) My Goal is to extract all restaurant and their ID to then find the one restaurant I am interested for. Once I have this restaurant id, I want to load review.json and extract all reviews for that given restaurant. Sadly I am stuck at the initial stage of landing the .json this is what business.json looks like: { //

Yelp API Android Integration [duplicate]

夙愿已清 提交于 2019-12-11 02:14:57
问题 This question already has answers here : How do I fix 'android.os.NetworkOnMainThreadException'? (55 answers) Closed 6 years ago . I am attempting to integrate with the Yelp API for Android. I keep getting fatal errors whenever I am trying to connect. 10-14 18:32:29.207: E/AndroidRuntime(7354): FATAL EXCEPTION: main 10-14 18:32:29.207: E/AndroidRuntime(7354): java.lang.RuntimeException: Unable to start activity ComponentInfo{cse.usf.edu.android/cse.usf.edu.android.HelloWorldActivity}: android

Yelp API OAuth - oauth_signature

流过昼夜 提交于 2019-12-10 22:53:40
问题 I am trying to use the Yelp API in a Swift iOS app, but am new to encryption. I understand that I am supposed to encrypt the signature with SHA1, but can't find good resources for doing this in Swift/Xcode. Additionally, the Yelp docs say I am supposed to pass the signature value as "The generated request signature, signed with the oauth_token_secret obtained". I don't understand what is meant by "signed with". Link to the docs here: Yelp Authentication Any help would be hugely appreciated.

OAuth with Android

半城伤御伤魂 提交于 2019-12-10 22:03:41
问题 I am attempting to access the Yelp API. I have obtained my keys and have read about 40 articles explaining what I need to do and I have attempted everything. The key and what not are valid. I am getting the following: 05-16 17:39:54.955: E/AndroidRuntime(538): java.lang.NoClassDefFoundError: oauth.signpost.commonshttp.CommonsHttpOAuthConsumer I have imported the commons-codec-1.6 jar, the signpost-commonshttp4-1.2.1.2.jar, and the signpost-core-1.2.1.2.jar. I am still getting the error

How to search local business by name, location in iOS?

∥☆過路亽.° 提交于 2019-12-09 23:47:28
问题 I am working on project in which we are displaying local business search. I am using YELP to search local business. As per YELP Documentation i have created query. But it gives result based on location only. I am trying with Google Place API but not getting desired result. My YELP request - http://api.yelp.com/v2/search/?term=restaurant&location=nyc&limit=20&offset=1 My Google Place API request - https://maps.googleapis.com/maps/api/place/textsearch/json?query=hotels+in+nyc&sensor=true&key

Integrating Yelp API v2 into iOS 7 app

谁都会走 提交于 2019-12-08 05:25:12
问题 I thought this would have been a bit of a more seamless process. I downloaded the yelp api example (https://github.com/Yelp/yelp-api/tree/master/v2/ios) and assumed I could just 'build and run' and see an example with a request sent out on a buttonPressed event. I've been reading here: How to integrate Yelp APi in iPhone application? and other places online but am getting a ton of errors when trying to integrate a basic test. I've signed up for an account, have an API v2 set of keys. A lot of

How to search local business by name, location in iOS?

萝らか妹 提交于 2019-12-04 18:11:53
I am working on project in which we are displaying local business search. I am using YELP to search local business. As per YELP Documentation i have created query. But it gives result based on location only. I am trying with Google Place API but not getting desired result. My YELP request - http://api.yelp.com/v2/search/?term=restaurant&location=nyc&limit=20&offset=1 My Google Place API request - https://maps.googleapis.com/maps/api/place/textsearch/json?query=hotels+in+nyc&sensor=true&key=AIzaSyCHwd5OgRXdeuTWV46SHdMLq2lXL20t22U How can i get result by business name & location as well using