Skip to content

Commit

Permalink
Add follow/unfollow
Browse files Browse the repository at this point in the history
  • Loading branch information
DuoSRX committed Feb 6, 2012
1 parent 8e4cef3 commit fadf7fc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/clojure_geeklist/core.clj
Expand Up @@ -58,6 +58,16 @@
[id & [options]]
(make-request "users/%s/following" [id] :GET options))

(defn follow
"Follow an user"
[id]
(make-request "follow" [] :POST {:user id :action "follow"}))

(defn unfollow
"Unfollow an user"
[id]
(make-request "follow" [] :POST {:user id}))

(defn user-cards
"Get the given user cards"
[id & [options]]
Expand Down

0 comments on commit fadf7fc

Please sign in to comment.