npm.io
0.2.0 • Published 10 years ago

pixiv-auth-got

Licence
MIT
Version
0.2.0
Deps
1
Vulns
1
Weekly
0
Stars
2

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

Keywords