Login   Register  
PHP Classes
elePHPant
Icontem

File: README.md

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Egor Gumenuk  >  Yelp  >  README.md  >  Download  
File: README.md
Role: Documentation
Content type: text/plain
Description: Documentation
Class: Yelp
Retrieve information from places with the Yelp API
Author: By
Last change:
Date: 1 year ago
Size: 451 bytes
 

Contents

Class file image Download
Based on https://github.com/Yelp/yelp-api/tree/master/v2/php

# Usage #

```php
<?php
$config = array(
  'consumer_key'    => YOUR_CONSUMER_KEY,
  'consumer_secret' => YOUR_CONSUMER_SECRET,
  'token'           => YOUR_TOKEN,
  'token_secret'    => YOUR_TOKEN_SECRET
);

// Create yelp business api driver
$yelp = new Yelp($config);

// Returns json data if request is successful else throws YelpException
$data = $yelp->get('some-business-name');
```