Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 699 Bytes

Get Topic.md

File metadata and controls

19 lines (15 loc) · 699 Bytes

Get Topic

Topics are a way to organize Metrics and other content into thematic groups.

This example assumes you have configured your Wikirate REST client. Instructions on how to configure a client can be found in examples/Configurations.md

The get_topic method take as an input either the topic name or the topic's identifier.

# get a company by name, returns a Topic object
topic = client.get_topic("Environment")
# prints the company as a json
puts topic.to_json
# prints the raw json response
puts topic.raw_json
# get a company by id, returns a Topic object
topic = client.get_topic(39152)