메소드 |
설명 |
|
api ( string $method, string $resource, array $options = [] ) : mixed |
Make an API call. Read about what calls that are possible here: https://developer.linkedin.com/docs/rest-api. |
|
clearStorage ( ) |
Clear the data storage. This will forget everything about the user and authentication process. |
|
get ( string $resource, array $options = [] ) : mixed |
See docs for LinkedIn::api(). |
|
getAccessToken ( ) : Happyr\LinkedIn\AccessToken | null |
Returns an access token. If we do not have one in memory, try to fetch one from a *code* in the $_REQUEST. |
|
getError ( ) : Happyr\LinkedIn\Exception\LoginError | null |
Returns a LoginError or null. |
|
getLastResponse ( ) : Psr\Http\Message\ResponseInterface | null |
Get the last response. This will always return a PSR-7 response no matter of the data type used. |
|
getLoginUrl ( array $options = [] ) : string |
Get a login URL where the user can put his/hers LinkedIn credentials and authorize the application. |
|
hasError ( ) : boolean |
If the user has canceled the login we will return with an error. |
|
isAuthenticated ( ) : boolean |
Is the current user authenticated? |
|
post ( string $resource, array $options = [] ) : mixed |
See docs for LinkedIn::api(). |
|
setAccessToken ( string | Happyr\LinkedIn\AccessToken $accessToken ) |
If you have stored a previous access token in a storage (database) you could set it here. After setting an
access token you have to make sure to verify it is still valid by running LinkedIn::isAuthenticated. |
|
setFormat ( string $format ) |
Set the default format to use when sending requests. |
|
setHttpClient ( Http\Client\HttpClient $client ) |
Set a http client. |
|
setHttpMessageFactory ( Http\Message\MessageFactory $factory ) |
Set a http message factory. |
|
setResponseDataType ( string $responseDataType ) |
Set the default data type to be returned as a response. |
|
setStorage ( Happyr\LinkedIn\Storage\DataStorageInterface $storage ) |
Set a data storage. |
|
setUrlGenerator ( Happyr\LinkedIn\Http\UrlGeneratorInterface $urlGenerator ) |
Set a URL generator. |
|