Generate a UPC-E Barcode Image in Ruby

gem 'cloudmersive-barcode-api-client', '~> 2.0.3'
# 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::GenerateBarcodeApi.newvalue = 'value_example' # String | UPC-E barcode value to generate frombegin
#Generate a UPC-E code barcode as PNG file
result = api_instance.generate_barcode_upce(value)
p result
rescue CloudmersiveBarcodeApiClient::ApiError => e
puts "Exception when calling GenerateBarcodeApi->generate_barcode_upce: #{e}"
end

--

--

--

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Seeing Google couldn't sign you in? Lets solve it

Bypass WAF 403 Forbidden lead to Cross Site Scripting (XSS)

Managing payments in your app: setting up the website

Evolving Infrastructure

CS371p Spring 2022: Week 12

How to convert HTML to PDF in C# .NET Framework

10 free stock photos you would actually use (Wednesday 18th 08AM edition)

Build Automation to Lower the Laundry Rack when the Washing Machine has finished its Wash Cycle

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Cloudmersive

Cloudmersive

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

More from Medium

Steve Madden clone using pure HTML, ExpressJS & MongoDB

Chokidar

Vue— What is it? — Ch 01