Open RomeoDavide91 opened 6 years ago
I find the way.
That's not explicit in the doc...
Instanciate the library
$this->linkedIn = new LinkedIn(self::LINKED_IN_API_KEY, self::LINKED_IN_CLIENT_SECRET);
Generate the auto-connect link :
echo '<a href="'.$this->linkedIn->getLoginUrl().'" >Click here</a>';
You can get the token :
$this->linkedIn->getAccessToken();
I'm trying to get accessToken through queues.
There is no function that I am looking for.
The function should be:
$linkedIn = new Happyr\LinkedIn\LinkedIn($oauthToken, $oauthSecret); $accessToken = $linkedIn->getAccessToken($codeToken);
how do I receive the access token?