Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/alex-berlin-tv/nexx_omnia_go

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/alex-berlin-tv/nexx_omnia_go

  • v1.6.9
  • Source
  • Go
  • Socket score

Version published
Created
Source

go nexxOMNIA API

Link to documentation

Partial API Implementation for nexxOMNIA. This library is published as it is with no guarantee for support and/or bugfixes.

go get github.com/alex-berlin-tv/nexx_omnia_go

Creating a client

In Omnia go to »Domains« and open the info panel of your Domain. There you will find the information as follows:

Name in FrontendField in Code
ID<DOMAIN_ID>
API Secret<API_SECRET>
Management API Session<DOMAIN_ID>

Location of the fields in the domain information, see table above

client := omnia.NewClient("<DOMAIN_ID>", "<API_SECRET>", "<SESSION_ID>")

Get an audio file by id

// Get Audio file with ID 2342
rsl, err := client.ById(enum.AudioStreamType, 2342, nil)
if err != nil {
    log.Error(err)
}
fmt.Printf("%+v", rsl.Result)

The structure of rsl.Result depends on the method used. In this instance a omnia.MediaResultItem will be returned.

Change the metadata of a media item

Example for calling the update method:

_, err := client.update(enum.AudioStreamType, 2342, params.Custom{
    "title": "Fnord!",
})
if err != nil {
    log.Error(err)
}

There is currently no hard coded parameter implementation for all available attributes you can change with the update method. The API provides a list with all available fields:

rsl, _ := client.EditableAttributes(enum.VideoStreamType)
fmt.Printf("%+v", rsl.Result)

FAQs

Package last updated on 04 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc