PHP 클래스 PinboardAPI

URL: http://github.com/kijin/pinboard-api Version: 0.3.2 Copyright (c) 2012-2016, Kijin Sung Copyright (c) 2014, Erin Dalzell Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
파일 보기 프로젝트 열기: kijin/pinboard-api 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$_instance_hashes

보호된 프로퍼티들

프로퍼티 타입 설명
$_connection_timeout
$_curl_handle
$_instance_hash
$_last_status
$_logging_callback
$_pass
$_request_timeout
$_user

공개 메소드들

메소드 설명
__construct ( $user, $pass, $connection_timeout = 10, $request_timeout = 30 ) Constructor.
__destruct ( ) Destructor.
delete ( $bookmark ) Delete a bookmark.
delete_tag ( $tag ) Delete a tag.
dump ( ) Dump all your bookmarks in an importable format.
enable_logging ( $func ) Enable logging to a user-specified function.
get ( $url = null, $tags = null, $date = null ) Get some bookmarks.
get_all ( $count = null, $offset = null, $tags = null, $from = null, $to = null ) Get all bookmarks.
get_api_token ( ) Get the user's API token.
get_dates ( $tags = null ) Get dates.
get_last_status ( ) Get the last status code.
get_note ( $id ) Get a single note.
get_recent ( $count = 15, $tags = null ) Get recent bookmarks.
get_rss_token ( ) Get the user's secret RSS token.
get_suggested_tags ( $bookmark ) Get tag suggestions for a bookmark.
get_tags ( ) Get all tags.
get_updated_time ( ) Call this before get_all() to check for updates.
list_notes ( ) Get the list of notes.
rename_tag ( $old, $new ) Rename a tag.
save ( $bookmark, $replace = true ) Save a new bookmark. (This include both adding and editing.)
search_by_date ( $date )
search_by_interval ( $from, $to )
search_by_tag ( $tags )
search_by_url ( $url ) Some shortcuts to the above.

보호된 메소드들

메소드 설명
_json_to_bookmark ( $json ) This method builds a PinboardBookmark object from an XML element.
_json_to_note ( $json ) This method builds a PinboardNote object from an XML element.
_json_to_status ( $json ) This method translates XML responses into boolean status codes.
_normalize_tags ( $tags ) Normalize tags.
_remote ( $method, $args = [], $use_json = true ) This method handles all remote method calls.
_to_datetime ( $timestamp ) This method translates timestamps into Pinboard API's datetime format.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( $user, $pass, $connection_timeout = 10, $request_timeout = 30 )

__destruct() 공개 메소드

Destructor.
public __destruct ( )

_json_to_bookmark() 보호된 메소드

This method builds a PinboardBookmark object from an XML element.
protected _json_to_bookmark ( $json )

_json_to_note() 보호된 메소드

This method builds a PinboardNote object from an XML element.
protected _json_to_note ( $json )

_json_to_status() 보호된 메소드

This method translates XML responses into boolean status codes.
protected _json_to_status ( $json )

_normalize_tags() 보호된 메소드

Normalize tags.
protected _normalize_tags ( $tags )

_remote() 보호된 메소드

This method handles all remote method calls.
protected _remote ( $method, $args = [], $use_json = true )

_to_datetime() 보호된 메소드

This method translates timestamps into Pinboard API's datetime format.
protected _to_datetime ( $timestamp )

delete() 공개 메소드

Delete a bookmark.
public delete ( $bookmark )

delete_tag() 공개 메소드

Delete a tag.
public delete_tag ( $tag )

dump() 공개 메소드

Dump all your bookmarks in an importable format.
public dump ( )

enable_logging() 공개 메소드

Enable logging to a user-specified function.
public enable_logging ( $func )

get() 공개 메소드

Get some bookmarks.
public get ( $url = null, $tags = null, $date = null )

get_all() 공개 메소드

Get all bookmarks.
public get_all ( $count = null, $offset = null, $tags = null, $from = null, $to = null )

get_api_token() 공개 메소드

Get the user's API token.
public get_api_token ( )

get_dates() 공개 메소드

Get dates.
public get_dates ( $tags = null )

get_last_status() 공개 메소드

Get the last status code.
public get_last_status ( )

get_note() 공개 메소드

Get a single note.
public get_note ( $id )

get_recent() 공개 메소드

Get recent bookmarks.
public get_recent ( $count = 15, $tags = null )

get_rss_token() 공개 메소드

Get the user's secret RSS token.
public get_rss_token ( )

get_suggested_tags() 공개 메소드

Get tag suggestions for a bookmark.
public get_suggested_tags ( $bookmark )

get_tags() 공개 메소드

Get all tags.
public get_tags ( )

get_updated_time() 공개 메소드

Call this before get_all() to check for updates.
public get_updated_time ( )

list_notes() 공개 메소드

Get the list of notes.
public list_notes ( )

rename_tag() 공개 메소드

Rename a tag.
public rename_tag ( $old, $new )

save() 공개 메소드

Save a new bookmark. (This include both adding and editing.)
public save ( $bookmark, $replace = true )

search_by_date() 공개 메소드

public search_by_date ( $date )

search_by_interval() 공개 메소드

public search_by_interval ( $from, $to )

search_by_tag() 공개 메소드

public search_by_tag ( $tags )

search_by_url() 공개 메소드

Some shortcuts to the above.
public search_by_url ( $url )

프로퍼티 상세

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

protected $_connection_timeout

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

protected $_curl_handle

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

protected $_instance_hash

$_instance_hashes 공개적으로 정적으로 프로퍼티

public static $_instance_hashes

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

protected $_last_status

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

protected $_logging_callback

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

protected $_pass

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

protected $_request_timeout

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

protected $_user