PHP 클래스 Evernote\Client

파일 보기 프로젝트 열기: evernote/evernote-cloud-sdk-php 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$advancedClient Evernote\AdvancedClient
$businessAuth EDAM\UserStore\AuthenticationResult
$businessNoteStore EDAM\NoteStore\NoteStoreClient
$businessToken string
$china boolean
$isBusinessUser
$logger Psr\Log\LoggerInterface
$sandbox boolean
$token string
$userNoteStore EDAM\NoteStore\NoteStoreClient

공개 메소드들

메소드 설명
__construct ( string | null $token = null, boolean $sandbox = true, Evernote\AdvancedClient | null $advancedClient = null, Psr\Log\LoggerInterface $logger = null, boolean $china = false )
deleteNote ( Evernote\Model\Note $note ) : boolean Deletes a note
findNotesWithSearch ( $noteSearch, Evernote\Model\Notebook $notebook = null, integer $scope, integer $sortOrder, integer $maxResults = 20 ) : array | boolean Searches for notes
getAdvancedClient ( ) : Evernote\AdvancedClient Returns the advancedClient
getBusinessLinkedNotebooks ( ) : array Returns the list of notebooks shared to the user through the business account
getBusinessNoteStore ( ) : EDAM\NoteStore\NoteStoreClient | mixed Returns the business notestore
getBusinessSharedNotebooks ( ) : null Returns the list of notebooks shared by the user with her business account
getBusinessToken ( ) : string Returns the token used to access the business notestore
getChina ( ) : boolean Gets the current china flag
getNote ( $guid, null $scope = null ) : Evernote\Model\Note | null Retrieves an existing note
getNotebook ( $notebook_guid, null $scope = null ) : Evernote\Model\Notebook | null Retrieves a notebook
getSandbox ( ) : boolean Gets the current sandbox flag
getToken ( ) : string Returns the current authentication token
getUserNotestore ( ) : EDAM\NoteStore\NoteStoreClient | mixed Returns the personal notestore of the user
isAppNotebookToken ( $token ) : boolean Checks if the token is an "app notebook" one
isBusinessUser ( ) : boolean Returns a boolean indicating if the user has a business account
listLinkedNotebooks ( ) : array Returns the list of notebooks shared to the user
listNotebooks ( ) : array Returns the list of notebooks
listPersonalNotebooks ( ) : array Returns the list of personal notebooks
listSharedNotebooks ( ) : array Returns the list of notebooks shared by the user
moveNote ( Evernote\Model\Note $note, Evernote\Model\Notebook $notebook ) : Evernote\Model\Note Moves a note to another notebook
replaceNote ( Evernote\Model\Note $noteToReplace, Evernote\Model\Note $note ) : Evernote\Model\Note Replaces an existing note by another one (new or existing)
setAdvancedClient ( Evernote\AdvancedClient $advancedClient ) Sets the advancedClient
setChina ( boolean $china ) Sets the china flag to true or false
setSandbox ( boolean $sandbox ) Sets the sandbox flag to true or false
setToken ( string $token ) Sets the authentication token
shareNote ( Evernote\Model\Note $note ) : null | string Shares a note and returns the share url
uploadNote ( Evernote\Model\Note $note, Evernote\Model\Notebook $notebook = null ) : Evernote\Model\Note Sends a new Note to the API

보호된 메소드들

메소드 설명
compareByCreated ( $obj1, $obj2 )
compareByTitle ( $obj1, $obj2 )
compareByUpdated ( $obj1, $obj2 )
findNotes_findInBusinessScopeWithContext ( $context )
findNotes_findInLinkedScopeWithContext ( $context )
findNotes_findInPersonalScopeWithContext ( $context )
findNotes_listNotebooksWithContext ( $context )
findNotes_nextFindInLinkedScopeWithContext ( $context )
findNotes_processResultsWithContext ( $context )
getBusinessAuth ( ) : EDAM\UserStore\AuthenticationResult
getNoteBookByLinkedNotebook ( EDAM\Types\LinkedNotebook $linkedNotebook )
getNoteInstance ( EDAM\Types\Note $edamNote = null, $noteStore = null, $token = null )
getNoteStore ( $noteStoreUrl ) ************************
getShardIdFromToken ( $token )
getShareUrl ( $guid, $shardId, $shareKey, $serviceHost )
getSharedNotebookAuthResult ( EDAM\Types\LinkedNotebook $linkedNotebook )
isFlagSet ( $flags, $flag )

