lamernews-api-client
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

Lamer News API Client

npm version

A JavaScript API client for the Lamer News API with included TypeScript definitions.

Note this package is still under development.

Source code is generated from the OpenAPI spec using the typescript-fetch template.

Getting Started

Install:

npm install lamernews-api-client --save

Usage:

import { Configuration, NewsApi, SortType } from 'lamernews-api-client';

const apiConfig = new Configuration({
  basePath: 'https://echojs.com',
});

const newsApi = new NewsApi(apiConfig);

newsApi
  .getNews({
    sort: SortType.Top,
    start: 0,
    count: 30,
  })
  .then((response) => {
    console.log(response);
  });

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    1
  • 0.0.1
    0

Package Sidebar

Install

npm i lamernews-api-client

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

80.5 kB

Total Files

59

Last publish

Collaborators

  • badsyntax