galantom/galantom-api-php
Composer 安装命令:
composer require galantom/galantom-api-php
包简介
Official PHP Client Library for the Galantom Web API Edit
README 文档
README
Official PHP Client Library for the Galantom Web API
Installation
Prerequisites
- PHP version 5.6 or 7.0
Install Package
Add SendGrid to your composer.json file.
If you are not using Composer, you should be.
It's an excellent way to manage dependencies in your PHP application.
{
"require": {
"galantom/galantom-api-php": "^1.0"
}
}
Quick Start
<?php // If you are using Composer (recommended) require 'vendor/autoload.php'; $galantom_api_token = getenv('GALANTOM_API_TOKEN'); use GalantomApi\GalantomClient; $client = GalantomClient::factory( ['api_token' => $galantom_api_token] ); // Get list of donations /** @var \GuzzleHttp\Command\Result $response */ $response = $client->getPageDonations(['id' => 327]); if ($response['response']['code'] !== '200') { die($response['response']['message']); } foreach ($response['donations'] as $donation) { echo $donation['id'].'|'; }
统计信息
- 总下载量: 31
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-07-31