메소드 상세

__construct() 공개 메소드

public __construct ( string | null $token = null, boolean $sandbox = true, Evernote\AdvancedClient | null $advancedClient = null, Psr\Log\LoggerInterface $logger = null, boolean $china = false )
$token string | null
$sandbox boolean
$advancedClient Evernote\AdvancedClient | null
$logger Psr\Log\LoggerInterface
$china boolean

compareByCreated() 보호된 메소드

protected compareByCreated ( $obj1, $obj2 )

compareByTitle() 보호된 메소드

protected compareByTitle ( $obj1, $obj2 )

compareByUpdated() 보호된 메소드

protected compareByUpdated ( $obj1, $obj2 )

deleteNote() 공개 메소드

Deletes a note
public deleteNote ( Evernote\Model\Note $note ) : boolean
$note Evernote\Model\Note
리턴 boolean

findNotesWithSearch() 공개 메소드

Searches for notes
public findNotesWithSearch ( $noteSearch, Evernote\Model\Notebook $notebook = null, integer $scope, integer $sortOrder, integer $maxResults = 20 ) : array | boolean
$noteSearch
$notebook Evernote\Model\Notebook
$scope integer
$sortOrder integer
$maxResults integer
리턴 array | boolean

findNotes_findInBusinessScopeWithContext() 보호된 메소드

findNotes_findInLinkedScopeWithContext() 보호된 메소드

findNotes_findInPersonalScopeWithContext() 보호된 메소드

findNotes_listNotebooksWithContext() 보호된 메소드

protected findNotes_listNotebooksWithContext ( $context )

findNotes_nextFindInLinkedScopeWithContext() 보호된 메소드

findNotes_processResultsWithContext() 보호된 메소드

protected findNotes_processResultsWithContext ( $context )

getAdvancedClient() 공개 메소드

Returns the advancedClient
public getAdvancedClient ( ) : Evernote\AdvancedClient
리턴 Evernote\AdvancedClient

getBusinessAuth() 보호된 메소드

protected getBusinessAuth ( ) : EDAM\UserStore\AuthenticationResult
리턴 EDAM\UserStore\AuthenticationResult

getBusinessLinkedNotebooks() 공개 메소드

Returns the list of notebooks shared to the user through the business account
public getBusinessLinkedNotebooks ( ) : array
리턴 array

getBusinessNoteStore() 공개 메소드

Returns the business notestore
public getBusinessNoteStore ( ) : EDAM\NoteStore\NoteStoreClient | mixed
리턴 EDAM\NoteStore\NoteStoreClient | mixed

getBusinessSharedNotebooks() 공개 메소드

Returns the list of notebooks shared by the user with her business account
public getBusinessSharedNotebooks ( ) : null
리턴 null

getBusinessToken() 공개 메소드

Returns the token used to access the business notestore
public getBusinessToken ( ) : string
리턴 string

getChina() 공개 메소드

Gets the current china flag
public getChina ( ) : boolean
리턴 boolean

getNote() 공개 메소드

Retrieves an existing note
public getNote ( $guid, null $scope = null ) : Evernote\Model\Note | null
$guid
$scope null
리턴 Evernote\Model\Note | null

getNoteBookByLinkedNotebook() 보호된 메소드

protected getNoteBookByLinkedNotebook ( EDAM\Types\LinkedNotebook $linkedNotebook )
$linkedNotebook EDAM\Types\LinkedNotebook

getNoteInstance() 보호된 메소드

protected getNoteInstance ( EDAM\Types\Note $edamNote = null, $noteStore = null, $token = null )
$edamNote EDAM\Types\Note

getNoteStore() 보호된 메소드

************************
protected getNoteStore ( $noteStoreUrl )

getNotebook() 공개 메소드

Retrieves a notebook
public getNotebook ( $notebook_guid, null $scope = null ) : Evernote\Model\Notebook | null
$notebook_guid
$scope null
리턴 Evernote\Model\Notebook | null

getSandbox() 공개 메소드

Gets the current sandbox flag
public getSandbox ( ) : boolean
리턴 boolean

getShardIdFromToken() 보호된 메소드

protected getShardIdFromToken ( $token )

getShareUrl() 보호된 메소드

protected getShareUrl ( $guid, $shardId, $shareKey, $serviceHost )

getSharedNotebookAuthResult() 보호된 메소드

