Announcing a Node.js Chatter Plugin for nforce

After I woke up from my turkey-induced coma on Thanksgiving I wanted to send Chatter to everyone in our Appirio Salesforce org to inform them that I was still alive.

Sure, I could have fired up the trusty, ole Chatter app but since I like to work from the command line, I decided to write a Chatter API plugin for my buddy Kevin O'Hara's #awesome nforce node.js package.

Github repo: https://github.com/jeffdonthemic/nforce-chatter

NPM: https://www.npmjs.org/package/nforce-chatter

I wrote a nforce-tooling plugin for nforce earlier this year and adding another plugin was a snap! One caveat, the Chatter API is #huge so I've only implemented a few methods so far. The plugin is a work in progress so pull requests are welcome!

See the repo for full details, but here's a quick rundown on the 0.0.1 functionality:

userStatistics()

Returns Chatter statistics for a salesforce user.

  • id: Required. The id of the user to return statistics for.

myNewsFeed()

Returns the context user's news feed.

recordFeed()

Returns the feed for a specified record.

  • id: Required. The id of the record to return the feed for.

groupFeed()

Returns the feed for a specified group.

  • id: Required. The id of the group to return the feed for.

postFeedItem()

Posts a new feeditem for a record.

  • id: Required. The ID of the parent this feed element is being posted to. This value can be the ID of a user, group, or record, or the string me to indicate the context user.
  • text: Required. The text of the post.

postComment()

Posts a new comment on a feeditem.

  • id: Required. The id of the feeditem to post the comment
  • text: Required. The text of the comment.

likeFeedItem()

Likes the specified feeditem.

  • id: Required. The id of the feeditem to like.