php-confluence-client
This is the confluence rest resources endpoint documentation
This PHP package is automatically generated by the OpenAPI Generator project:
- API version: 6.15.0
- Build package: org.openapitools.codegen.languages.PhpClientCodegen
Requirements
PHP 5.5 and later
Installation & Usage
Composer
To install the bindings via Composer, add the following to composer.json:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/adesso-mobile/php-confluence-client.git"
}
],
"require": {
"adesso-mobile/php-confluence-client": "*@dev"
}
}
Then run composer install
Manual Installation
Download the files and include autoload.php:
require_once('/path/to/php-confluence-client/vendor/autoload.php');
Tests
To run the unit tests:
composer install
./vendor/bin/phpunit
Getting Started
Please follow the installation procedure and then run the following:
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = ConfluenceClient\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new ConfluenceClient\Api\ConfluenceApi(
new GuzzleHttp\Client(),
$config
);
$space_key = 'space_key_example';
$expand = 'expand_example';
try {
$result = $apiInstance->getSpace($space_key, $expand);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ConfluenceApi->getSpace: ', $e->getMessage(), PHP_EOL;
}
?>
Documentation for API Endpoints
All URIs are relative to http://localhost/rest/api
| ConfluenceApi | getSpace | GET /space/{spaceKey} | Returns information about a space. |
Documentation For Models
Documentation For Authorization
crowdAuth
- Type: HTTP basic authentication
Author