protected getSharedNotebookAuthResult ( EDAM\Types\LinkedNotebook $linkedNotebook )
$linkedNotebook EDAM\Types\LinkedNotebook

getToken() 공개 메소드

Returns the current authentication token
public getToken ( ) : string
리턴 string

getUserNotestore() 공개 메소드

Returns the personal notestore of the user
public getUserNotestore ( ) : EDAM\NoteStore\NoteStoreClient | mixed
리턴 EDAM\NoteStore\NoteStoreClient | mixed

isAppNotebookToken() 공개 메소드

Checks if the token is an "app notebook" one
public isAppNotebookToken ( $token ) : boolean
$token
리턴 boolean

isBusinessUser() 공개 메소드

Returns a boolean indicating if the user has a business account
public isBusinessUser ( ) : boolean
리턴 boolean

isFlagSet() 보호된 메소드

protected isFlagSet ( $flags, $flag )

listLinkedNotebooks() 공개 메소드

Returns the list of notebooks shared to the user
public listLinkedNotebooks ( ) : array
리턴 array

listNotebooks() 공개 메소드

Returns the list of notebooks
public listNotebooks ( ) : array
리턴 array

listPersonalNotebooks() 공개 메소드

Returns the list of personal notebooks
public listPersonalNotebooks ( ) : array
리턴 array

listSharedNotebooks() 공개 메소드

Returns the list of notebooks shared by the user
public listSharedNotebooks ( ) : array
리턴 array

moveNote() 공개 메소드

Moves a note to another notebook
public moveNote ( Evernote\Model\Note $note, Evernote\Model\Notebook $notebook ) : Evernote\Model\Note
$note Evernote\Model\Note
$notebook Evernote\Model\Notebook
리턴 Evernote\Model\Note

replaceNote() 공개 메소드

Replaces an existing note by another one (new or existing)
public replaceNote ( Evernote\Model\Note $noteToReplace, Evernote\Model\Note $note ) : Evernote\Model\Note
$noteToReplace Evernote\Model\Note
$note Evernote\Model\Note
리턴 Evernote\Model\Note

setAdvancedClient() 공개 메소드

Sets the advancedClient
public setAdvancedClient ( Evernote\AdvancedClient $advancedClient )
$advancedClient Evernote\AdvancedClient

setChina() 공개 메소드

Sets the china flag to true or false
public setChina ( boolean $china )
$china boolean

setSandbox() 공개 메소드

Sets the sandbox flag to true or false
public setSandbox ( boolean $sandbox )
$sandbox boolean

setToken() 공개 메소드

Sets the authentication token
public setToken ( string $token )
$token string

shareNote() 공개 메소드

Shares a note and returns the share url
public shareNote ( Evernote\Model\Note $note ) : null | string
$note Evernote\Model\Note
리턴 null | string

uploadNote() 공개 메소드

Sends a new Note to the API
public uploadNote ( Evernote\Model\Note $note, Evernote\Model\Notebook $notebook = null ) : Evernote\Model\Note
$note Evernote\Model\Note
$notebook Evernote\Model\Notebook
리턴 Evernote\Model\Note

프로퍼티 상세

$advancedClient 보호되어 있는 프로퍼티

protected AdvancedClient,Evernote $advancedClient
리턴 Evernote\AdvancedClient

$businessAuth 보호되어 있는 프로퍼티

protected AuthenticationResult,EDAM\UserStore $businessAuth
리턴 EDAM\UserStore\AuthenticationResult

$businessNoteStore 보호되어 있는 프로퍼티

protected NoteStoreClient,EDAM\NoteStore $businessNoteStore
리턴 EDAM\NoteStore\NoteStoreClient

$businessToken 보호되어 있는 프로퍼티

protected string $businessToken
리턴 string

$china 보호되어 있는 프로퍼티

protected bool $china
리턴 boolean

$isBusinessUser 보호되어 있는 프로퍼티

protected $isBusinessUser

$logger 보호되어 있는 프로퍼티

protected LoggerInterface,Psr\Log $logger
리턴 Psr\Log\LoggerInterface

$sandbox 보호되어 있는 프로퍼티

protected bool $sandbox
리턴 boolean

$token 보호되어 있는 프로퍼티

protected string $token
리턴 string

$userNoteStore 보호되어 있는 프로퍼티

protected NoteStoreClient,EDAM\NoteStore $userNoteStore
리턴 EDAM\NoteStore\NoteStoreClient