Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add business_match #27

Open
BitPopCoin opened this issue Aug 20, 2018 · 0 comments
Open

Add business_match #27

BitPopCoin opened this issue Aug 20, 2018 · 0 comments

Comments

@BitPopCoin
Copy link

BitPopCoin commented Aug 20, 2018

Can business_match please be added?

 /**
 * Fetches results from the Business Match API.
 *
 * @param    array    $parameters
 *
 * @return   stdClass
 * @throws   Stevenmaguire\Yelp\Exception\HttpException
 * @link     https://www.yelp.com/developers/documentation/v3/business_match
 */
public function getBusinessesMatchResults($parameters = [])
{

    $path = $this->appendParametersToUrl('/v3/businesses/matches', $parameters);
    $request = $this->getRequest('GET', $path);

    return $this->processRequest($request);
}

$yelpparameters = [
'name' => substr('Taco Bell', 0, 64),
'address1' => substr('2308 E Riverside Dr', 0, 64),
'address2' => substr('', 0, 64),
'address3' => substr('', 0, 64),
'city' => substr('Austin', 0, 64),
'state' => 'TX',
'zip_code' => '78741',
'country' => 'US',
//'latitude' => '',
//'longitude' => '',
//'phone' => substr('', 0, 32),
//'yelp_business_id' => '',
'limit' => 10,
'match_threshold' => 'default',
 ];

 $yelpresults = $yelpclient->getBusinessesMatchResults($yelpparameters);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant