API Reference

Media.logHit

Use this method to log a hit (aka view) on a media item.


Syntax

mixed media.logHit ( mixed fileId, mixed fileType, mixed fileSize, mixed uid = 0 )

Arguments

NameTypeRequiredDefault valueDescription
fileIdmixedRequirednone
fileTypemixedRequirednone
fileSizemixedRequirednone
uidmixedOptional0

Sample Response

Sample REST Response
http://api.filemobile.com/services/rest/media/logHit?fileId=[MEDIA_ID]&fileType=[FILETYPE]&fileSize=[FILE_SIZE]
<?xml version="1.0" encoding="UTF-8"?>
<result>1</result>
Sample JSON Response
{
    "status": true,
    "result": 1
}

Code examples

0 comments

Be the first to comment on logHit.

Add a Comment

  • captcha