PHP Interface Happyr\LinkedIn\AuthenticatorInterface

Author: Tobias Nyholm ([email protected])
显示文件 Open project: happyr/linkedin-api-client

Public Methods

Method Description
clearStorage ( ) Clear the storage.
fetchNewAccessToken ( Happyr\LinkedIn\Http\LinkedInUrlGeneratorInterface $urlGenerator ) : Happyr\LinkedIn\AccessToken | null Tries to get a new access token from data storage or code. If it fails, it will return null.
getLoginUrl ( Happyr\LinkedIn\Http\LinkedInUrlGeneratorInterface $urlGenerator, array $options = [] ) : string Generate a login url.
setStorage ( Happyr\LinkedIn\Storage\DataStorageInterface $storage )

Method Details

clearStorage() public method

Clear the storage.
public clearStorage ( )

fetchNewAccessToken() public method

Tries to get a new access token from data storage or code. If it fails, it will return null.
public fetchNewAccessToken ( Happyr\LinkedIn\Http\LinkedInUrlGeneratorInterface $urlGenerator ) : Happyr\LinkedIn\AccessToken | null
$urlGenerator Happyr\LinkedIn\Http\LinkedInUrlGeneratorInterface
return Happyr\LinkedIn\AccessToken | null A valid user access token, or null if one could not be fetched.

getLoginUrl() public method

Generate a login url.
public getLoginUrl ( Happyr\LinkedIn\Http\LinkedInUrlGeneratorInterface $urlGenerator, array $options = [] ) : string
$urlGenerator Happyr\LinkedIn\Http\LinkedInUrlGeneratorInterface
$options array
return string

setStorage() public method

public setStorage ( Happyr\LinkedIn\Storage\DataStorageInterface $storage )
$storage Happyr\LinkedIn\Storage\DataStorageInterface