1 | <?php |
||
20 | class Linkedin extends AbstractService |
||
21 | { |
||
22 | /** |
||
23 | * Defined scopes. |
||
24 | * |
||
25 | * @see https://docs.microsoft.com/en-us/linkedin/shared/authentication/authorization-code-flow?context=linkedin/context |
||
26 | */ |
||
27 | const SCOPE_R_LITEPROFILE = 'r_liteprofile'; |
||
28 | const SCOPE_R_FULLPROFILE = 'r_fullprofile'; |
||
29 | const SCOPE_R_EMAILADDRESS = 'r_emailaddress'; |
||
30 | const SCOPE_R_NETWORK = 'r_network'; |
||
31 | const SCOPE_R_CONTACTINFO = 'r_contactinfo'; |
||
32 | const SCOPE_RW_NUS = 'rw_nus'; |
||
33 | const SCOPE_RW_COMPANY_ADMIN = 'rw_company_admin'; |
||
34 | const SCOPE_RW_GROUPS = 'rw_groups'; |
||
35 | const SCOPE_W_MESSAGES = 'w_messages'; |
||
36 | const SCOPE_W_MEMBER_SOCIAL = 'w_member_social'; |
||
37 | |||
38 | public function __construct( |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function getAuthorizationEndpoint() |
||
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | public function getAccessTokenEndpoint() |
||
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | */ |
||
75 | protected function getAuthorizationMethod() |
||
79 | |||
80 | /** |
||
81 | * {@inheritdoc} |
||
82 | */ |
||
83 | protected function parseAccessTokenResponse($responseBody) |
||
108 | } |
||
109 |