module SalesforceChatter::Client::FeedItems

Defines methods related to feed items

Public Instance Methods

feed_item(id, options={}) click to toggle source
# File lib/salesforce-chatter/client/feed_items.rb, line 20
def feed_item(id, options={})
  response = get("/chatter/feed-items/#{id}", options)
end
feed_item_create(text, options={}) click to toggle source
# File lib/salesforce-chatter/client/feed_items.rb, line 11
def feed_item_create(text, options={})
  options[:text] = text
  response = post("/chatter/feeds/news/me/feed-items", options)
end
feed_item_destroy(id, options={}) click to toggle source
# File lib/salesforce-chatter/client/feed_items.rb, line 16
def feed_item_destroy(id, options={})
  response = delete("/chatter/feed-items/#{id}", options)
end
feed_items(*args) click to toggle source
# File lib/salesforce-chatter/client/feed_items.rb, line 5
def feed_items(*args)
  options = args.last.is_a?(Hash) ? args.pop : {}
  user = args.first
  response = get('/chatter/feeds/news/me/feed-items', options)
end