Barcode scanner + web API

This is a long post but discusses the same idea. It should be a good start for you.