Rcs-eval-api/v2.1/event

Jump to: navigation, search

Event

This is one of several requests that demonstrates how Rovi can generate personalized entertainment recommendations for your customers. To understand this feature, we suggest working with these calls in this order:

This Request . . .       Demonstrates . . .

How an item taste profile gets added to a user taste profile.

What an item taste profile looks like.

What a user taste profile looks like.

How personalized recommendations are generated from a user taste profile.

Event modifies the taste profile of the user based on a user action or opinion. A taste profile consists of normalized scores of Rovi entertainment categories, and the user action determines the categories and the algorithm that are applied. For example, if a user clicks Like on an item, the taste profile of that item is added to the taste profile of the user.

Notes:

  • An actual implementation of the capability demonstrated in this call requires registration of the user with Rovi.
  • This call is for evaluation purposes, so events created by this call are stored in a sandbox for each API key and are eventually deleted.

Syntax

endpoint/event? nameid=nameid
trackid=trackid
albumid=albumid
amgvideoid=amgvideoid
cosmoprogramid=cosmoprogramid
&apikey=apikey&sig=sig&
userid=userid [&rating=rating] [&timestamp=timestamp]

Request Example 1

User selected the group The Doors as a favorite on January 31, 2011, at 11:35:21 AM CST.

Request Example 2

User recorded the movie When Harry Met Sally.

Request Example 3

User watched the television series House.

Request Example 4

User gave the top rating to Michael Jackson's Thriller.

Request Example 5

Delete a user taste profile.

Request Parameters

ParameterRequiredDescription
apikey Yes Access code that authorizes your request for data from Rovi.
endpoint Yes Database of the item.
For this type of item . . .Specify this endpoint.
musicmusic
movies and TV seriesamgvideo
television (movies and TV programs)video
event Yes One of the following user events:
  • AddToList
  • Block
  • Browse
  • Buy
  • Dislike
  • Download
  • Favorite
  • Like
  • Listen
  • OwnItem
  • Rate
  • Record
  • Remind
  • RemoveFavorite
  • RemoveFromList   
  • Reset
  • Unblock
  • Watch

Added item to List.
Blocked item from view.
Browsed item.
Purchased item.
Disliked item.
Downloaded item.
Added item to Favorites.
Likes item.
Listened to item.
Owns item (map to Buy).
Rated item (from 0 to 100).
Recorded item.
Added item to Remind list.
Removed from Favorites.
Removed from List.
Deletes the user taste profile.
Unblocked item.
Watched item.

sig Yes A calculated authorization code. To perform the calculation, execute the MD5 function on the concatenation of the following three strings:
  • Your API key.
  • The secret key you received with your API key.
  • The Unix time. Unix time is a timestamp supported in most development environments, and is generally defined as the number of seconds since January 1, 1970 00:00:00 GMT.

Perform the calculation at the time of each request to be sure it's within a five-minute window of the server time. If you're testing the call in a browser, use our online signature generator to perform the calculation.

userid Yes ID of the user. IDs that have not been used before are automatically created.
albumid Conditional Rovi Music ID for an album, consisting of the prefix MW followed by a ten-digit number. For a request with an album ID, specify an endpoint of music. Here are some album IDs you can use for evaluation tests:
  • MW0002136254 — 4 (BeyoncĂ©)
  • MW0000056882 — Thriller (Michael Jackson)
  • MW0000111184 — Birth of the Cool (Miles Davis)
  • MW0001946960 — Beethoven: Symphony 9 (Leonard Bernstein)

Condition: The request must contain just one of these parameters, unless the event type is reset:

  • nameid
  • trackid
  • albumid
  • amgvideoid
  • cosmoprogramid
amgvideoid Conditional All Media Guide (AMG) database ID for a movie or TV series, consisting of a ten-character string that starts with V and is followed by 9 digits with leading spaces. For a request with an amgvideo ID, specify an endpoint of amgvideo. Here are some amgvideo IDs you can use for evaluation tests:
  • V+++352199 — Avatar
  • V+++317815 — House
  • V+++175345 — The Simpsons
  • V++++49101 — The Terminator
  • V+++346517 — The Simpsons Movie

Condition: The request must contain just one of these parameters, unless the event type is reset:

  • nameid
  • trackid
  • albumid
  • amgvideoid
  • cosmoprogramid
cosmoprogramid Conditional Cosmo database ID for a movie or television series. For a request with a Cosmo ID, specify an endpoint of video. Here are some Cosmo IDs you can use for evaluation tests:
  • 4180581 — House
  • 7903 — The Simpsons
  • 62991 — The Terminator
  • 7221538 — Breaking Bad
  • 6941396 — The Simpsons Movie
  • 55394 — Terminator 2: Judgment Day

Condition: The request must contain just one of these parameters, unless the event type is reset:

  • nameid
  • trackid
  • albumid
  • amgvideoid
  • cosmoprogramid
nameid Conditional Rovi Name ID for a person or group that has worked in music, consisting of the prefix MN followed by a ten-digit number. For a request with a name ID, specify an endpoint of music. Here are some name IDs you can use for evaluation tests:
  • MN0000775877 — Coldplay
  • MN0000994823 — Lady Gaga
  • MN0000187478 — Eric Clapton
  • MN0000239859 — Leonard Bernstein

Condition: The request must contain just one of these parameters, unless the event type is reset:

  • nameid
  • trackid
  • albumid
  • amgvideoid
  • cosmoprogramid
rating Conditional User rating from 0 to 100 for the content that is specified by the ID.

Condition: Required for an event of rate. Does not apply to other events.

trackid Conditional Rovi Music ID for a song, consisting of the prefix MT followed by a ten-digit number. For a request with a track ID, specify an endpoint of music. Here are some track IDs you can use for evaluation tests:
  • MT0000136981 — Speed of Sound (Coldplay)
  • MT0040645959 — Born This Way (Lady Gaga)
  • MT0000149626 — Billie Jean (Michael Jackson)
  • MT0041013551 — Concierto de Aranjuez (Miles Davis)

Condition: The request must contain just one of these parameters, unless the event type is reset:

  • nameid
  • trackid
  • albumid
  • amgvideoid
  • cosmoprogramid
timestamp No Time of the event, specified in one of the following formats:
  • UTC time: YYYYMMDDhhmmss-0000. For example: 20110315020000-0000.
  • Local time with an offset: YYYYMMDDhhmmss + or - hhmm (positive or negative offset). For example, for US Pacific time: 20110314180000-0800.

Response

Response Header

ResponseTypeDescription
controlSet ControlSet The HTTP response status.
id string Server transaction ID for the response.

Response for Event

ResponseTypeDescription
messages message [ ] Success message or error message.

JSON Response Example

Here's the response for a successful event submission. This sample is formatted with extra spaces and carriage returns to make it easy to read.
{
   "eventResponse":{
      "id":"tul1cpgssrapp1:gwy:1qflp",
      "controlSet":{
         "status":"success",
         "code":200,
         "messages":[
            {
               "message":[
                  {
                     "code":"EventSubmission",
                     "name":"Success"
                  }
               ]
            }
         ]
      }
   }
}


See Also

↑ Top

Personal tools