Type Definitions
Basic Data for Publishing Content
First, we define a series of types as the communication foundation for the extension to publish content.
When you need to publish content, you need to organize data of type SyncData
, then call the funcPublish
function to publish.
Organization of Publishing Data
Publishing data needs to be organized according to platform type, such as dynamic publishing, article publishing, video publishing, etc.
For example, when you want to publish dynamics, you need to organize data of type DynamicData
into the data
field of SyncData
.
Platform Information
When you organize SyncData
data, you need to get basic platform information, such as platform name, injection URL, etc.
For ease of management, we define data of type PlatformInfo
to organize platform information.
Tab Management
Tab management is another important feature of the extension, used to manage tabs created during the publishing process.
We define data of type TabManagerMessage
to organize tab management data.
Extension Interface
Extension interface is another important feature of the extension. We allow developers to call the extension's content publishing functionality through the extension interface.
We define data of types ExtensionExternalRequest
and ExtensionExternalResponse
to organize extension interface data.
For more information, refer to API Documentation