Use Resource API - Fluid Topics - 3.7 - Technical Notes

Develop Connectors with the Fluid Topics API

Product
Fluid Topics
FT_Version
3.7
Category
Technical Notes
language
English
audience
public

The following lines shows how to build a Resource object:

from fluidtopics.connector import Resource

resource = Resource.from_uri(
resource_id="my-resource-img",
uri="/path/to/an/image.jpg"
)

topic_A = Topic.create(
topic_id="topic-a-id",
title="Topic A title",
body='<p>Body of the topic <strong>A</strong></p><p><img src="my-resource-img"/></p>'
)