diff options
author | Pedro Silva <psilva+git@pedrosilva.pt> | 2013-04-04 14:41:29 +0100 |
---|---|---|
committer | Pedro Silva <psilva+git@pedrosilva.pt> | 2013-04-04 14:41:29 +0100 |
commit | 84ae7c75b70cf2b8a94e267801ac87bd709c847d (patch) | |
tree | efd66355a2521ce6257b0d20a615b4f539b80198 | |
parent | 3d9f4718032c3ee50a0165e32c8d6c59b153fe22 (diff) |
Implement ttrss-share-to-published method
-rw-r--r-- | ttrss.el | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -601,14 +601,12 @@ following key-value pairs: ;;; TODO: Implement following methods: -;; catchupFeed -;; shareToPublished ;; subscribeToFeed ;; unsubscribeFeed ;; getFeedTree (defun ttrss-catchup-feed (address sid feed-id) - "Try to catchup feed at ADDRESS using SID with FEED-ID. + "Catchup, at ADDRESS using SID, FEED-ID. Returns a status string (typically 'OK')." (ttrss-post-request address :status @@ -616,5 +614,16 @@ Returns a status string (typically 'OK')." :sid sid :feed_id feed-id)) +(defun ttrss-share-to-published (address sid title url content) + "Publish, at ADDRESS using SID, an article with TITLE, URL, and CONTENT +Returns a status string (typically 'OK')." + (ttrss-post-request address + :status + :op "shareToPublished" + :sid sid + :title title + :url url + :content content)) + (provide 'ttrss) ;;; ttrss.el ends here |