2017 © Pedro Peláez
 

library bamboo-api-client

Bamboo API Client

image

steffenbrand/bamboo-api-client

Bamboo API Client

  • Friday, December 22, 2017
  • by steffenbrand
  • Repository
  • 1 Watchers
  • 2 Stars
  • 97 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Bamboo API Client

PHP client for Bamboo API (6.1.1), (*1)

Limitations

Currently only supports the following methods: - /rest/api/latest/result/{key} (getLatestResultByKey) - /rest/api/latest/plan (getPlanList), (*2)

How to install

composer require steffenbrand/bamboo-api-client

How to use

getLatestResultByKey

try {
    $client = new BambooClient(
        'http://bamboo.dev',
        'user',
        'pass'
    );

    $result = $client->getLatestResultByKey('MYPLAN-KEY');

    $result->getNumber();
    $result->getState();
    $result->getLink()->getHref();
    $result->getPlan()->getKey();
    $result->getPlan()->getName();
    $result->getPlan()->getShortKey();
    $result->getPlan()->getShortName();
    $result->getPlan()->getLink()->getHref();
} catch (BambooRequestException $e) {
    // Request might fail
} catch (\RuntimeException $e) {
    // Something could go wrong during runtime
}

getPlanList

try {
    $client = new BambooClient(
        'http://bamboo.dev',
        'user',
        'pass'
    );

    $result = $client->getPlanList();

    if (count($result) > 0) {
        foreach ($result as $plan) {
            $plan->getKey();
            $plan->getName();
            $plan->getShortKey();
            $plan->getShortName();
            $plan->getLink()->getHref();
        }
    }
} catch (BambooRequestException $e) {
    // Request might fail
} catch (\RuntimeException $e) {
    // Something could go wrong during runtime
}

The Versions

22/12 2017

dev-master

9999999-dev https://github.com/steffenbrand/bamboo-api-client

Bamboo API Client

  Sources   Download

The Requires

 

The Development Requires

by Steffen Brand

22/12 2017

v1.3.0

1.3.0.0 https://github.com/steffenbrand/bamboo-api-client

Bamboo API Client

  Sources   Download

The Requires

 

The Development Requires

by Steffen Brand

18/12 2017

v1.2.0

1.2.0.0 https://github.com/steffenbrand/bamboo-api-client

Bamboo API Client

  Sources   Download

The Requires

 

The Development Requires

by Steffen Brand

25/10 2017

v1.1.0

1.1.0.0 https://github.com/steffenbrand/bamboo-api-client

Bamboo API Client

  Sources   Download

The Requires

 

The Development Requires

by Steffen Brand

21/10 2017

1.0.3

1.0.3.0 https://github.com/steffenbrand/bamboo-api-client

Bamboo API Client

  Sources   Download

The Requires

 

The Development Requires

by Steffen Brand

21/10 2017

1.0.2

1.0.2.0 https://github.com/steffenbrand/bamboo-api-client

Bamboo API Client

  Sources   Download

The Requires

 

The Development Requires

by Steffen Brand

19/10 2017

1.0.1

1.0.1.0 https://github.com/steffenbrand/bamboo-api-client

Bamboo API Client

  Sources   Download

The Requires

 

The Development Requires

by Steffen Brand