2017 © Pedro Peláez
 

library tempo-php-sdk

A PHP SDK to facilitate working with Atlassian's Tempo servlet API

image

causelabs/tempo-php-sdk

A PHP SDK to facilitate working with Atlassian's Tempo servlet API

  • Friday, October 14, 2016
  • by causelabs
  • Repository
  • 4 Watchers
  • 1 Stars
  • 133 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 4 % Grown

The README.md

tempo-php-sdk

This package provides a (currently) super simple interface to allow retrieval of Tempo worklogs from the Atlassian JIRA Tempo servlet API., (*1)

Installation

Use composer to get the job done:, (*2)

composer require causelabs/tempo-php-sdk

Usage

Using the API consists of two steps: creating a transport client, and passing it into the API., (*3)

Transport Client

It's easiest to simply used the included Guzzle-based client. If you want to create your own, simply implement CauseLabs\Interfaces\ClientInterface., (*4)

use CauseLabs\TempoAPI\GuzzleClient;

$url = 'https://yourjirainstance.jira.com';
$key = 'your-tempo-api-key';

$client = new GuzzleClient($url, $key);

API Instantiation

After instantiating a client, you can set up the API connection:, (*5)

use CauseLabs\TempoAPI\GuzzleClient;
use CauseLabs\TempoAPI\API;

$url = 'https://yourjirainstance.jira.com';
$key = 'your-tempo-api-key';

$client = new GuzzleClient($url, $key);
$api = new API($client);

// Get worklogs for a specific user
$username = 'john_doe';
$start = new DateTime;
$end = new DateTime;

$worklogs = $api->worklogs($username, $start, $end);

License

MIT, (*6)

Contact

Contact Mark Horlbeck at mark@causelabs.com for contributions, questions, etc., (*7)

The Versions

14/10 2016

v1.1

1.1.0.0

A PHP SDK to facilitate working with Atlassian's Tempo servlet API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mark Horlbeck

10/02 2016

dev-master

9999999-dev

A PHP SDK to facilitate working with Atlassian's Tempo servlet API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mark Horlbeck

10/02 2016

v1.0

1.0.0.0

A PHP SDK to facilitate working with Atlassian's Tempo servlet API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mark Horlbeck