Module: Yammer::Api::Message
- Included in:
- Client
- Defined in:
- lib/yammer/api/message.rb
Instance Method Summary collapse
- #all_messages(opts = {}) ⇒ Yammer::ApiResponse
- #create_message(body, opts = {}) ⇒ Yammer::ApiResponse
- #delete_message(id) ⇒ Yammer::ApiResponse
- #followed_messages(opts = {}) ⇒ Yammer::ApiResponse
- #get_message(id) ⇒ Yammer::ApiResponse
- #like_message(id) ⇒ Yammer::ApiResponse
- #messages_about_topic(id, opts = {}) ⇒ Yammer::ApiResponse
- #messages_for_open_graph_object(id) ⇒ Yammer::ApiResponse
- #messages_from_user(id, opts = {}) ⇒ Yammer::ApiResponse
- #messages_in_group(id, opts = {}) ⇒ Yammer::ApiResponse
- #messages_in_thread(id, opts = {}) ⇒ Yammer::ApiResponse
- #messages_liked_by(id, opts = {}) ⇒ Yammer::ApiResponse
- #messages_received(opts = {}) ⇒ Yammer::ApiResponse
- #messages_sent(opts = {}) ⇒ Yammer::ApiResponse
- #private_messages(opts = {}) ⇒ Yammer::ApiResponse
- #unlike_message(id) ⇒ Yammer::ApiResponse
Instance Method Details
#all_messages(opts = {}) ⇒ Yammer::ApiResponse
84 85 86 |
# File 'lib/yammer/api/message.rb', line 84 def (opts={}) get("/api/v1/messages", opts) end |
#create_message(body, opts = {}) ⇒ Yammer::ApiResponse
42 43 44 45 |
# File 'lib/yammer/api/message.rb', line 42 def (body, opts={}) opts[:body] = body post("/api/v1/messages", opts) end |
#delete_message(id) ⇒ Yammer::ApiResponse
57 58 59 |
# File 'lib/yammer/api/message.rb', line 57 def (id) delete("/api/v1/messages/#{id}") end |
#followed_messages(opts = {}) ⇒ Yammer::ApiResponse
140 141 142 |
# File 'lib/yammer/api/message.rb', line 140 def (opts={}) get("/api/v1/messages/following", opts) end |
#get_message(id) ⇒ Yammer::ApiResponse
70 71 72 |
# File 'lib/yammer/api/message.rb', line 70 def (id) get("/api/v1/messages/#{id}") end |
#like_message(id) ⇒ Yammer::ApiResponse
213 214 215 |
# File 'lib/yammer/api/message.rb', line 213 def (id) post("/api/v1/messages/liked_by/current.json?message_id=#{id}", {}) end |
#messages_about_topic(id, opts = {}) ⇒ Yammer::ApiResponse
170 171 172 |
# File 'lib/yammer/api/message.rb', line 170 def (id, opts={}) get("/api/v1/messages/about_topic/#{id}", opts) end |
#messages_for_open_graph_object(id) ⇒ Yammer::ApiResponse
254 255 256 |
# File 'lib/yammer/api/message.rb', line 254 def (id) get("/api/v1/messages/open_graph_objects/#{id}") end |
#messages_from_user(id, opts = {}) ⇒ Yammer::ApiResponse
155 156 157 |
# File 'lib/yammer/api/message.rb', line 155 def (id, opts={}) get("/api/v1/messages/from_user/#{id}", opts) end |
#messages_in_group(id, opts = {}) ⇒ Yammer::ApiResponse
185 186 187 |
# File 'lib/yammer/api/message.rb', line 185 def (id, opts={}) get("/api/v1/messages/in_group/#{id}", opts) end |
#messages_in_thread(id, opts = {}) ⇒ Yammer::ApiResponse
241 242 243 |
# File 'lib/yammer/api/message.rb', line 241 def (id, opts={}) get("/api/v1/messages/in_thread/#{id}", opts) end |
#messages_liked_by(id, opts = {}) ⇒ Yammer::ApiResponse
200 201 202 |
# File 'lib/yammer/api/message.rb', line 200 def (id, opts={}) get("/api/v1/messages/liked_by/#{id}", opts) end |
#messages_received(opts = {}) ⇒ Yammer::ApiResponse
112 113 114 |
# File 'lib/yammer/api/message.rb', line 112 def (opts={}) get("/api/v1/messages/received", opts) end |
#messages_sent(opts = {}) ⇒ Yammer::ApiResponse
98 99 100 |
# File 'lib/yammer/api/message.rb', line 98 def (opts={}) get("/api/v1/messages/sent", opts) end |
#private_messages(opts = {}) ⇒ Yammer::ApiResponse
126 127 128 |
# File 'lib/yammer/api/message.rb', line 126 def (opts={}) get("/api/v1/messages/private", opts) end |
#unlike_message(id) ⇒ Yammer::ApiResponse
226 227 228 |
# File 'lib/yammer/api/message.rb', line 226 def (id) delete("/api/v1/messages/liked_by/current.json?message_id=#{id}", {}) end |