2017 © Pedro Peláez
 

library indiegogo

Unofficial Indiegogo API

image

tiamo/indiegogo

Unofficial Indiegogo API

  • Monday, December 18, 2017
  • by tiamo
  • Repository
  • 0 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Indiegogo php client

Requirements

  • PHP 5.4.0 and up.

Installation

The preferred way to install this extension is through composer. Either run, (*1)

php composer.phar require --prefer-dist tiamo/indiegogo "*"

or add, (*2)

"tiamo/indiegogo": "*"

to the require section of your composer.json file., (*3)

Usage

Initialize client, (*4)

$client = new \Indiegogo\Client();
if ($client->auth($email, $password)) {
    $me = $client->getCredentials();
    // ...
}

Export Contributions, (*5)

$res = $client->contributionExport($campaignId);
$job = $client->jobStatuses($res['job_id']);
if ($job['status'] == 'completed') {
    echo $job['download_url'];
}

Import Contributions, (*6)

$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., (*7)

The Versions

18/12 2017

dev-master

9999999-dev

Unofficial Indiegogo API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Vladyslav K

api indiegogo