Module: YammerApi::Api::Feed
Instance Method Summary collapse
-
#about_topic(id, options = {}) ⇒ Yammer::Post
Messages that have the topic with given ID.
-
#direct_messages(options = {}) ⇒ Yammer::Post
Private Messages (aka Direct Messages) for the logged-in user.
-
#messages(options = {}) ⇒ Yammer::Post
Returns the 20 most recent messages in this network.
-
#messages_from(id, options = {}) ⇒ Yammer::Post
Messages sent by the user with the given ID.
-
#messages_received(options = {}) ⇒ Yammer::Post
Messages received by the logged-in user.
-
#messages_sent(options = {}) ⇒ Yammer::Post
Returns the 20 sent messages by the current logged in user.
-
#my_feed(options = {}) ⇒ Yammer::Post
Messages followed by the logged-in user.
-
#thread(id, options = {}) ⇒ Yammer::Post
Messages in the thread with the given ID.
Methods included from Helper
Instance Method Details
#about_topic(id, options = {}) ⇒ Yammer::Post
Important to note that the XML format returns a different structure than the JSON one. So we only support the JSON format for this method.
Messages that have the topic with given ID. Corresponds to the messages on a topic’s page on the website.
146 147 148 149 |
# File 'lib/yammer_api/api/feed.rb', line 146 def about_topic(id, ={}) path = "/messages/about_topic/#{id}.json" + params().to_s get_and_parse_posts path, end |
#direct_messages(options = {}) ⇒ Yammer::Post
Important to note that the XML format returns a different structure than the JSON one. So we only support the JSON format for this method.
Private Messages (aka Direct Messages) for the logged-in user. Corresponds to the “Direct Messages” section on the website.
83 84 85 86 |
# File 'lib/yammer_api/api/feed.rb', line 83 def (={}) path = "/messages/private.json" + params().to_s get_and_parse_dms path, end |
#messages(options = {}) ⇒ Yammer::Post
Developers should note that a strict rate limit is applied to all API requests, so clients should never poll for new messages more frequently than every 30 seconds to ensure that the user is still able to use the API for posting messages, etc.
Returns the 20 most recent messages in this network. Corresponds to the “Company Feed” tab on the website.
22 23 24 25 |
# File 'lib/yammer_api/api/feed.rb', line 22 def (={}) path = "/messages.json" + params().to_s get_and_parse_posts path, end |
#messages_from(id, options = {}) ⇒ Yammer::Post
Important to note that the XML format returns a different structure than the JSON one. So we only support the JSON format for this method.
Messages sent by the user with the given ID. Corresponds to the messages on a user profile page on the website.
125 126 127 128 |
# File 'lib/yammer_api/api/feed.rb', line 125 def (id, ={}) path = "/messages/from_user/#{id}.json" + params().to_s get_and_parse_posts path, end |
#messages_received(options = {}) ⇒ Yammer::Post
Important to note that the XML format returns a different structure than the JSON one. So we only support the JSON format for this method.
Messages received by the logged-in user. Corresponds to the “Received” tab on the website.
63 64 65 66 |
# File 'lib/yammer_api/api/feed.rb', line 63 def (={}) path = "/messages/received.json" + params().to_s get_and_parse_posts path, end |
#messages_sent(options = {}) ⇒ Yammer::Post
Important to note that the XML format returns a different structure than the JSON one. So we only support the JSON format for this method.
Returns the 20 sent messages by the current logged in user. Alias for ‘/api/v1/messages/from_user/logged-in_user_id.format`. Corresponds to the “Sent” tab on the website.
43 44 45 46 |
# File 'lib/yammer_api/api/feed.rb', line 43 def (={}) path = "/messages/sent.json" + params().to_s get_and_parse_posts path, end |
#my_feed(options = {}) ⇒ Yammer::Post
Important to note that the XML format returns a different structure than the JSON one. So we only support the JSON format for this method.
Messages followed by the logged-in user. Corresponds to the “My Feed” tab on the website.
103 104 105 106 107 |
# File 'lib/yammer_api/api/feed.rb', line 103 def my_feed(={}) #response = get('messages/following', options, :json) path = "/messages/following.json" + params().to_s get_and_parse_posts path, end |
#thread(id, options = {}) ⇒ Yammer::Post
Does not accept the threaded parameter.
Messages in the thread with the given ID. Corresponds to the page you’d see when clicking on “in reply to” on the website.
166 167 168 169 |
# File 'lib/yammer_api/api/feed.rb', line 166 def thread(id, ={}) path = "/messages/in_thread/#{id}.json" + params().to_s get_and_parse_posts path, end |