OpenVeo Publish AngularJS back end

API Docs for: 8.0.0
Show:

publishService

Summary

Defines a publish service to manage medias, categories and properties.

Methods

addMedia

Syntax

addMedia

(
  • Information
)
Promise

Summary

Adds a media.

Parameters:

  • Information Object

    about the media

Returns:

Promise:

An HTTP promise resolving when media has been added

cacheClear

Syntax

cacheClear

(
  • [type]
)

Summary

Clears a publish service cache.

Parameters:

  • [type] String optional

    The cache element to clear (properties, categories or editor), null to clear all caches

getCategoriesByKey

Syntax

getCategoriesByKey

() Object

Summary

Gets list of categories indexed by keys.

Returns:

Object:

The list of categories

getCategoriesOptions

Syntax

getCategoriesOptions

() Array

Summary

Gets the list of categories formatted for an HTMLSelect element.

Returns:

Array:

The list of categories

getConfiguration

Syntax

getConfiguration

() Promise

Summary

Retrieves publish plugin configuration.

Returns:

Promise:

The HTTP promise

getPlatforms

Syntax

getPlatforms

() Promise

Summary

Gets the list of available platforms.

Returns:

Promise:

The HTTP promise

getProperties

Syntax

getProperties

() Promise

Summary

Gets list of properties.

Returns:

Promise:

The HTTP promise

getTaxonomyCategory

Syntax

getTaxonomyCategory

() Object

Summary

Gets the taxonomy "categories".

Returns:

Object:

The taxonomy

loadMedia

Syntax

loadMedia

(
  • id
)
Promise

Summary

Loads a media by its id.

Parameters:

Returns:

Promise:

The HTTP promise

loadPlatforms

Syntax

loadPlatforms

() Promise

Summary

Loads the list of available media platforms from server.

Returns:

Promise:

The promise used to retrieve platforms from server

loadProperties

Syntax

loadProperties

() Promise

Summary

Loads all properties from server.

Returns:

Promise:

The HTTP promise

loadTaxonomyCategory

Syntax

loadTaxonomyCategory

() Promise

Summary

Loads taxonomy "categories".

Returns:

Promise:

The HTTP promise

publishMedia

Syntax

publishMedia

(
  • id
)
Promise

Summary

Publishes the given media.

Parameters:

  • id String

    The id of the media to publish

Returns:

Promise:

The HTTP promise

removeChapters

Syntax

removeChapters

(
  • id
  • chapterIds
)
HttpPromise

Summary

Removes chapters from media.

Parameters:

  • id String

    The media id

  • chapterIds Array

    The list of chapter ids to remove

Returns:

HttpPromise:

The HTTP promise

removeTags

Syntax

removeTags

(
  • id
  • tagIds
)
Promise

Summary

Remove tags from media.

Parameters:

  • id String

    The media id

  • tagIds Array

    The list of tag ids to remove

Returns:

Promise:

The HTTP promise

retryMedia

Syntax

retryMedia

(
  • id
)
Promise

Summary

Retries a media.

If a media is on error, the upload / publication process has stopped and can be retried.

Parameters:

  • id String

    The id of the media to retry

Returns:

Promise:

The HTTP promise

saveMediasSettings

Syntax

saveMediasSettings

(
  • data
)
HttpPromise

Summary

Saves medias settings.

Parameters:

  • data Object

    The medias settings

Returns:

HttpPromise:

The HTTP promise

saveTlsSettings

Syntax

saveTlsSettings

(
  • data
)
HttpPromise

Summary

Saves TLS settings.

Parameters:

  • data Object

    The TLS settings

Returns:

HttpPromise:

The HTTP promise

startMediaUpload

Syntax

startMediaUpload

(
  • id
  • platform
)
Promise

Summary

Asks server to start uploading a media waiting for manual upload.

Parameters:

  • id String

    The id of the media to start uploading

  • platform String

    The media platform to upload to

Returns:

Promise:

The HTTP promise

unpublishMedia

Syntax

unpublishMedia

(
  • id
)
Promise

Summary

Unpublishes the given media.

Parameters:

  • id String

    The id of the media to unpublish

Returns:

Promise:

The HTTP promise

updateChapter

Syntax

updateChapter

(
  • id
  • chapter
)
HttpPromise

Summary

Updates a chapter associated to the specified media.

Parameters:

  • id String

    The media id

  • chapter Object

    Information about the chapter

    • [id] String optional

      The chapter id

    • [value] Number optional

      The chapter time in milliseconds

    • [name] String optional

      The chapter name

    • [description] String optional

      The chapter description

Returns:

HttpPromise:

The HTTP promise

updateMedia

Syntax

updateMedia

(
  • Information
)
Promise

Summary

Update a media

Parameters:

  • Information Object

    about the media

Returns:

Promise:

An HTTP promise resolving when media has been updated

updateTag

Syntax

updateTag

(
  • id
  • file
  • tag
)
Promise

Summary

Updates a tag associated to the specified media.

Parameters:

  • id String

    The media id

  • file Object

    The file to upload

  • tag Object

    Information about the tag

    • [id] String optional

      The tag id

    • [value] Number optional

      The tag time in milliseconds

    • [name] String optional

      The tag name

    • [description] String optional

      The tag description

Returns:

Promise:

The HTTP promise