yelp-ios icon indicating copy to clipboard operation
yelp-ios copied to clipboard

Add business matches beta endpoints

Open kfarst opened this issue 6 years ago • 1 comments

Hey there! Not sure if you want to integrate this since they are beta endpoints, but I just had to fork and add methods for the business match API for my own purposes, and just thought I would offer it up as a PR.

The update adds two new public methods for each of the two endpoints:

- (void)findBusinessMatchesWithInfo:(NSDictionary *)info
     completionHandler:(YLPBusinessMatchCompletionHandler)completionHandler;

- (void)bestBusinessMatchWithInfo:(NSDictionary *)info
     completionHandler:(YLPBusinessMatchCompletionHandler)completionHandler;

I also added a new model type, YLPBusinessMatch, since the properties don't exactly line up with a YLPBusiness object. Unit tests are also added for each endpoint.

kfarst avatar Apr 07 '18 02:04 kfarst

@kfarst thanks for the PR, and sorry for the very long delay in response you experienced here.

Since this PR was filed a single, out-of-beta unified business match endpoint in the Fusion API was created and the 2 beta bizmatch endpoints marked as deprecated & scheduled for removal. Docs: https://www.yelp.com/developers/documentation/v3/business_match

If you're up for updating this to use the single out-of-beta endpoint we can move towards merging it in.

dan98765 avatar Mar 18 '19 03:03 dan98765