lib/mambanation/base.rb in mambanation-0.1.1 vs lib/mambanation/base.rb in mambanation-0.1.2
- old
+ new
@@ -129,16 +129,20 @@
#
def user_posts(id)
perform_get("/users/#{id.to_i}/posts.json")
end
- def publish_post(post)
- perform_post("/posts/publish", :body => { :post => post })
+ def create_post(post)
+ perform_post("/posts/create", :body => { :post => post })
end
def post(id)
perform_get("/posts/#{id.to_i}.json")
end
+
+ def publish_post(id, stream_id)
+ perform_post("/posts/#{id.to_i}/publish",:body =>{ :post => { :stream_id => stream_id } })
+ en
#
# Roles
#
def user_roles(id)