Media Interactions
Media Interactions are Part of the Frontend API. They describe the Interaction between an existing Media Item and a User (who can be anonymous in certain Cases). Media Interactions need a valid Session (and most of them also a valid, loggedin User) to be processed.
Common Interactions
/addcomment
POST https://api.nexx.cloud/v3.1/interactions/addcomment
Query Parameters
item
integer
the Media ID
streamtype
string
the Media Streamtype
text
string
the Comment itself
parent
number
if the Comment is a Reply to another Comment, the parent Comment ID
username
number
if the User is anonymous, the given Username
timestamp
number
if related to a nexxPLAY Delivery, the current Media Timestamp
currentitem
integer
the ID of the currently active Item - if the target Streamtype is a Container Streamtype.
/addrate
POST https://api.nexx.cloud/v3.1/interactions/addrate
Query Parameters
item
string
the Media ID
streamtype
integer
the Media Streamtype
rating
integer
the Rating itself (1-5)
timestamp
number
if related to a nexxPLAY Delivery, the current Media Timestamp
currentitem
integer
the ID of the currently active Item - if the target Streamtype is a Container Streamtype.
/addreaction
POST https://api.nexx.cloud/v3.1/interactions/addreaction
Query Parameters
item
string
the Media ID
streamtype
integer
the Media Streamtype
reaction
integer
the Reaction itself [haha, love, shock, sad, angry]
timestamp
number
if related to a nexxPLAY Delivery, the current Media Timestamp
currentitem
integer
the ID of the currently active Item - if the target Streamtype is a Container Streamtype.
/addlike
POST https://api.nexx.cloud/v3.1/interactions/addlike
Query Parameters
item
integer
the Media ID
streamtype
string
the Media Streamtype
timestamp
number
if related to a nexxPLAY Delivery, the current Media Timestamp
currentitem
integer
the ID of the currently active Item - if the target Streamtype is a Container Streamtype.
/addtofavourites
POST https://api.nexx.cloud/v3.1/interactions/addtofavourites
Query Parameters
item
integer
the Media ID
streamtype
string
the Media Streamtype
timestamp
number
if related to a nexxPLAY Delivery, the current Media Timestamp
currentitem
integer
the ID of the currently active Item - if the target Streamtype is a Container Streamtype.
/addtowatchlist
POST https://api.nexx.cloud/v3.1/interactions/addtowatchlist
Query Parameters
item
integer
the Media ID
streamtype
string
the Media Streamtype
/addtocart
POST https://api.nexx.cloud/v3.1/interactions/addtocart
Query Parameters
item
integer
the Media ID
streamtype
string
the Media Streamtype
/expressinterest
POST https://api.nexx.cloud/v3.1/interactions/expressinterest
Query Parameters
item
integer
the Media ID
streamtype
string
the Media Streamtype
message
string
an optional Message, given by the User
timestamp
number
if related to a nexxPLAY Delivery, the current Media Timestamp
currentitem
integer
the ID of the currently active Item - if the target Streamtype is a Container Streamtype.
/removecomment
DELETE https://api.nexx.cloud/v3.1/interactions/removecomment
Query Parameters
item
integer
the ID of the Comment
/removerate
DELETE https://api.nexx.cloud/v3.1/interactions/removerate
Query Parameters
item
integer
the Media ID
streamtype
string
the Media Streamtype
/removelike
DELETE https://api.nexx.cloud/v3.1/interactions/removelike
Query Parameters
item
integer
the Media ID
streamtype
string
the Media Streamtype
/removereaction
DELETE https://api.nexx.cloud/v3.1/interactions/removereaction
Query Parameters
item
integer
the Media ID
streamtype
string
the Media Streamtype
/removefromfavourites
DELETE https://api.nexx.cloud/v3.1/interactions/removefromfavourites
Query Parameters
item
integer
the Media ID
streamtype
string
the Media Streamtype
/removefromwatchlist
DELETE https://api.nexx.cloud/v3.1/interactions/removefromwatchlist
Query Parameters
item
integer
the Media ID
streamtype
string
the Media Streamtype
/removefromcart
DELETE https://api.nexx.cloud/v3.1/interactions/removefromcart
Query Parameters
item
integer
the Media ID
streamtype
string
the Media Streamtype
Advanced Interactions
/addtowatched
POST https://api.nexx.cloud/v3.1/interactions/addtowatched
This Methods fills the serverside Watch History of a User. The User must be loggedin for this Method. Besides non-Player Media Types, this Method should only be called by nexxPLAY directly.
Query Parameters
item
string
the Media ID
streamtype
string
the Media Streamtype
mediasession
string
the Media Session
payContext
string
the Reason for Playback on a Pay Element
parentContext
string
the parent Streamtype, if available
parentItem
number
the parent Media ID, if available
isPreview
boolean
set to 1, if the Playback was a Pay Preview
isBumper
boolean
set to 1, if Media is a Bumper
isMuted
boolean
set to 1, if Media started muted
isLocalPlayback
boolean
set to 1, if the Playback happend on a locally downloaded Item
playbackTime
number
the Timest
/flagcomment
POST https://api.nexx.cloud/v3.1/interactions/flagcomment
Query Parameters
item
integer
the ID of the Comment
/finishcart
POST https://api.nexx.cloud/v3.1/interactions/finishcart
Query Parameters
title
integer
an optional Name for the current Cart
/joinevent
POST https://api.nexx.cloud/v3.1/interactions/joinevent
Query Parameters
item
integer
the ID of the Event to join
/jointeam
POST https://api.nexx.cloud/v3.1/interactions/jointeam
Query Parameters
item
integer
the ID of the Team to join
/unjoinevent
DELETE https://api.nexx.cloud/v3.1/interactions/unjoinevent
Query Parameters
item
integer
the ID of the Event to leave
/unjointeam
DELETE https://api.nexx.cloud/v3.1/interactions/unjointeam
Query Parameters
item
integer
the ID of the Team to leave
/removefromhistory
DELETE https://api.nexx.cloud/v3.1/interactions/removefromhistory
Query Parameters
item
integer
the Media ID
streamtype
string
the Media Streamtype
/registerclickedlink
POST https://api.nexx.cloud/v3.1/interactions/registerclickedlink
Query Parameters
url
string
the clicked URL
/createclip
POST https://api.nexx.cloud/v3.1/interactions/createclip
Query Parameters
item
string
the Media ID
streamtype
string
the Media Streamtype
from
number
the desired Start of the new Scene
to
number
the desired End of the new Scene
title
string
the desired Scene Title
/preparedownload
POST https://api.nexx.cloud/v3.1/interactions/preparedownload
Query Parameters
item
integer
the Media ID
streamtype
string
the Media Streamtype
/prepareofflinedownload
POST https://api.nexx.cloud/v3.1/interactions/prepareofflinedownload
This Method needs a valid Session, that has been created in an App Context.
Query Parameters
item
number
the Media ID
streamtype
string
the Media Streamtype
protection
integer
the desired Protection [drm, plain]
triggeredBy
string
the Way the Download was started [sdk, media]
/finishofflinedownload
POST https://api.nexx.cloud/v3.1/interactions/finishofflinedownload
This Method needs a valid Session, that has been created in an App Context.
Query Parameters
item
string
the Media ID
streamtype
string
the Media Streamtype
operationid
number
the Operation ID from the prepareofflinedownload Method
bytes
integer
the received Size of the File
result
string
[ok, error]
/removeofflinedownload
DELETE https://api.nexx.cloud/v3.1/interactions/removeofflinedownload
This Method needs a valid Session, that has been created in an App Context.
Query Parameters
item
integer
the Media ID
streamtype
string
the Media Streamtype
Template Interactions
/sendform
POST https://api.nexx.cloud/v3.1/interactions/sendform
All Form Elements, that are marked as mandatory must be sent via POST Parameters, as filled out by the User.
Query Parameters
item
integer
the Form ID
currentHistory
string
the current Referrer URL
attachedFile
integer
the ID of an existing nexxOMNIA File
/sendpoll
POST https://api.nexx.cloud/v3.1/interactions/sendpoll
As the Poll can be canceled anytime, the Result here is a Key/Value Object with the Question ID as Key and the User Input as value. JSON encode this Object and send it via the "result" Parameter.
Query Parameters
item
integer
the Poll ID
result
string
JSON encoded Set of current Result
/sendvoting
POST https://api.nexx.cloud/v3.1/interactions/sendvoting
Query Parameters
item
integer
the Voting ID
voting
string
the selected Value
Last updated
Was this helpful?