class Pinboard::Client

Defined in:

pinboard/client.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(token, transport : Transport::Base = Transport::HTTP.new) #

[View source]

Instance Method Detail

def add(post : Post) #

Add a bookmark, but don't replace if it already existed.


[View source]
def add!(post) #

Add a bookmark, always replacing it.


[View source]
def dates(tags = nil) #

[View source]
def delete(url) #

Delete a bookmark by URL.


[View source]
def get(date : Time | Nil = nil, tags : Array(String) | Nil = nil, meta = false) #

Find posts by tag, or date.


[View source]
def get(url) #

Get a single Post by URL.


[View source]
def last_update #

Returns the most recent time a bookmark was added, updated or deleted.


[View source]
def posts(tags = nil, page = 0, start_at = nil, end_at = nil) #

[View source]
def recent(tags = nil, count = 15) #

Returns a list of the user's most recent posts, filtered by tag.


[View source]
def transport : Pinboard::Transport::Base #

[View source]
def transport=(transport : Pinboard::Transport::Base) #

[View source]