Socket
Socket
Sign inDemoInstall

@fluid-topics/public-api

Package Overview
Dependencies
8
Maintainers
2
Versions
61
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @fluid-topics/public-api

Fluid Topics Public API


Version published
Weekly downloads
1.7K
increased by27.05%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

Fluid Topics Public API

Convenient wrapper for Fluid Topics public APIs and models.

Installation

Using npm

npm install @fluid-topics/public-api

Using yarn

yarn add @fluid-topics/public-api

Using jsDelivr CDN

<script src="https://cdn.jsdelivr.net/npm/@fluid-topics/public-api/dist/fluidtopics.min.js"></script>

Using unpkg CDN

<script src="https://unpkg.com/@fluid-topics/public-api/dist/fluidtopics.min.js"></script>

Examples

Typescript

import {
    FluidTopicsApi,
    FtMap
} from "@fluid-topics/public-api"

const api = new FluidTopicsApi("https://doc.fluidtopics.com", "my-ts-integration")

api.getMap("4R52zKZkt~kDZT3ZpoFNng")
        .then((ftMap: FtMap) => console.log(ftMap))

Javascript

ESM/CommonJS:

const {FluidTopicsApi} = require("@fluid-topics/public-api")

const api = new FluidTopicsApi("https://doc.fluidtopics.com", "my-js-integration")

api.getMap("4R52zKZkt~kDZT3ZpoFNng")
        .then(ftMap => console.log(ftMap))

UMD/Browser:

const {FluidTopicsApi} = window.fluidtopics

const api = new FluidTopicsApi("https://doc.fluidtopics.com", "my-js-integration")

api.getMap("4R52zKZkt~kDZT3ZpoFNng")
        .then(ftMap => console.log(ftMap))

Result

{
  title: 'Fluid Topics Release Notes v3.10',
  lang: 'en-US',
  id: '4R52zKZkt~kDZT3ZpoFNng',
  originId: 'FT-3.10-public.ftmap',
  baseId: 'FT-3.10-public.ftmap',
  lastEdition: '2021-09-14',
  lastPublication: '2021-09-14T10:29:12.308153',
  clusterId: 'FT-3.10-public.ftmap',
  editorialType: 'BOOK',
  khubVersion: '3.10.12',
  openMode: 'FLUIDTOPICS',
  prettyUrl: '/go/FT/3.10/Release_Notes',
  readerUrl: '/r/FT/3.10/Release_Notes',
  rightsApiEndpoint: '/api/khub/maps/4R52zKZkt~kDZT3ZpoFNng/rights',
  topicsApiEndpoint: '/api/khub/maps/4R52zKZkt~kDZT3ZpoFNng/topics',
  attachmentsApiEndpoint: '/api/khub/maps/4R52zKZkt~kDZT3ZpoFNng/attachments',
  metadata: [
    { key: 'Product', label: 'Product', values: [...] },
    { key: 'Version_FT', label: 'Version', values: [...] },
    { key: 'Category', label: 'Category', values: [...] },
    { key: 'audience', label: 'Audience', values: [...] },
    { key: 'FT_Version', label: 'Version', values: [...] }
  ]
}

FAQs

Last updated on 22 May 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc