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 Redmine extends AbstractService
{
public function __construct(
CredentialsInterface $credentials,
ClientInterface $httpClient,
TokenStorageInterface $storage,
SignatureInterface $signature,
UriInterface $baseApiUri
) {
parent::__construct($credentials, $httpClient, $storage, $signature, $baseApiUri);
if (null === $baseApiUri) {
throw new \Exception('baseApiUri is a required argument.');
}
/**
* {@inheritDoc}
*/
public function getRequestTokenEndpoint()
return new Uri($this->baseApiUri->getAbsoluteUri() . '/request_token');
* {@inheritdoc}
public function getAuthorizationEndpoint()
return new Uri($this->baseApiUri->getAbsoluteUri() . '/authorize');
public function getAccessTokenEndpoint()
return new Uri($this->baseApiUri->getAbsoluteUri() . '/access_token');