newspic

1.0.0 • Public • Published

개요

빠르고 간단한 뉴스픽 파트너스 API SDK

npm npm

const NewsPic = require('newspic')
const newspic = new NewsPic('EMAIL', 'PASSWORD')
await newspic.login()

설치

newspic은 npm을 통하여 설치할 수 있습니다.

$ npm install newspic

기능

  • 손쉬운 사용
  • Async/Await, Promise 지원
  • Chaining 지원

시작

$ npm install newspic

const NewsPic = require('newspic')
const newspic = new NewsPic('EMAIL', 'PASSWORD')
await newspic.login()
const newsData = await newspic.fetchChannel(12, 1)
console.log(newsData)
const URL = await newsData[0].fetchURL()
// nid로 URL 생성하기
// const URL = await newspic.fetchURL(newsData[0].nid)
console.log('https://vodo.kr/' + URL)

문서

JSDoc 참고

제작

임세훈 - 포트폴리오

Versions

Current Tags

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

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    1

Package Sidebar

Install

npm i newspic

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

1.04 MB

Total Files

36

Last publish

Collaborators

  • sh9351