PHP Интерфейс Happyr\LinkedIn\AuthenticatorInterface

Автор: Tobias Nyholm ([email protected])
Показать файл Открыть проект

Открытые методы

Метод Описание
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 )

Описание методов

clearStorage() публичный Метод

Clear the storage.
public clearStorage ( )

fetchNewAccessToken() публичный Метод

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
Результат Happyr\LinkedIn\AccessToken | null A valid user access token, or null if one could not be fetched.

getLoginUrl() публичный Метод

Generate a login url.
public getLoginUrl ( Happyr\LinkedIn\Http\LinkedInUrlGeneratorInterface $urlGenerator, array $options = [] ) : string
$urlGenerator Happyr\LinkedIn\Http\LinkedInUrlGeneratorInterface
$options array
Результат string

setStorage() публичный Метод

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