0.0
No release in over a year
A simple and automated bot over interface of GS1' codeonline website.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

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