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

cloudmersive-video-api-client

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloudmersive-video-api-client

  • 2.0.5
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

cloudmersive-video-api-client

CloudmersiveVideoApiClient - the Ruby gem for the videoapi

The video APIs help you convert, encode, and transcode videos.

This SDK is automatically generated by the Swagger Codegen project:

  • API version: v1
  • Package version: 2.0.5
  • Build package: io.swagger.codegen.languages.RubyClientCodegen

Installation

Build a gem

To build the Ruby code into a gem:

gem build cloudmersive-video-api-client.gemspec

Then either install the gem locally:

gem install ./cloudmersive-video-api-client-2.0.5.gem

(for development, run gem install --dev ./cloudmersive-video-api-client-2.0.5.gem to install the development dependencies)

or publish the gem to a gem hosting service, e.g. RubyGems.

Finally add this to the Gemfile:

gem 'cloudmersive-video-api-client', '~> 2.0.5'

Install from Git

If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:

gem 'cloudmersive-video-api-client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'cloudmersive-video-api-client'

# Setup authorization
CloudmersiveVideoApiClient.configure do |config|
  # Configure API key authorization: Apikey
  config.api_key['Apikey'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['Apikey'] = 'Bearer'
end

api_instance = CloudmersiveVideoApiClient::AudioApi.new

opts = { 
  input_file: File.new('/path/to/file.txt'), # File | Input file to perform the operation on.
  file_url: 'file_url_example', # String | Optional; URL of an audio file being used for conversion. Use this option for files larger than 2GB.
  bit_rate: 56 # Integer | Optional; Specify the desired bitrate of the converted audio file in kilobytes per second (kB/s). Value may be between 48 and 1,411. By default, the optimal bitrate will be chosen automatically.
}

begin
  #Convert Audio File to AAC format.
  result = api_instance.audio_convert_to_aac(opts)
  p result
rescue CloudmersiveVideoApiClient::ApiError => e
  puts "Exception when calling AudioApi->audio_convert_to_aac: #{e}"
end

Documentation for API Endpoints

All URIs are relative to https://api.cloudmersive.com

ClassMethodHTTP requestDescription
CloudmersiveVideoApiClient::AudioApiaudio_convert_to_aacPOST /video/convert/to/aacConvert Audio File to AAC format.
CloudmersiveVideoApiClient::AudioApiaudio_convert_to_m4aPOST /video/convert/to/m4aConvert Audio File to M4A format.
CloudmersiveVideoApiClient::AudioApiaudio_convert_to_mp3POST /video/convert/to/mp3Convert Audio File to MP3 format.
CloudmersiveVideoApiClient::AudioApiaudio_convert_to_wavPOST /video/convert/to/wavConvert Audio File to WAV format.
CloudmersiveVideoApiClient::VideoApivideo_convert_to_gifPOST /video/convert/to/gifConvert Video to Animated GIF format.
CloudmersiveVideoApiClient::VideoApivideo_convert_to_movPOST /video/convert/to/movConvert Video to MOV format.
CloudmersiveVideoApiClient::VideoApivideo_convert_to_mp4POST /video/convert/to/mp4Convert Video to MP4 format.
CloudmersiveVideoApiClient::VideoApivideo_convert_to_still_framesPOST /video/convert/to/still-framesConvert Video to PNG Still Frames.
CloudmersiveVideoApiClient::VideoApivideo_convert_to_webmPOST /video/convert/to/webmConvert Video to WEBM format.
CloudmersiveVideoApiClient::VideoApivideo_cut_videoPOST /video/cutCut a Video to a Shorter Length
CloudmersiveVideoApiClient::VideoApivideo_get_infoPOST /video/convert/get-infoGet detailed information about a video or audio file
CloudmersiveVideoApiClient::VideoApivideo_resize_videoPOST /video/resize/preserveAspectRatioResizes a Video Preserving the Original Aspect Ratio.
CloudmersiveVideoApiClient::VideoApivideo_resize_video_simplePOST /video/resize/targetResizes a Video without Preserving Aspect Ratio.
CloudmersiveVideoApiClient::VideoApivideo_scan_for_nsfwPOST /video/scan/nsfwScan a Video for NSFW content.
CloudmersiveVideoApiClient::VideoApivideo_split_videoPOST /video/splitSplit a Video into Two Shorter Videos

Documentation for Models

Documentation for Authorization

Apikey

  • Type: API key
  • API key parameter name: Apikey
  • Location: HTTP header

FAQs

Package last updated on 23 Aug 2020

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