Javascript Event System - play-page-after-rating

From KickApps Documentation

Jump to: navigation, search

This article pertains to the Javascript Event System. You can refer to our list of Javascript Event System Supported Events to learn what else you can do with our event system.

Contents

Summary

This event is fired when a member rates a media item.

Payload Parameters

lastRatedAt
(Date) Represents the last time this media was rated. In this case, it always refers to right now.
rated
(Number) Represents the media's rating
ratedCount
(Number) Represents how many times the media has been rated
ratedBlogToUserPK, ratedPhotoToUserPK, ratedVideoToUserPK, ratedAudioToUserPK
(Object) Contains the user ID of the logged in user and the ID of the media item being rated
ratedBlogId, ratedPhotoId, ratedVideoId, ratedAudioId
(Number) The ID of the media item being rated
userId
(Number) The user ID of the member who is performing the rating


Execution Interruption

none

Example

function onPlayPageAfterRating(data) {

   // do something here
   console.log(data)

} var newEventId = Ka.events.listen('play-page-after-rating', onPlayPageAfterRating);