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->getClient()->addListener(
new \Bitbucket\API\Http\Listener\BasicAuthListener('username', 'password')
);
/** @var \Bitbucket\API\User $user */
$user = $bitbucket->api('User');
/** @var \Bitbucket\API\Repositories\Issues $issues */
$issues = $bitbucket->api('Repositories\Issues');
Available examples
- Authentication
- Group privileges
- Groups
- Invitations
- Privileges
- Repositories
- Branch restrictions
- Changesets
- Commits
- Deploy keys
- Events
- Followers
- Issues
- Links
- Pull requests
- Repository
Services(deprecated since 0.7.0 -- @see WebHooks)- Hooks
- Src
- Wiki
- Build statuses
- Teams
- User
- Users