All URIs are relative to http://localhost/rest/api/1
Method | HTTP request | Description |
---|---|---|
getProject | GET /projects//{projectKey} | Returns information about a project. |
\BitbucketClient\Model\ProjectMeta getProject($project_key)
Returns information about a project.
<?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;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
project_key | string | The project key to return information about |
\BitbucketClient\Model\ProjectMeta
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]