0.2.0 • Published 8 years ago
pixiv-auth-got v0.2.0
pixiv-auth-got
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