pixiv-0.1.1: Pixiv API binding based on servant-client
Copyright(c) 2021 The closed eye of love
LicenseBSD-3-Clause
MaintainerPoscat <poscat@mail.poscat.moe>, berberman <berberman@yandex.com>
Stabilityalpha
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Web.Pixiv.API

Description

Functions to access pixiv api. They are supposed to be run in Web.Pixiv.Types.PixivT.

You may notice that except getUserBookmarks, many of functions take a page as input. This is because each query contains 30 entries (except getSpotlightArticles's , which containes 10), i.e. you should pass 2 if you want items ranged from 31 to 60.

Synopsis

Trending

getTrendingTags Source #

Arguments

:: MonadPixiv m 
=> Maybe Bool

includes translated tag results

-> m [TrendingTag] 

Gets trending tags.

getRecommendedIllusts Source #

Arguments

:: MonadPixiv m 
=> Maybe Bool

includes privacy policy

-> Maybe Bool

includes translated tag results

-> m [Illust] 

Gets recommended illustrations of the account which is used for login.

getRecommendedMangas :: MonadPixiv m => Maybe Bool -> Maybe Bool -> m [Illust] Source #

Gets recommended mangas of the account which is used for login.

Illust

getIllustDetail Source #

Arguments

:: MonadPixiv m 
=> Int

illust id

-> m Illust 

Gets the details of a illustration.

getIllustComments Source #

Arguments

:: MonadPixiv m 
=> Int

illust id

-> Int

page

-> m Comments 

Gets the comments of a illustration.

getIllustRelated Source #

Arguments

:: MonadPixiv m 
=> Int

illust id

-> Int

page

-> m [Illust] 

Gets related illustrations.

getIllustRanking Source #

Arguments

:: MonadPixiv m 
=> Maybe RankMode

rank mode

-> Int

page

-> m [Illust] 

Gets ranking illustrations.

getIllustFollow Source #

Arguments

:: MonadPixiv m 
=> Publicity

restrict

-> Int

page

-> m [Illust] 

Gets illustrations of artists which the login account follows.

getIllustNew Source #

Arguments

:: MonadPixiv m 
=> Int

page

-> m [Illust] 

Gets the newest illustrations.

getUgoiraMetadata Source #

Arguments

:: MonadPixiv m 
=> Int

illust id

-> m UgoiraMetadata 

Gets the metadata of a ugoira

Search

searchIllust Source #

Arguments

:: MonadPixiv m 
=> SearchTarget

search target

-> Text

word

-> Maybe Bool

includes translated tag

-> Maybe SortingMethod

sorting method

-> Maybe Duration

duration

-> Int

page

-> m [Illust] 

Searches an illustration.

searchUser Source #

Arguments

:: MonadPixiv m 
=> Text

word

-> Int

page

-> m [UserPreview] 

Searches an user.

User

getUserDetail Source #

Arguments

:: MonadPixiv m 
=> Int

user id

-> m UserDetail 

Gets the details of an user.

getUserIllusts Source #

Arguments

:: MonadPixiv m 
=> Int

user id

-> Maybe IllustType

illust type

-> Int

page

-> m [Illust] 

Gets illustrations submitted by a specific user.

getUserFollowing Source #

Arguments

:: MonadPixiv m 
=> Int

user id

-> Publicity

restrict

-> Int

page

-> m [UserPreview] 

Gets the following of an user.

getUserFollower Source #

Arguments

:: MonadPixiv m 
=> Int

user id

-> Int

page

-> m [UserPreview] 

Gets the followers of an user.

getUserMypixiv Source #

Arguments

:: MonadPixiv m 
=> Int

user id

-> Int

page

-> m [UserPreview] 

Gets mypixiv of an user.

getUserBookmarks Source #

Arguments

:: MonadPixiv m 
=> Int

user id

-> Publicity

restrict

-> Maybe Int

the last illust id of this query

-> m ([Illust], Maybe Int) 

Gets illustrations collected by a specific user. Returns the a list of illustrations and result and an integer for paging.

Article

getSpotlightArticles Source #

Arguments

:: MonadPixiv m 
=> Maybe Text

category

-> Int

page

-> m [SpotlightArticle] 

Gets spotlight articles