eziteq/eziteq-api_php
最新稳定版本:v1.0.0
Composer 安装命令:
composer require eziteq/eziteq-api_php
包简介
PHP API Wrapper
README 文档
README
#Eziteq
A PHP 5.3+ wrapper for Eziteq API requests.
##Installation You can install EziteqAPI_PHP via composer or by downloading the source.
Via Composer:
EziteqAPI_PHP is available on the Packagist as the eziteq/eziteq-api_php package.
{
"require": {
"eziteq/eziteq-api_php": "{version}"
}
}
Via ZIP file:
Click here to download the source (.zip) which includes all dependencies.
Once you download the library, move the EziteqAPI_PHP folder to your project directory and then include the wrapper file:
require '/path/to/EziteqAPI_PHP/EziteqAPI.php';
and you're good to go!
##Requirements
PHP 5.3.9 (or higher) is required. If you have access, PHP 5.4 (or higher) is highly recommended for its performance improvements.
Documentation
Contact Eziteq for a API access and documentation.
###Example usage
<?php use EziteqAPI_PHP\EziteqAPI; // Make sure composer dependencies have been installed require __DIR__ . '/vendor/autoload.php'; //Init and authenticate with Api key $eziteq = EziteqAPI::init(array( 'apiKey' => 'a84fhgncmc432mgsa31' // Api key from Eziteq )); //Init and authenticate with OAuth2 $eziteq = EziteqAPI::initOAuth2(array( 'clientId' => 14513528982, 'secret' => 'b3f89ee80ca90adf9fe75535c974a400', 'redirect_uri' => 'https://my.app/login' )); if($eziteq->authenticate()) { // Get subscriptions $subscriptions = $eziteq->getSubscriptions(); // Get specific customer $customer = $eziteq->getCustomer(array( 'customerId' => 5432 )); } else throw new Exception($eziteq->getMessage(), $eziteq->getCode()));
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-04-10