Cli-microsoft365: Enhance Yammer message list command

Created on 5 Nov 2019  ·  3Comments  ·  Source: pnp/cli-microsoft365

As promised we implemented in #1171 the standard message enumeration for Yammer ("All" conversation feed).
This issue is going to extend the capability of this command and integrate the missing endpoints for message retrieval

Usage

yammer message list [options]

New options added to the existing command

Option | Description
-- | --
-f, --feedType [feedType] | All,Top,My,Following,Sent,Private,Received - Returns messages from a specific feed. Defaults to All
--groupId [groupId] | Returns the messages from a specific group
--threadId [threadId] | Returns the messages from a specific thread

Additional Information

These are the messages based on the feedType property:

  • All: Corresponds to “All” conversations in the Yammer web interface.
  • Top: The algorithmic feed for the user that corresponds to “Top” conversations. The Top conversations feed is the feed currently shown in the Yammer mobile apps.
  • My: The user’s feed, based on the selection they have made between “Following” and “Top” conversations
  • Following: The “Following” feed which is conversations involving people and topics that the user is following.
  • Sent: All messages sent by the user.
  • Private: Private messages received by the user.
  • Received: All messages received by the user.

All options use a dedicated endpoint from the Yammer API but follow the same parameters as in the original Yammer list message command. You can see that the "All" implementation follows this endpoint https://developer.yammer.com/docs/messagesjson while the "Top" messages follow this endpoint https://developer.yammer.com/docs/messagesalgojson using the same.

Just assign it to me.

enhancement work in progress

Most helpful comment

Thanks @plamber we like consistency 👍🏻

I've made a slight amendment to the OP to 'uncomment' the options table.

Thank you for your continued support to this project ❤️

All 3 comments

Thank you for proposing this command enhancement @plamber 👍🏻

Could you add the short (e.g. -f) options to your proposed spec?

@garrytrinder added one for the feedType but would avoid having one for the groupId and threadId. I try to be consistent with the other commands. We haven't used shorteners there

Thanks @plamber we like consistency 👍🏻

I've made a slight amendment to the OP to 'uncomment' the options table.

Thank you for your continued support to this project ❤️

Was this page helpful?
0 / 5 - 0 ratings