seromenho/tripadvisor-review-express-api
最新稳定版本:v1.0
Composer 安装命令:
composer require seromenho/tripadvisor-review-express-api
包简介
Wrapper for the Tripadvisor Review Express API.
README 文档
README
Simple PHP Wrapper for the TripAdvisor Review Express API
Installation
You can intall it to your project easily through composer:
$ composer require seromenho/tripadvisor-review-express-api
Usage
<?php require "./vendor/autoload.php"; use ReviewExpressApi\ReviewExpressApi; $review = new ReviewExpressApi("some_key"); $body = array( array( "recipient" => "john@example.com", "location_id" => "h89575", "checkout" => "2014-12-31", "country" => "US" ), array( "partner_request_id" => "745C6BFF-F0C7-401F-A691-4407F78DC96C", "location_id" => "h89575", "recipient" => "mme.toutlemonde@example.fr", "checkin" => "2014-11-07", "checkout"=> "2014-11-12", "language"=> "fr", "country" => "FR" ) ); try { $response = $review->create($body); } catch (RequestException $e) { echo $e->getRequest(); if ($e->hasResponse()) { echo $e->getResponse(); } }
统计信息
- 总下载量: 24
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-07-08