Skip to main content

Log in to comment and vote

Comments2

  • Magenta Andromeda

    •

    Oct 30, 2024

    Hi Marcello,

    my idea was an API which I can call with the Admin token, pass the video id and the username to it and it would return true if that user liked that video or false otherwise. The goal is to use it in our mobile app to toggle the favorite flag (“heart” icon).

    Thanks to your answer I found I can use the https://api.teyuto.tv/v2/contents API call with the user token, as it contains a “liked” field which is what I am looking for, I am just having some issues in generating the Auth token for the user, but I will open a ticket for that.

  • Marcello Violini

    Team•

    Oct 30, 2024

    Hi Matteo,

    At the moment, it's not possible to retrieve this information for each individual user using the admin token.

    However, you can access this data using the specific user's token whose likes you want to view.

    This information is available through a currently non-public API: https://api.teyuto.tv/v1/user/?f=user_data

    You'll need to include these headers in your request:

    • channel: (your public API channel)

    • Authorization: (token of the specific user whose likes you want to know)

    The API response will include the "liked" parameter containing all videos that the user has liked.

    Let me know if this is what you were looking for.

    Thanks!