for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace OAuth\OAuth1\Service;
use OAuth\OAuth1\Signature\SignatureInterface;
use OAuth\Common\Http\Uri\Uri;
use OAuth\Common\Consumer\CredentialsInterface;
use OAuth\Common\Http\Uri\UriInterface;
use OAuth\Common\Storage\TokenStorageInterface;
use OAuth\Common\Http\Client\ClientInterface;
class BitBucket extends AbstractService
{
public function __construct(
CredentialsInterface $credentials,
ClientInterface $httpClient,
TokenStorageInterface $storage,
SignatureInterface $signature,
UriInterface $baseApiUri = null
) {
parent::__construct($credentials, $httpClient, $storage, $signature, $baseApiUri);
if (null === $baseApiUri) {
$this->baseApiUri = new Uri('https://bitbucket.org/api/1.0/');
}
/**
* {@inheritDoc}
*/
public function getRequestTokenEndpoint()
return new Uri('https://bitbucket.org/!api/1.0/oauth/request_token');
* {@inheritdoc}
public function getAuthorizationEndpoint()
return new Uri('https://bitbucket.org/!api/1.0/oauth/authenticate');
public function getAccessTokenEndpoint()
return new Uri('https://bitbucket.org/!api/1.0/oauth/access_token');