API for recording user feedback.

Constructors

Methods

  • Record the time spent by a user on a paper.

    Parameters

    • user_id: string

      The ID of the user.

    • paper_id: string

      The ID of the paper.

    • timeSpent: number

      The time spent by the user.

    • token: string

      The user's token.

    Returns Promise<any>

    A promise that resolves to the response.

  • Record a user click on a paper.

    Parameters

    • user_id: string

      The ID of the user.

    • paper_id: string

      The ID of the paper.

    • token: string

      The user's token.

    Returns Promise<any>

    A promise that resolves to the response.