Method: Databasedotcom::Client#trending_topics

Defined in:
lib/databasedotcom/client.rb

Returns an array of trending topic names.



278
279
280
281
282
# File 'lib/databasedotcom/client.rb', line 278

def trending_topics
  result = http_get("/services/data/v#{self.version}/chatter/topics/trending")
  result = JSON.parse(result.body)
  result["topics"].collect { |topic| topic["name"] }
end