Constructors
constructor
Parameters
Properties
Private client
Methods
get
- get(postId: number, params?: { formatDisabled: boolean; sourceDisabled: boolean }): Promise<Response<PostDetail>>
Parameters
postId: number
Optional params: { formatDisabled: boolean; sourceDisabled: boolean }
formatDisabled: boolean
sourceDisabled: boolean
getBySlug
- getBySlug(slug: string, params: { formatDisabled: boolean; sourceDisabled: boolean }): Promise<Response<PostDetail>>
Parameters
slug: string
params: { formatDisabled: boolean; sourceDisabled: boolean }
formatDisabled: boolean
sourceDisabled: boolean
getNextPostById
Parameters
getPrevPostById
Parameters
like
- like(postId: number): Promise<void>
Parameters
Returns Promise<void>
list
Parameters
Optional keyword: string
Optional categoryId: number
search
Parameters