2017 © Pedro Peláez
 

library gci-php

Google Code-in API Task Management

image

droogle/gci-php

Google Code-in API Task Management

  • Sunday, November 19, 2017
  • by GVSO
  • Repository
  • 2 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Google Code-in API SDK for PHP

This API can be used to access Google Code-in's Task API to request, update and modify task definition., (*1)

Drupal

This tool is maintained by the Drupal community. Special credit goes to Shitiz Garg who created this SDK., (*2)

Installation

Library can be installed from composer using composer require droogle/gci-php or adding droogle/gci-php to your composer dependencies, (*3)

Example

This is a simplified example of handling tasks via the API, (*4)

$client = new Droogle\GCI\Client('<api key>');
$taskList = $client->getTasks(2); // Get tasks from second page
foreach ($taskList as $task) {
    echo $task->getId() . ' ' . $task->getName(); // See src/TaskInterface.php for full function list
}
$nextPage = $taskList->getNextPage();

// Get the details of a single task
$id = 123; // Task ID
$task = $client->getTask($id);
echo $task->getDescription();

// Create a new task
$task = new Droogle\GCI\Task([
    'name' => 'Test task',
    'description' => 'Adding a new task',
    'status' => Droogle\GCI\TaskInterface::STATUS_DRAFTED,
    ...
]);
$client->createTask($task);

License

The MIT License (See LICENSE), (*5)

The Versions

19/11 2017

dev-master

9999999-dev

Google Code-in API Task Management

  Sources   Download

MIT

The Requires

 

api google sdk code-in

03/12 2016

1.0.2

1.0.2.0

Google Code-in API Task Management

  Sources   Download

MIT

The Requires

 

api google sdk code-in

20/11 2016

1.0.1

1.0.1.0

Google Code-in API Task Management

  Sources   Download

MIT

The Requires

 

api google sdk code-in

19/11 2016

1.0.0

1.0.0.0

Google Code-in API Task Management

  Sources   Download

MIT

The Requires

 

api google sdk code-in