@book000/pixivts — pixiv Unofficial API Library for TypeScript
import { PixivClient } from '@book000/pixivts'const client = await PixivClient.of(process.env.PIXIV_REFRESH_TOKEN)const result = await client.illusts.detail({ illustId: 12345 })if (result.isOk) console.log(result.value.illust.title) Copy
import { PixivClient } from '@book000/pixivts'const client = await PixivClient.of(process.env.PIXIV_REFRESH_TOKEN)const result = await client.illusts.detail({ illustId: 12345 })if (result.isOk) console.log(result.value.illust.title)
Creates a successful Result<T, never>.
Result<T, never>
The success value
@book000/pixivts — pixiv Unofficial API Library for TypeScript
Example