1 | <?php |
||
15 | class Linkedin extends AbstractService |
||
16 | { |
||
17 | /** |
||
18 | * Defined scopes |
||
19 | * @link http://developer.linkedin.com/documents/authentication#granting |
||
20 | */ |
||
21 | const SCOPE_R_BASICPROFILE = 'r_basicprofile'; |
||
22 | const SCOPE_R_FULLPROFILE = 'r_fullprofile'; |
||
23 | const SCOPE_R_EMAILADDRESS = 'r_emailaddress'; |
||
24 | const SCOPE_R_NETWORK = 'r_network'; |
||
25 | const SCOPE_R_CONTACTINFO = 'r_contactinfo'; |
||
26 | const SCOPE_RW_NUS = 'rw_nus'; |
||
27 | const SCOPE_RW_COMPANY_ADMIN = 'rw_company_admin'; |
||
28 | const SCOPE_RW_GROUPS = 'rw_groups'; |
||
29 | const SCOPE_W_MESSAGES = 'w_messages'; |
||
30 | const SCOPE_W_SHARE = 'w_share'; |
||
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | protected function init() |
||
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | public function getAuthorizationEndpoint() |
||
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | public function getAccessTokenEndpoint() |
||
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | protected function getAuthorizationMethod() |
||
67 | |||
68 | /** |
||
69 | * {@inheritdoc} |
||
70 | */ |
||
71 | protected function parseAccessTokenResponse($responseBody) |
||
97 | } |
||
98 |