Set defaults first

Issue #54 closed
Boniface Pereira created an issue

Thanks for the great well structured library.

In the docs i know the authorization is done like this,

    $bitbucket = new Bitbucket\API\Repositories();
    $bitbucket->getClient()->addListener( // i have to add this for every API i use.
        new \Bitbucket\API\Http\Listener\OAuth2Listener(
            array('access_token'  => $token->getToken())
        )
    );

Is there any way to authorize a Client first, and use the rest of the APIs directly ?

Comments (2)

  1. Log in to comment