@cowprotocol/cms
TypeScript icon, indicating that this package has built-in type declarations

0.11.0 • Public • Published

CoW CMS Library

Library for CoW CMS.

It exports the types and client to interact with the CMS API.

🚀 Usage

import { CoWClient } from 'cow-cms';

// Create a new client
const client = new CoWClient({
  url: 'https://cms.cow.fi'
});

// Get 25 articles
const { data, error, response } = await client.GET("/articles", {
  params: {
    query: {
      "pagination[page]": 0,
      "pagination[pageSize]": 25
    }
  }
})

Readme

Keywords

none

Package Sidebar

Install

npm i @cowprotocol/cms

Weekly Downloads

269

Version

0.11.0

License

(MIT OR Apache-2.0)

Unpacked Size

867 kB

Total Files

8

Last publish

Collaborators

  • fairlighteth
  • cowprotocol_dev
  • harisang
  • fedgiac
  • anxolin