Свойство | Type | Description | |
---|---|---|---|
$accessToken | Happyr\LinkedIn\AccessToken | The OAuth access token received in exchange for a valid authorization code. null means the access token has yet to be determined. |
Méthode | Description | |
---|---|---|
__construct ( string $appId, string $appSecret, string $format = 'json', string $responseDataType = 'array' ) | Constructor. | |
api ( $method, $resource, array $options = [] ) | ||
clearStorage ( ) | ||
get ( string $resource, array $options = [] ) : mixed | See docs for LinkedIn::api(). | |
getAccessToken ( ) | ||
getError ( ) | ||
getLastResponse ( ) | ||
getLoginUrl ( $options = [] ) | ||
hasError ( ) | ||
isAuthenticated ( ) | ||
post ( string $resource, array $options = [] ) : mixed | See docs for LinkedIn::api(). | |
setAccessToken ( $accessToken ) | ||
setFormat ( $format ) | ||
setHttpClient ( Http\Client\HttpClient $client ) | ||
setHttpMessageFactory ( Http\Message\MessageFactory $factory ) | ||
setResponseDataType ( $responseDataType ) | ||
setStorage ( Happyr\LinkedIn\Storage\DataStorageInterface $storage ) | ||
setUrlGenerator ( Happyr\LinkedIn\Http\UrlGeneratorInterface $urlGenerator ) |
Méthode | Description | |
---|---|---|
filterRequestOption ( array &$options ) : string | Modify and filter the request options. Make sure we use the correct query parameters and headers. | |
getAuthenticator ( ) : |
||
getFormat ( ) : string | Get the default format to use when sending requests. | |
getRequestManager ( ) : |
||
getResponseDataType ( ) : string | Get the default data type to be returned as a response. | |
getUrlGenerator ( ) : Happyr\LinkedIn\Http\UrlGeneratorInterface |
protected filterRequestOption ( array &$options ) : string | ||
$options | array | |
Résultat | string | the request format to use |
protected getAuthenticator ( ) : |
||
Résultat |
protected getRequestManager ( ) : |
||
Résultat |
protected getResponseDataType ( ) : string | ||
Résultat | string |
protected getUrlGenerator ( ) : Happyr\LinkedIn\Http\UrlGeneratorInterface | ||
Résultat | Happyr\LinkedIn\Http\UrlGeneratorInterface |
public setHttpClient ( Http\Client\HttpClient $client ) | ||
$client | Http\Client\HttpClient |
public setHttpMessageFactory ( Http\Message\MessageFactory $factory ) | ||
$factory | Http\Message\MessageFactory |
public setStorage ( Happyr\LinkedIn\Storage\DataStorageInterface $storage ) | ||
$storage | Happyr\LinkedIn\Storage\DataStorageInterface |
public setUrlGenerator ( Happyr\LinkedIn\Http\UrlGeneratorInterface $urlGenerator ) | ||
$urlGenerator | Happyr\LinkedIn\Http\UrlGeneratorInterface |