intelworx/tripican-api-client-php
Composer 安装命令:
composer require intelworx/tripican-api-client-php
包简介
The API client for Tripican.com's API
README 文档
README
This is a PHP client implementation for tripican.com API (V1).
How to Get API Key
Please send a message to bizdev[at]tripican[dot]com describing your use case, you message will be reviewed and you will be notified.
Client Usage
#!php
require_once '/path/to/TripicanV1Client.php';
use intelworx\tripican\apiclient\TripicanV1Client;
$config = array(
'api_consumer_key' => '---SOME-CONSUMER-KEY---',
'api_consumer_secret' => '----SOME-SECRET-----',
'api_host' => 'tripican.com', //or beta20.tripican.com
);
$apiClient = new TripicanV1Client();
//if you wish to debug responses.
$apiClient->debug(true);
//sample call
//short hand method transforms serviceResourceName to service/resource-name
//it knows resources that are expected to be called with POST,
//however to be safe, you may want to use the full call method for post
//e.g. $apiClient->post($path, $params);
$result = $apiClient->moviesShowtimes();
var_dump($result);
统计信息
- 总下载量: 25
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2015-04-10