Use Resource API - Fluid Topics - 3.8 - Technical Notes

Develop Connectors with the Fluid Topics API

Product
Fluid Topics
Fluid Topics Version
3.8
Category
Technical Notes
Language
English
Target 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>'
)