lib/mambanation/base.rb in mambanation-0.1.9 vs lib/mambanation/base.rb in mambanation-0.1.10
- old
+ new
@@ -129,19 +129,19 @@
#
def user_posts(id)
perform_get("/users/#{id.to_i}/posts.json")
end
- def create_post(post,user_id,app_id)
- perform_post("/posts", :body => { :post => post , :user_id => user_id , :fb_sig_app_id => app_id})
+ def create_post(id, app_id, post)
+ perform_post("/posts", :body => { :post => post , :user_id => id , :fb_sig_app_id => app_id})
end
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 } })
+ perform_post("/posts/#{id}/publish.json", :body => { :post => { :stream_id => stream_id } })
end
#
# Roles
#