Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • PostClient

Index

Constructors

Properties

client: HttpClient

Methods

  • Parameters

    • postId: number

    Returns Promise<Response<Post>>

  • Parameters

    • postIds: number[]

    Returns Promise<Response<Post[]>>

  • Parameters

    • postId: number

    Returns Promise<Response<PostDetail>>

  • getPreviewLinkById(postId: number): Promise<Response<string>>
  • Parameters

    • postId: number

    Returns Promise<Response<string>>

  • Parameters

    • Optional top: number

    Returns Promise<Response<BasePostMinimal[]>>

  • like(postId: number): Promise<void>
  • Parameters

    • postId: number

    Returns Promise<void>

  • updateDraftById(postId: number, originalContent: string, content?: string, keepRaw?: boolean): Promise<Response<BasePostMinimal>>
  • Parameters

    • postId: number
    • originalContent: string
    • Optional content: string
    • Optional keepRaw: boolean

    Returns Promise<Response<BasePostMinimal>>

  • Parameters

    Returns Promise<Response<Post[]>>

Generated using TypeDoc