Skip to main content

GET Latest Content

Overview


The following table contains information about the GET method in regards to receiving the latest content on the platform.

GET Latest Content
MethodGET
URL or Endpoint/api/projects/projectId/videos/latest
HeadersAuthorization
ParametersprojectId
BodyNot Applicable

The description of the URL parameter is as follows:

projectId Parameter
URL Parameter NameprojectId
MandatoryYes
Typestring
DescriptionUnique Id of the project.

Request Body

The request does not contain a request body

Response

{
"success": true,
"errors": [],
"messages": [],
"result": [
{
"MediaID": "vjsmxlol",
"title": "Renault Clio R.S. a Toyota Yaris GRMN",
"thumbnailUrl": "https://vp-dev.gjirafa.net/vps/prod/odgehtyo/encode/vjsmxibk/thumbnails/retina.jpg",
"duration": 343
},
{
"MediaID": "vjsmxlok",
"title": "Škoda Fabia s milionem kilometrů: Historie auta",
"thumbnailUrl": "https://vp-dev.gjirafa.net/vps/prod/odgehtyo/encode/vjsmxibj/thumbnails/retina.jpg",
"duration": 202
},
{
"MediaID": "vjsmxloj",
"title": " Nové BMW X5 na prvních fotkách létá vzduchem. Zvládne každý terén? \t ",
"thumbnailUrl": "https://vp-dev.gjirafa.net/vps/prod/odgehtyo/encode/vjsmxibi/thumbnails/retina.jpg",
"duration": 60
},
{
"MediaID": "vjsmxloi",
"title": "Dakar 2019, Peterhansel, Sainz, Despres",
"thumbnailUrl": "https://vp-dev.gjirafa.net/vps/prod/odgehtyo/encode/vjsmxibh/thumbnails/retina.jpg",
"duration": 204
}
]
"resultInfo": null,
"statusCode": 200
}

Information about the fields that appear when you receive the response are displayed in the table below.

Field NameTypeDescription
successboolIf the response is successful it will return true. Otherwise will return false
errorsarray[string]Indicates if there was an error
messagesarray[string]Returns the response message from back-end
resultarray[Object]Returns the response object
MediaIDstringThe id of the video.
titlestringThe title of the video.
thumbnailUrlstringThe URL of the thumbnail.
durationinteger($int32)Duration of the video in seconds.
resultInfostringReturns extra information about the result
statusCodeinteger($int32)Returns the HTTP Status Code

If the action is successful, the service sends back an HTTP 200 or 201 response.

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code 400: Bad Request

  • HTTP Status Code 401: Unauthorized

  • HTTP Status Code 403: Forbidden

  • HTTP Status Code 404: Result Not Found

  • HTTP Status Code 500: Internal Server Error

  • HTTP Status Code 503: Backend Fetch Failed