tiamo / indiegogo
Unofficial Indiegogo API
dev-master
2018-10-05 17:09 UTC
Requires
- php: >=5.4.0
Requires (Dev)
- phpunit/phpunit: ~4.4
This package is auto-updated.
Last update: 2024-12-06 09:39:02 UTC
README
Requirements
- PHP 5.4.0 and up.
Installation
The preferred way to install this extension is through composer. Either run
php composer.phar require --prefer-dist tiamo/indiegogo "*"
or add
"tiamo/indiegogo": "*"
to the require section of your composer.json
file.
Usage
Initialize client
$client = new \Indiegogo\Client(); if ($client->auth($email, $password)) { $me = $client->getCredentials(); // ... }
Export Contributions
$res = $client->contributionExport($campaignId); $job = $client->jobStatuses($res['job_id']); if ($job['status'] == 'completed') { echo $job['download_url']; }
Import Contributions
$res = $client->contributionImport($campaignId, [ 'file' => curl_file_create($filePath) ]); $job = $client->jobStatuses($res['job_id']); if ($job['status'] == 'completed') { // ... }
License
Licensed under the MIT license.