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 FitBit 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://api.fitbit.com/1/');
}
/**
* {@inheritdoc}
*/
public function getRequestTokenEndpoint()
return new Uri('https://api.fitbit.com/oauth/request_token');
public function getAuthorizationEndpoint()
return new Uri('https://www.fitbit.com/oauth/authorize');
public function getAccessTokenEndpoint()
return new Uri('https://api.fitbit.com/oauth/access_token');