Users Clicked Link API - How To Edit User Clicked Links With API Calls

Link: https://support.brilliantdirectories.com/support/solutions/articles/12000106153

This API allows users to create, read, update, and delete users clicked links from the database.


Available API Endpoints


Below is a list of the available endpoints for Users Clicked Links:


https://example.com/api/v2/users_clicks/get/{click_id}


https://example.com/api/v2/users_clicks/create


https://example.com/api/v2/users_clicks/update


https://example.com/api/v2/users_clicks/delete


Using the API, the following actions can be performed:


Get a Users Clicked Link


Read the data of a Users Clicked Links based on the click_id


Endpoint:


curl -X 'GET' \
  'https://www.example.com/api/v2/users_clicks/get/3' \
  -H 'accept: application/json' \
  -H 'X-Api-Key: YOUR_API_KEY'



Example Request:


https://www.example.com/api/v2/users_clicks/get/3


Example Response:


{
  "status": "success",
  "message": [
    {
      "click_id": "3",
      "user_id": "1",
      "click_type": "Profile",
      "click_name": "Profile Views",
      "click_from": "http://bootstrapdemo2.startadirectory.com/california/beverly-hills/sample-category/john-smith",
      "visitor_token": "",
      "click_token": "b1fa2073d0f10a08f271bdcd8ddaea84",
      "date_clicked": "20150723105631",
      "click_url": "",
      "click_ip": "191.102.57.226",
      "post_id": "0",
      "is_single_post": "0"
    }
  ],
  "total": "1223",
  "current_page": 1,
  "total_pages": 49,
  "next_page": "MipfKjI1"
}


Create a Users Clicked Link


Add a new Users Clicked Links to the database


Endpoint:


curl -X 'POST' \
  'https://www.example.com/api/v2/users_clicks/create' \
  -H 'accept: application/json' \
  -H 'X-Api-Key: YOUR_API_KEY' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d 'click_from=https%3A%2F%2Fdevelopertoolsdocumentation.directoryup.com%2Funited-kingdom%2Flondon%2Fpet-services%2Fterry-greenwood&click_token=xyz789uvw321&is_single_post=0&click_name=Profile%20Views&visitor_token=&user_id=44833&click_type=link&click_id=&date_clicked=&click_url=https%3A%2F%2Fdevelopertoolsdocumentation.directoryup.com%2Funited-kingdom%2Flondon%2Fpet-services%2Fterry-greenwood&post_id=0&click_ip='


Example Request:


https://example.com/api/v2/user_clicks/create



Example Response:


{
  "status": "success",
  "message": {
    "click_id": "7957",
    "user_id": "44833",
    "click_type": "link",
    "click_name": "Profile Views",
    "click_from": "https://example.com/united-kingdom/london/pet-services/terry-greenwood",
    "visitor_token": "",
    "click_token": "7c93ec5cf1ba20dc45e6beb712dc5ce6",
    "date_clicked": "20250925091346",
    "click_url": "https://developertoolsdocumentation.directoryup.com/united-kingdom/london/pet-services/terry-greenwood",
    "click_ip": "85.104.193.165",
    "post_id": "0",
    "is_single_post": "0"
  }
}


Update a Users Clicked Link


Update the Users Clicked Link record via the database, by specifying the click_id


Endpoint:


curl --location --request PUT 'https://example.com/api/v2/users_clicks/update' \
--header 'X-Api-Key: YOUR_API_KEY' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: __Secure-sessionID5=09a48e5f901ca9ee088d516a8f710eae' \
--data-urlencode 'click_id=7230' \
--data-urlencode 'click_name=Test'


Example Request:


https://example.com/api/v2/users_clicks/update


Example Response:


{
    "status": "success",
    "message": {
        "click_id": "7230",
        "user_id": "44833",
        "click_type": "Profile",
        "click_name": "Test",
        "click_from": "https://example.com/united-kingdom/london/pet-services/terry-greenwood",
        "visitor_token": "",
        "click_token": "e98c2d447f50ba3c6e51714b69ce0e00",
        "date_clicked": "20221011132305",
        "click_url": "",
        "click_ip": "200.5.49.116",
        "post_id": "0",
        "is_single_post": "0"
    }
}


Delete a Users Clicked Link


Delete a Users Clicked Link record via the database, by specifying the click_id


Endpoint:


curl --location --request DELETE 'https://example.com/api/v2/users_clicks/delete' \
--header 'X-Api-Key: YOUR_API_KEY' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: __Secure-sessionID5=09a48e5f901ca9ee088d516a8f710eae' \
--data-urlencode 'click_id=7230'


Example Request:


https://example.com/api/v2/users_clicks/delete


Example Response:


{
    "status": "success",
    "message": "users_clicks record was deleted"
}