Skip to content

A simple browser-based API to GS1 codeonline plateform

License

Notifications You must be signed in to change notification settings

Vin0uz/code_online

Repository files navigation

CodeOnline

A simple browser-based API to GS1 codeonline platform.

Instead of manually create all your eans, using codeonline.fr webpage, you can now do it with a couple of line of code.

⚠️ Warning ⚠️

This gem isn't related to GS1 teams, so it's by definition quite fragile.

Installation

To use it in Rails, add this line to your application's Gemfile

gem "code_online"

To use it in a usual ruby environment, you can simply

gem install "code_online"

Usage

require "code_online"

client = CodeOnline::Client.new(email: "youremail@foo.bar", password: "unbreakable-password")
> "Connected to codeonline ✅"
ean = client.create_ean(product_name: "My Cool product", weight: "50")
> "3701492718516"

How it works ?

It's simply copying what you'd do if you were going to the web interface.

This makes it quite fragile because the web page can change anyday..

License

The gem is available as open source under the terms of the MIT License.

Contributing

Contributions are always welcome! Feel free to open issues or pull requests 🙏

If you notice any security issue, please reach outbefore opening a public issue

About

A simple browser-based API to GS1 codeonline plateform

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published