Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • CommentClient

Index

Constructors

Properties

client: HttpClient

Methods

  • Create a comment

    Parameters

    Returns Promise<object>

  • Get comments as tree view

    Parameters

    • target: <internal>.commentTargets

      posts, sheets, or journals

    • targetId: number

      the id of the target

    • Optional params: { page?: number; sort?: string[] }

      optional query params

      • Optional page?: number
      • Optional sort?: string[]

    Returns Promise<Response<Page<BaseComment>>>

  • Get comments as list view

    Parameters

    • target: <internal>.commentTargets

      posts, sheets, or journals

    • targetId: number

      the id of the target

    • Optional params: { page?: number; sort?: string[] }

      optional query params

      • Optional page?: number
      • Optional sort?: string[]

    Returns Promise<Response<Page<BaseCommentWithParent>>>

  • Get children comments

    Parameters

    • target: <internal>.commentTargets

      posts, sheets, or journals

    • targetId: number

      the id of the target

    • commentId: number

      the id of the top comment

    • Optional params: { sort?: string[] }

      optional query params

      • Optional sort?: string[]

    Returns Promise<Response<BaseComment[]>>

  • Get top comments

    Parameters

    • target: <internal>.commentTargets

      posts, sheets, or journals

    • targetId: number

      the id of the target

    • Optional params: { page: number; sort?: string[] }

      optional query params

      • page: number
      • Optional sort?: string[]

    Returns Promise<Response<Page<CommentWithHasChildren>>>

Generated using TypeDoc