PyzeMedia

PyzeMedia : PyzeCuratedEvents

PyzeMedia functions can be used to post details of the events related to Media.

Since

v1.0.0

PyzeMedia Methods

  • Post details of the media played.

    Since

    v1.0.0

    Sample

    var attributes = {};
    attributes["contentName"] = contentNameValue;
    attributes["type"] = typeValue;
    attributes["categoryName"] =  categoryNameValue;
    attributes["percent"] =  percentValue;
    attributes["contentId"] =  contentIdValue;
    var customAttributes = {};
    PyzeCuratedEvents.post("MediaPlayed", attributes, customAttributes);

    Parameters

    contentName

    Content name.

    type

    Type i.e., Audio, video etc.,

    categoryName

    Category of the media.

    percent

    Percentage of content played.

    contentId

    Content identifier.

    customAttributes

    Additional custom attributes the app would like to share with server. Learn more about custom attributes.

  • Post details of the search in media.

    Since

    v1.0.0

    Sample

    var attributes = {};
    attributes["searchString"] = searchStringValue;
    var customAttributes = {};
    PyzeCuratedEvents.post("MediaSearched", attributes, customAttributes);

    Parameters

    searchString

    Search string.

    customAttributes

    Additional custom attributes the app would like to share with server. Learn more about custom attributes.

  • Post details of the media rating.

    Since

    v1.0.0

    Sample

    var attributes = {};
    attributes["contentName"] = contentNameValue;
    attributes["categoryName"] = categoryNameValue;
    attributes["contentId"] = contentIdValue;
    attributes["rating"] = ratingValue;
    var customAttributes = {};
    PyzeCuratedEvents.post("MediaRated", attributes, customAttributes);

    Parameters

    contentName

    Content name.

    categoryName

    Category type

    contentId

    Media identifier.

    rating

    Rating value.

    customAttributes

    Additional custom attributes the app would like to share with server. Learn more about custom attributes.

  • Post details if media is liked.

    Since

    v1.0.0

    Sample

    var attributes = {};
    attributes["contentName"] = contentNameValue;
    attributes["categoryName"] = categoryNameValue;
    attributes["contentId"] = contentIdValue;
    var customAttributes = {};
    PyzeCuratedEvents.post("MediaThumbsUp", attributes, customAttributes);

    Parameters

    contentName

    Content name.

    categoryName

    Content category name.

    contentId

    Content identifier.

    customAttributes

    Additional custom attributes the app would like to share with server. Learn more about custom attributes.

  • Post details if media is disliked.

    Since

    v1.0.0

    Sample

    var attributes = {};
    attributes["contentName"] = contentNameValue;
    attributes["categoryName"] = categoryNameValue;
    attributes["contentId"] = contentIdValue;
    var customAttributes = {};
    PyzeCuratedEvents.post("MediaThumbsDown", attributes, customAttributes);

    Parameters

    contentName

    Content name.

    categoryName

    Content category name.

    contentId

    Content identifier.

    customAttributes

    Additional custom attributes the app would like to share with server. Learn more about custom attributes.