prosperworks/php-sdk-v1
最新稳定版本:1.0.0
Composer 安装命令:
composer require prosperworks/php-sdk-v1
包简介
Prosperworks PHP SDK
关键字:
README 文档
README
A PHP client (fancy named SDK) to access Prosperworks API. Default HTTP library is CURL but it works with Guzzle too.
Note: this is not an official Prosperworks package; all product names, logos, and brands are property of their respective owners.
Installation
With Composer. Add the Prosperworks PHP SDK package to your composer.json file.
{
"require": {
"prosperworks/php-sdk-v1": "~1.0"
}
}
Usage
Note: PHP 5.4 or greater is required.
Using
$config = array(
'access_token' => 'YOURACCESSTOKENHERE',
'user_email' => 'youremail@domain.com'
// 'client_http' => 'guzzle' // if you want to use guzzle 5.0
);
$app = new Prosperworks($config);
$result = $app->post('companies/search');
print_r($result);
Tests
- Composer is a prerequisite for running the tests.
Install composer globally, then run
composer installto install required files. - Get API credentials from Prosperworks and update the $config array.
- The tests can be executed by running this command from the root directory:
$ ./vendor/bin/phpunit
统计信息
- 总下载量: 1.56k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2015-08-11