1 | <?php |
||
13 | class Yammer extends AbstractService |
||
14 | { |
||
15 | public function __construct( |
||
16 | CredentialsInterface $credentials, |
||
17 | ClientInterface $httpClient, |
||
18 | TokenStorageInterface $storage, |
||
19 | $scopes = array(), |
||
20 | UriInterface $baseApiUri = null |
||
21 | ) { |
||
22 | parent::__construct($credentials, $httpClient, $storage, $scopes, $baseApiUri); |
||
23 | |||
24 | if (null === $baseApiUri) { |
||
25 | $this->baseApiUri = new Uri('https://www.yammer.com/api/v1/'); |
||
26 | } |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | public function getAuthorizationEndpoint() |
||
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | public function getAccessTokenEndpoint() |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | public function getAuthorizationMethod() |
||
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | protected function parseAccessTokenResponse($responseBody) |
||
82 | } |
||
83 |