ekvio-dev/giftery
最新稳定版本:2.0.0
Composer 安装命令:
composer create-project ekvio-dev/giftery
包简介
Giftery API client
README 文档
README
About The Project
Another HTTP client for Giftery API with support PSR 7/17/18 compatible HTTP client
Getting Started
Before use API client you need get credentials pair of Client ID and Client Secret from Giftery Administration
Installation
Install from packagist
composer install ekvio-dev/giftery
Usage
Create GifteryApi object with Http client. By default, project supports CURL implementation.
$apiClient = new \Giftery\GifteryApi(new CurlClient(), 12345, 'secret'); $response = $apiClient->getBalance();
or you can use PSR 7/17/18 compatible HTTP client (example: ghuzzle)
$httpFactory = new \GuzzleHttp\Psr7\HttpFactory(); $httpClient = new \GuzzleHttp\Client(); $psrClient = new \Giftery\PsrHttpClient($httpFactory, $httpClient); $apiClient - new \Giftery\GifteryApi($psrClient, 12345, 'secret'); $response = $apiClient->getBalance();
or you can create you Giftery\HttpClient implementation.
API client support methods: getBalance, getProducts, makeOrder, getStatus, getCertificate, getCode, getLinks, getCategories, getAddress, test.
统计信息
- 总下载量: 38
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-01-22