lib/mambanation/base.rb in mambanation-0.1.17 vs lib/mambanation/base.rb in mambanation-0.1.18
- old
+ new
@@ -142,15 +142,15 @@
#
def posts(id, query = {})
perform_get("/posts/#{id}.json", :query => query)
end
- def user_posts(id, app_id, query = {})
- perform_get("/users/#{id.to_i}/posts.json", :query => ({ :fb_application_id => app_id }.merge(query)))
+ def user_posts(id, application_id, query = {})
+ perform_get("/users/#{id.to_i}/posts.json", :query => { :application_id => application_id }.merge(query))
end
- def create_post(id, app_id, post)
- perform_post("/posts", :body => { :post => post , :user_id => id , :fb_sig_app_id => app_id})
+ def create_post(id, post, application_id)
+ perform_post("/posts", :body => { :user_id => id, :post => post, :application_id => application_id })
end
def publish_post(id, stream_id)
perform_post("/posts/#{id}/publish.json", :body => { :post => { :stream_id => stream_id } })
end