Company | Newzulu Platform | Developer

Developer Template Documentation v4.12.4.1

Rate file


Rate file

/action/v2/ratefile

Records user rating on a media item or a comment. A rating is a number 0 to 10.

Requires a form token

Requires a session token - the user must be logged in

Supports redirectUrl param of fm:Form component

Example

<fm:Form action="/action/v2/ratefile" method="post" > <input type="hidden" name="mid" value="555888" /> <fm:Form_Select name="rating" value="0"> <fm:Form_Option value="0" label="0"> <fm:Form_Option value="1" label="1"> <fm:Form_Option value="2" label="2"> <fm:Form_Option value="3" label="3"> <fm:Form_Option value="4" label="4"> <fm:Form_Option value="5" label="5"> <fm:Form_Option value="6" label="6"> <fm:Form_Option value="7" label="7"> <fm:Form_Option value="8" label="8"> <fm:Form_Option value="9" label="9"> <fm:Form_Option value="10" label="10"> </fm:Form_Select> <fm:Form_Custom><button type="submit">Rate it!</button></fm:Form_Custom> </fm:Form>

Supported params

Name Required Description
mid Required Id of the media being rated. Must be a valid id in the project in Newzulu Platform
rating Required Rating to be recoreded. Must a number between 0 and 10 inclusive.

See also

<< 3.4.17 Lost password 3.4.19 Register >>