Skip to main content

User Translations API

Get translations preference of a specific user

NOTE: user_id in api path doesn't matter, system will authenticate using auth headers and send translation preferences of authenticated user.

Path Parameters
    user_id string required

    user id

Query Parameters
    client_auth_token string required

    Client API token

Header Parameters
    access-token string required

    user access token

    client string required

    client access token

    expiry string required

    timestamp of token expiry

    Example: 1531315250
    token-type string required

    access token type

    Example: Bearer
    uid string required

    user uid

    Example: user@quranreflect.com
Responses

OK

Response Headers

    Schema
      success boolean
      translations object[]
    • Array [
    • id integer
      name string
      created_at string
      updated_at string
      language_id integer
      default boolean
    • ]
    GET /v1/users/:user_id/get_user_translations

    Request

    Base URL
    https://quranreflect.com
    user_id — path required
    client_auth_token — query required
    access-token — header required
    client — header required
    expiry — header required
    token-type — header required
    uid — header required
    curl / cURL
    curl -L -X GET 'https://quranreflect.com/v1/users/:user_id/get_user_translations' \
    -H 'Accept: application/json'