lib/discourse_api/api/posts.rb in discourse_api-0.38.0 vs lib/discourse_api/api/posts.rb in discourse_api-0.39.0

- old
+ new

@@ -20,9 +20,15 @@ .optional(:version) response = get("/posts/#{id}.json", args) response[:body] end + def posts(args = {}) + args = API.params(args).default(before: 0) + response = get("/posts.json", args) + response[:body] + end + def wikify_post(id) put("/posts/#{id}/wiki", wiki: true) end def edit_post(id, raw)