Skip to content

Commit

Permalink
Add Method now supports ToRead or 'Read Later'. Patch submitted by gi…
Browse files Browse the repository at this point in the history
…thub.com/chrispoole643 added to codebase
  • Loading branch information
morgan craft committed Jan 27, 2011
1 parent bcf71fc commit d6e137c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion added_features.markdown
@@ -1,4 +1,5 @@
# Recently Added Features #

* GZIP compression requests added by default, faster transfer rates, on tests it would compress payloads by half
* Updated docs thanks to the help of Paul Mucur and Matt Deboard
* Updated docs thanks to the help of Paul Mucur and Matt Deboard
* Add Method now supports ToRead or 'Read Later' support
3 changes: 2 additions & 1 deletion pinboard.py
Expand Up @@ -392,11 +392,12 @@ def dates(self, tag=""):

# Methods to modify pinboard.in content

def add(self, url, description, extended="", tags=(), date=""):
def add(self, url, description, extended="", tags=(), date="", toread="no"):
"""Add a new post to pinboard.in"""
query = {}
query["url"] = url
query ["description"] = description
query["toread"] = toread
if extended:
query["extended"] = extended
if tags and (isinstance(tags, TupleType) or isinstance(tags, ListType)):
Expand Down

0 comments on commit d6e137c

Please sign in to comment.