curl --request POST \
--url http://localhost/mogl/mogl-backend/api/affiliateLinkClickUpdate \
--header 'Content-Type: application/json' \
--data '
{
"id": 1,
"device": "iPhone 15",
"referred": "google",
"location": "New York, US",
"screen_size": "1920x1080",
"os": "iOS 17",
"browser": "Safari"
}
'Increments click counter and logs visit analytics for the affiliate link.
curl --request POST \
--url http://localhost/mogl/mogl-backend/api/affiliateLinkClickUpdate \
--header 'Content-Type: application/json' \
--data '
{
"id": 1,
"device": "iPhone 15",
"referred": "google",
"location": "New York, US",
"screen_size": "1920x1080",
"os": "iOS 17",
"browser": "Safari"
}
'Documentation Index
Fetch the complete documentation index at: https://developer.mogl.online/llms.txt
Use this file to discover all available pages before exploring further.
Affiliate link ID (NOT link_id)
1
Visitor device type
"iPhone 15"
Referrer URL
"google"
Visitor location
"New York, US"
Visitor screen size
"1920x1080"
Visitor operating system
"iOS 17"
Visitor browser
"Safari"
Click recorded