Sample Code

Here you will find 3 sample projects using our API with OAuth. The versions include iOS, Android, and Javascript. They all do the same thing; display a list of businesses after authenticating and retrieving data from the API. Pick the platform you want to develop for and you're on your way!


Android Sample

You can import this project into eclipse. There are also two libraries included that are required for OAuth use in android. You may need to reset the external JARs in your project under Java Build Path in your project Properties. Also, make sure to add your token and token secret (in JsonParser.java) generated from you account on this website.

 

iOS Sample

You can open this project with X-Code. Make sure to replace the token and token secret in the source files with your own generated from your account here. This is a basic list coming from our API.

 

Javascript Sample

This demo is web based for web based apps of all kinds, since they all tend to use Javascript. It generates a simple list from a JSON string generated by the API based on parameters passed in. Make sure to replace the token and token secret in the source code with your own from this website.

 

PHP Sample

This demo is for PHP developers creating their own back-end applications or APIs. It returns the JSON string generated by the API based on parameters passed in. Make sure to replace the token and token secret in the source code with your own from this website.