ReadonlyillustsIllust API namespace.
ReadonlyimagesImage fetch helpers.
ReadonlymangaManga API namespace.
ReadonlynovelsNovel API namespace.
ReadonlyugoiraUgoira API namespace.
ReadonlyusersUser API namespace.
Numeric user ID of the authenticated account.
Available immediately after PixivClient.of resolves.
The pixiv OAuth endpoint returns the ID as a string; this getter
normalises it to number for consistency with resource method params
(e.g. UserBookmarksIllustParams.userId).
Returns the current OAuth access token.
The access token is short-lived and changes after each call to PixivClient.of and after each automatic token refresh triggered by a 401 response.
The current bearer access token string
Returns the current OAuth refresh token.
The refresh token is long-lived and is used to obtain new access tokens. It may rotate after a successful token refresh.
The current refresh token string
StaticofCreates a PixivClient by refreshing the given token.
Pixiv refresh token
Optionaloptions: PixivClientOptionsOptional retry and response interceptor configuration
A fully initialised PixivClient
Main client for the pixiv API.
Create an instance via PixivClient.of — the constructor is private because initialisation requires an async token refresh.