fengyuexingzi 8 years ago
parent abe04f59b0
commit 8523286220

@ -15,11 +15,11 @@ $state = 'x1Dr3Nu0AaxM1TuLVuGwAJWM';
function getCodeUrl() function getCodeUrl()
{ {
$url = 'https://www.linkedin.com/oauth/v2/authorization'; $url = 'https://www.linkedin.com/oauth/v2/authorization?';
$data = array( $data = array(
'response_type' => 'code', 'response_type' => 'code',
'client_id' => '81cc4t9fuu9bpu', 'client_id' => '81cc4t9fuu9bpu',
'redirect_uri' => 'https://fengyuexingzi.top/auth/linkedin', 'redirect_uri' => 'https://fengyuexingzi.top/auth/linkedin/callback.php',
'state' => $GLOBALS['state'], 'state' => $GLOBALS['state'],
'scope' => 'r_fullprofile r_emailaddress w_share', 'scope' => 'r_fullprofile r_emailaddress w_share',
); );

Loading…
Cancel
Save