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

cloudmersive-barcode-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-barcode-api-client

  • 2.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

cloudmersive-barcode-api-client

CloudmersiveBarcodeApiClient - the Ruby gem for the barcodeapi

Barcode APIs let you generate barcode images, and recognize values from images of barcodes.

This SDK is automatically generated by the Swagger Codegen project:

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

Installation

Build a gem

To build the Ruby code into a gem:

gem build cloudmersive-barcode-api-client.gemspec

Then either install the gem locally:

gem install ./cloudmersive-barcode-api-client-2.1.0.gem

(for development, run gem install --dev ./cloudmersive-barcode-api-client-2.1.0.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-barcode-api-client', '~> 2.1.0'

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-barcode-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-barcode-api-client'

# Setup authorization
CloudmersiveBarcodeApiClient.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 = CloudmersiveBarcodeApiClient::BarcodeLookupApi.new

value = 'value_example' # String | Barcode value


begin
  #Lookup EAN barcode value, return product data
  result = api_instance.barcode_lookup_ean_lookup(value)
  p result
rescue CloudmersiveBarcodeApiClient::ApiError => e
  puts "Exception when calling BarcodeLookupApi->barcode_lookup_ean_lookup: #{e}"
end

Documentation for API Endpoints

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

ClassMethodHTTP requestDescription
CloudmersiveBarcodeApiClient::BarcodeLookupApibarcode_lookup_ean_lookupPOST /barcode/lookup/eanLookup EAN barcode value, return product data
CloudmersiveBarcodeApiClient::BarcodeScanApibarcode_scan_imagePOST /barcode/scan/imageScan and recognize an image of a barcode
CloudmersiveBarcodeApiClient::BarcodeScanApibarcode_scan_image_advanced_qrPOST /barcode/scan/image/advanced/qrAdvanced AI scan and recognition of an image of one or more QR barcodes
CloudmersiveBarcodeApiClient::GenerateBarcodeApigenerate_barcode_ean13POST /barcode/generate/ean-13Generate a EAN-13 code barcode as PNG file
CloudmersiveBarcodeApiClient::GenerateBarcodeApigenerate_barcode_ean8POST /barcode/generate/ean-8Generate a EAN-8 code barcode as PNG file
CloudmersiveBarcodeApiClient::GenerateBarcodeApigenerate_barcode_qr_codePOST /barcode/generate/qrcodeGenerate a QR code barcode as PNG file
CloudmersiveBarcodeApiClient::GenerateBarcodeApigenerate_barcode_upcaPOST /barcode/generate/upc-aGenerate a UPC-A code barcode as PNG file
CloudmersiveBarcodeApiClient::GenerateBarcodeApigenerate_barcode_upcePOST /barcode/generate/upc-eGenerate a UPC-E code barcode as PNG file

Documentation for Models

Documentation for Authorization

Apikey

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

FAQs

Package last updated on 08 Jun 2024

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