PHP 클래스 Wallabag\ImportBundle\Import\PocketImport

상속: extends AbstractImport
파일 보기 프로젝트 열기: wallabag/wallabag 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( EntityManager $em, ContentProxy $contentProxy )
authorize ( string $code ) : boolean Usually called by the previous callback to authorize the client.
getAccessToken ( ) : string Only used for test purpose.
getDescription ( )
getName ( )
getRequestToken ( string $redirectUri ) : string | false Return the oauth url to authenticate the client.
getUrl ( )
import ( $offset )
parseEntry ( array $importedEntry )
setClient ( Client $client ) Set the Guzzle client.

보호된 메소드들

메소드 설명
setEntryAsRead ( array $importedEntry )

메소드 상세

__construct() 공개 메소드

public __construct ( EntityManager $em, ContentProxy $contentProxy )
$em Doctrine\ORM\EntityManager
$contentProxy Wallabag\CoreBundle\Helper\ContentProxy

authorize() 공개 메소드

Then it return a token that can be used for next requests.
public authorize ( string $code ) : boolean
$code string request_token from getRequestToken
리턴 boolean

getAccessToken() 공개 메소드

Only used for test purpose.
public getAccessToken ( ) : string
리턴 string

getDescription() 공개 메소드

public getDescription ( )

getName() 공개 메소드

public getName ( )

getRequestToken() 공개 메소드

Return the oauth url to authenticate the client.
public getRequestToken ( string $redirectUri ) : string | false
$redirectUri string Redirect url in case of error
리턴 string | false request_token for callback method

getUrl() 공개 메소드

public getUrl ( )

import() 공개 메소드

public import ( $offset )

parseEntry() 공개 메소드

또한 보기: https://getpocket.com/developer/docs/v3/retrieve
public parseEntry ( array $importedEntry )
$importedEntry array

setClient() 공개 메소드

Set the Guzzle client.
public setClient ( Client $client )
$client GuzzleHttp\Client

setEntryAsRead() 보호된 메소드

protected setEntryAsRead ( array $importedEntry )
$importedEntry array