0.2.0 • Published 8 years ago

pixiv-auth-got v0.2.0

Weekly downloads
10
License
MIT
Repository
github
Last release
8 years ago

pixiv-auth-got Build Status

pixiv auth got

Install

$ npm install --save pixiv-auth-got

Usage

const PixivAuthGot = require('pixiv-auth-got');

const pixivAuthGot = new PixivAuthGot('your usename', 'your password');

pixivAuthGot.got('https://app-api.pixiv.net/v1/illust/ranking', {mode: 'day'}).then(res => {
	console.log(JSON.stringify(res.body, null, 2));
});

API

PixivAuthGot(username, password)

username

Type: string

password

Type: string

pixivAuthgot.got(endpoint, options)

Same as got.

endpoint

Type: string

pixiv endpoint.

License

MIT © akameco