Skip to content

New Command: Yammer list message #1104

Description

@plamber

This command will return a message from Yammer.

yammer message list --olderThanId <olderThanId> --threaded <threaded> --limit <limit>
  • older_than (optional): 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.
  • threaded (optional): threaded=true will only return the thread starter (first message) for each thread. This parameter is intended for apps that 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 (optional): Return only the specified number of messages. Works for threaded=true and threaded=extended.

I want to start implementing it for the endpoint presented here: https://developer.yammer.com/docs/messagesjson. The same syntax can be used for other message contexts such as https://developer.yammer.com/docs/messagesfollowingjson or https://developer.yammer.com/docs/messagessentjson. My plan was to implement a first version only with the messagejson context and then enchange the command with an additional flag in a separate issue (e.g. --messageContext)

br,
Patrick

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions