1 | <?php |
||
13 | class Foursquare extends AbstractService |
||
14 | { |
||
15 | private $apiVersionDate = '20130829'; |
||
16 | |||
17 | public function __construct( |
||
18 | CredentialsInterface $credentials, |
||
19 | ClientInterface $httpClient, |
||
20 | TokenStorageInterface $storage, |
||
21 | $scopes = array(), |
||
22 | UriInterface $baseApiUri = null |
||
23 | ) { |
||
24 | parent::__construct($credentials, $httpClient, $storage, $scopes, $baseApiUri); |
||
25 | |||
26 | if (null === $baseApiUri) { |
||
27 | $this->baseApiUri = new Uri('https://api.foursquare.com/v2/'); |
||
28 | } |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | public function getAuthorizationEndpoint() |
||
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | public function getAccessTokenEndpoint() |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | protected function parseAccessTokenResponse($responseBody) |
||
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | public function request($path, $method = 'GET', $body = null, array $extraHeaders = array()) |
||
81 | } |
||
82 |