Skip to content

Latest commit

 

History

History
48 lines (42 loc) · 1.75 KB

index.md

File metadata and controls

48 lines (42 loc) · 1.75 KB

Usage examples

TIP: Although all examples from this documentation are instantiating each class, a single point of entry is also available:

$bitbucket = new \Bitbucket\API\Api();
$bitbucket->setCredentials(new Http\Message\Authentication\BasicAuth('username', 'password'));

/** @var \Bitbucket\API\User $user */
$user = $bitbucket->api('User');

/** @var \Bitbucket\API\Repositories\Issues $issues */
$issues = $bitbucket->api('Repositories\Issues');

Available examples