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

0.2.2 • 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

140

Version

0.2.2

License

(MIT OR Apache-2.0)

Unpacked Size

433 kB

Total Files

8

Last publish

Collaborators

  • anxolin
  • fairlighteth
  • fedgiac
  • harisang
  • cowprotocol_dev