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

argonuts-ruby

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

argonuts-ruby

  • 0.1.6
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Argonuts Ruby Library

The Argonuts Ruby library provides access to the Argonuts API.

Documentation

See the full documentation.

Installation

You can install it via rubygems:

gem install argonuts-ruby

Bundler

In Gemfile:

gem 'argonuts-ruby'

And then, type in your terminal:

bundle install

Usage

The library needs you to set your API key which can be found in your profile.

Argonuts.api_key = 'api-key'

Argonuts.notification = {
  url: "https://yoursite.co/api/argonuts/webhook"
}

Argonuts.storage = {
  url: "https://yoursite.co/api/argonuts/upload",
}

Creating a job

job = Argonuts::Job.create({
  input: { url: "https://yoursite.co/path/file.mp4" },
  outputs: {
    "jpg:300x": { path: "/image.jpg" },
    "mp4:1080p": { path: "/1080p.mp4" },
    "httpstream": {
      hls: { path: "hls/" }
    }
  }
})

Getting information about a job

Argonuts::Job.retrieve(job.id)

Released under the MIT license.

FAQs

Package last updated on 24 Jun 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