Hierarchy

  • CommonHttpService
    • LikeService

Constructors

  • Internal

    Create a new instance of the service.

    Parameters

    • getClientInstance: (() => CommonHttpClient)
        • (): CommonHttpClient
        • Returns CommonHttpClient

    Returns LikeService

Methods

  • Returns the count of likes of specific blog post.

    Permissions required: Permission to view the content of the blog post and its corresponding space.

    Parameters

    • params: {
          id: number;
      }
      • id: number

        The ID of the blog post for which like count should be returned.

    Returns Promise<{
        count?: number;
    } & {
        [key: string]: unknown;
    }>

    Returned if the requested count is returned.

    GET /blogposts/{id}/likes/count @scopes-current read:page:confluence

  • Returns the account IDs of likes of specific blog post.

    Permissions required: Permission to view the content of the blog post and its corresponding space.

    Parameters

    • params: {
          cursor?: string;
          id: number;
          limit?: number;
      }
      • Optionalcursor?: string

        Used for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results.

      • id: number

        The ID of the blog post for which account IDs should be returned.

      • Optionallimit?: number

        Maximum number of account IDs per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results.

    Returns Promise<{
        _links?: MultiEntityLinks;
        results?: Like[];
    } & {
        [key: string]: unknown;
    }>

    Returned if the requested account IDs are returned.

    GET /blogposts/{id}/likes/users @scopes-current read:page:confluence

  • Returns the count of likes of specific footer comment.

    Permissions required: Permission to view the content of the page/blogpost and its corresponding space.

    Parameters

    • params: {
          id: number;
      }
      • id: number

        The ID of the footer comment for which like count should be returned.

    Returns Promise<{
        count?: number;
    } & {
        [key: string]: unknown;
    }>

    Returned if the requested count is returned.

    GET /footer-comments/{id}/likes/count @scopes-current read:comment:confluence

  • Returns the account IDs of likes of specific footer comment.

    Permissions required: Permission to view the content of the page/blogpost and its corresponding space.

    Parameters

    • params: {
          cursor?: string;
          id: number;
          limit?: number;
      }
      • Optionalcursor?: string

        Used for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results.

      • id: number

        The ID of the footer comment for which like count should be returned.

      • Optionallimit?: number

        Maximum number of account IDs per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results.

    Returns Promise<{
        _links?: MultiEntityLinks;
        results?: Like[];
    } & {
        [key: string]: unknown;
    }>

    Returned if the requested account IDs are returned.

    GET /footer-comments/{id}/likes/users @scopes-current read:comment:confluence

  • Returns the count of likes of specific inline comment.

    Permissions required: Permission to view the content of the page/blogpost and its corresponding space.

    Parameters

    • params: {
          id: number;
      }
      • id: number

        The ID of the inline comment for which like count should be returned.

    Returns Promise<{
        count?: number;
    } & {
        [key: string]: unknown;
    }>

    Returned if the requested count is returned.

    GET /inline-comments/{id}/likes/count @scopes-current read:comment:confluence

  • Returns the account IDs of likes of specific inline comment.

    Permissions required: Permission to view the content of the page/blogpost and its corresponding space.

    Parameters

    • params: {
          cursor?: string;
          id: number;
          limit?: number;
      }
      • Optionalcursor?: string

        Used for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results.

      • id: number

        The ID of the inline comment for which like count should be returned.

      • Optionallimit?: number

        Maximum number of account IDs per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results.

    Returns Promise<{
        _links?: MultiEntityLinks;
        results?: Like[];
    } & {
        [key: string]: unknown;
    }>

    Returned if the requested account IDs are returned.

    GET /inline-comments/{id}/likes/users @scopes-current read:comment:confluence

  • Returns the count of likes of specific page.

    Permissions required: Permission to view the content of the page and its corresponding space.

    Parameters

    • params: {
          id: number;
      }
      • id: number

        The ID of the page for which like count should be returned.

    Returns Promise<{
        count?: number;
    } & {
        [key: string]: unknown;
    }>

    Returned if the requested count is returned.

    GET /pages/{id}/likes/count @scopes-current read:page:confluence

  • Returns the account IDs of likes of specific page.

    Permissions required: Permission to view the content of the page and its corresponding space.

    Parameters

    • params: {
          cursor?: string;
          id: number;
          limit?: number;
      }
      • Optionalcursor?: string

        Used for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results.

      • id: number

        The ID of the page for which like count should be returned.

      • Optionallimit?: number

        Maximum number of account IDs per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results.

    Returns Promise<{
        _links?: MultiEntityLinks;
        results?: Like[];
    } & {
        [key: string]: unknown;
    }>

    Returned if the requested account IDs are returned.

    GET /pages/{id}/likes/users @scopes-current read:page:confluence

  • Method to initialize the class. Normally used to set up validation rules.

    Returns void