Property | Type | Description | |
---|---|---|---|
$appId | string | The application ID. | |
$appSecret | string | The application secret. |
Method | Description | |
---|---|---|
__construct ( Happyr\LinkedIn\Http\RequestManagerInterface $requestManager, string $appId, string $appSecret ) | ||
clearStorage ( ) | ||
fetchNewAccessToken ( Happyr\LinkedIn\Http\LinkedInUrlGeneratorInterface $urlGenerator ) | ||
getLoginUrl ( Happyr\LinkedIn\Http\LinkedInUrlGeneratorInterface $urlGenerator, $options = [] ) | ||
setStorage ( Happyr\LinkedIn\Storage\DataStorageInterface $storage ) |
Method | Description | |
---|---|---|
establishCSRFTokenState ( ) | Lays down a CSRF state token for this process. | |
getAccessTokenFromCode ( Happyr\LinkedIn\Http\LinkedInUrlGeneratorInterface $urlGenerator, string $code ) : Happyr\LinkedIn\AccessToken | Retrieves an access token for the given authorization code (previously generated from www.linkedin.com on behalf of a specific user). The authorization code is sent to www.linkedin.com and a legitimate access token is generated provided the access token and the user for which it was generated all match, and the user is either logged in to LinkedIn or has granted an offline access permission. | |
getCode ( ) : string | null | Get the authorization code from the query parameters, if it exists, and otherwise return null to signal no authorization code was discovered. | |
getRequestManager ( ) : |
||
getStorage ( ) : Happyr\LinkedIn\Storage\DataStorageInterface |
public __construct ( Happyr\LinkedIn\Http\RequestManagerInterface $requestManager, string $appId, string $appSecret ) | ||
$requestManager | Happyr\LinkedIn\Http\RequestManagerInterface | |
$appId | string | |
$appSecret | string |
protected establishCSRFTokenState ( ) |
public fetchNewAccessToken ( Happyr\LinkedIn\Http\LinkedInUrlGeneratorInterface $urlGenerator ) | ||
$urlGenerator | Happyr\LinkedIn\Http\LinkedInUrlGeneratorInterface |
protected getAccessTokenFromCode ( Happyr\LinkedIn\Http\LinkedInUrlGeneratorInterface $urlGenerator, string $code ) : Happyr\LinkedIn\AccessToken | ||
$urlGenerator | Happyr\LinkedIn\Http\LinkedInUrlGeneratorInterface | |
$code | string | An authorization code. |
return | Happyr\LinkedIn\AccessToken | An access token exchanged for the authorization code. |
public getLoginUrl ( Happyr\LinkedIn\Http\LinkedInUrlGeneratorInterface $urlGenerator, $options = [] ) | ||
$urlGenerator | Happyr\LinkedIn\Http\LinkedInUrlGeneratorInterface |
protected getRequestManager ( ) : |
||
return |
protected getStorage ( ) : Happyr\LinkedIn\Storage\DataStorageInterface | ||
return | Happyr\LinkedIn\Storage\DataStorageInterface |
public setStorage ( Happyr\LinkedIn\Storage\DataStorageInterface $storage ) | ||
$storage | Happyr\LinkedIn\Storage\DataStorageInterface |