프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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. |
메소드 | 설명 | |
---|---|---|
__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 ) |
메소드 | 설명 | |
---|---|---|
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 | |
리턴 | string | the request format to use |
protected getRequestManager ( ) : |
||
리턴 |
protected getResponseDataType ( ) : string | ||
리턴 | string |
protected getUrlGenerator ( ) : Happyr\LinkedIn\Http\UrlGeneratorInterface | ||
리턴 | 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 |