Method: Appwrite::Messaging#get_topic
- Defined in:
- lib/appwrite/services/messaging.rb
#get_topic(topic_id:) ⇒ Topic
Get a topic by its unique ID.
1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 |
# File 'lib/appwrite/services/messaging.rb', line 1619 def get_topic(topic_id:) api_path = '/messaging/topics/{topicId}' .gsub('{topicId}', topic_id) if topic_id.nil? raise Appwrite::Exception.new('Missing required parameter: "topicId"') end api_params = { } api_headers = { } @client.call( method: 'GET', path: api_path, headers: api_headers, params: api_params, response_type: Models::Topic ) end |