Integration of Yelp in Android

I need to integrate yelp api into my android app. I have never done this, so I need help. I want to know how to start, that everything is required, etc.

I tried to implement this code https://github.com/Yelp/yelp-api/blob/master/v2/java/Yelp.java in android. It gives NoSuchMethodError in the string request.send ()

What could be the problem?

+6
source share
2 answers

To integrate Yelp into Android:

Step 1: Register on the Yelp website. You will need Yelp keys. Register here . Get access to the API.

Step 2: Scribe-1.2.1.jar should be written in your project. Get it here .

Step 3: Add these 2 files to your project: Yelp.java and YelpApi2.java .

Step 4: You can remove the main () method from Yelp.java and instead call the Yelp.search () function from your activity. Search () takes three arguments: term, latitude, and longitude. The term is what you want to search for (e.g. restaurants, bars, etc.).

Step 5: When you submit the request, you get a json response. Parse the answer to get the data. For more information on json response options, See This .

Follow these steps and you will be able to integrate with Yelp on your Android. See Api Documentation provided by Yelp.

Another Example I Learned: Yelp Example

+11
source

Register on the Yelp site first, and don’t go to click here

than clicking "Make API Access" and create your own authentication key. Replace these keys with a github demo, and then run it. Works.

0
source

Source: https://habr.com/ru/post/892659/


All Articles