neighborhoods/yelp-fusion
最新稳定版本:2.0.0
Composer 安装命令:
composer create-project neighborhoods/yelp-fusion
包简介
A library that interfaces with the Yelp Fusion (v3) API
关键字:
README 文档
README
A library that interfaces with the Yelp Fusion (v3) API.
Installation
Requirements
- PHP >= 5.6
- Yelp Fusion API credentials
Installation
composer require neighborhoods/yelp-fusion
Usage
Getting API key
Yelp Fusion API uses private API Keys to authenticate requests. In order to set up your access to Yelp Fusion API, you need to create an app with Yelp.
See Yelp's authentication documentation for instructions.
Search
$params = [ 'categories' => 'arts', 'latitude' => 41.879562, 'longitude' => -87.624205, 'radius' => 16093, ]; $yelpData = $this->yelp->search($params, $apiKey); $businesses = $yelpData->businesses;
See Yelp's business search documentation for the list of available search parameters and the shape of the results object.
统计信息
- 总下载量: 2.08k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-09-28