Skip to main content

Toggle Like API‚Äč

This API endpoint allows the authenticated user to toggle post like.

If the user has already liked the target post, sending the same request will unlike the post, and vice versa.

Path Parameters
    post_id integer required

    post id

Query Parameters
    client_auth_token string required

    Client API token

Header Parameters
    access-token string required

    user access token

    Example: flrqd_uo8e1cREJpEIM9rQ
    client string required

    client access token

    Example: FjyYYaLmpuYOdV6wx8GOaw
    expiry string required

    timestamp of token expiry

    Example: 1535285374
    token-type string required

    access token type

    Example: Bearer
    uid string required

    user uid

    Example: user@quranreflect.com
Responses

OK

Response Headers

    Schema
      liked boolean
    Loading...