Sha256: 0b22f230b40ff4ba8d4a9d743809cdadf53bfcac6560ae359b1036c5bc308982
Contents?: true
Size: 530 Bytes
Versions: 3
Compression:
Stored size: 530 Bytes
Contents
module Panoptes class Client module Comments # Post a comment to a talk discussion # # @param discussion_id [Integer] filter by focussable id # @param focus_type [String] filter by focussable type # @return list of discussions def create_comment(discussion_id:, body:) user_id = token_contents["id"] response = talk.post("/comments", comments: {discussion_id: discussion_id, body: body, user_id: user_id}) response.fetch("comments")[0] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
panoptes-client-1.0.0.pre1 | lib/panoptes/client/comments.rb |
panoptes-client-1.0.0.pre | lib/panoptes/client/comments.rb |
panoptes-client-0.4.0 | lib/panoptes/client/comments.rb |