Skip to content

tiamo/indiegogo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Indiegogo php client

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.

About

Unofficial Indiegogo php client with private api

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages