lib/mambanation/base.rb in mambanation-0.1.7 vs lib/mambanation/base.rb in mambanation-0.1.8
- old
+ new
@@ -129,15 +129,15 @@
#
def user_posts(id)
perform_get("/users/#{id.to_i}/posts.json")
end
- def create_post(post)
- perform_post("/posts", :body => { :post => post })
+ def create_post(post,user_id)
+ perform_post("/posts", :body => { :post => post , :user_id => user_id })
end
- def posts(id)
- perform_get("/posts/#{id.to_i}.json")
+ def posts(id, query = {})
+ perform_get("/posts/#{id.to_i}.json", :query => query)
end
def publish_post(id, stream_id)
perform_post("/posts/#{id.to_i}/publish.json", :body => { :post => { :stream_id => stream_id } })
end