- PHP 5.4.0 and up.
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.
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') {
// ...
}Licensed under the MIT license.