This is the bitbucket rest resources endpoint documentation
This PHP package is automatically generated by the OpenAPI Generator project:
- API version: 6.3.1
- Build package: org.openapitools.codegen.languages.PhpClientCodegen
PHP 5.5 and later
To install the bindings via Composer, add the following to composer.json
:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/adesso-mobile/php-bitbucket-client.git"
}
],
"require": {
"adesso-mobile/php-bitbucket-client": "*@dev"
}
}
Then run composer install
Download the files and include autoload.php
:
require_once('/path/to/php-bitbucket-client/vendor/autoload.php');
To run the unit tests:
composer install
./vendor/bin/phpunit
Please follow the installation procedure and then run the following:
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: crowdAuth
$config = BitbucketClient\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new BitbucketClient\Api\BitbucketApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$project_key = 'project_key_example'; // string | The project key to return information about
try {
$result = $apiInstance->getProject($project_key);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BitbucketApi->getProject: ', $e->getMessage(), PHP_EOL;
}
?>
All URIs are relative to http://localhost/rest/api/1
Class | Method | HTTP request | Description |
---|---|---|---|
BitbucketApi | getProject | GET /projects//{projectKey} | Returns information about a project. |
- Type: HTTP basic authentication