/messages.json - Get

Definition

https://www.yammer.com/api/v1/messages.json

Parameters

Name In Required Type Description
older_than query integer Returns messages older than the message ID specified as a numeric string. This is useful for paginating messages. For example, if you’re currently viewing 20 messages and the oldest is number 2912, you could append “?older_than=2912″ to your request to get the 20 messages prior to those you’re seeing.
newer_than query integer Returns messages newer than the message ID specified as a numeric string. This should be used when polling for new messages. If you’re looking at messages, and the most recent message returned is 3516, you can make a request with the parameter “?newer_than=3516″ to ensure that you do not get duplicate copies of messages already on your page.
threaded query boolean threaded=true will only return the thread starter (first message) for each thread. This parameter is intended for apps which need to display message threads collapsed. threaded=extended will return the thread starter messages and the two most recent messages all ordered by activity, as they are viewed in the default view on the Yammer web interface.
limit query integer Return only the specified number of messages. Works for threaded=true and threaded=extended.

Documentation

All public messages in the user’s (whose access token is being used to make the API call, henceforth referred to as current user) Yammer network. Corresponds to “All” conversations in the Classic Yammer web interface.

A 200 OK response includes the following fields.

Field Description
id Id of the message
sender_id Id of the user posting the message
created_at Date and time when the message was created
network_id Id of the network in which this message was posted
group_id Id of the group in which the message was posted
thread_id Id of the thread
notified_user_ids Ids of the users mentioned in the message
privacy Whether the message was posted in a public or private group
liked_by Shows the reactions count on the message and the ids of the users who reacted to the message