Vending machine
In 1615, small machines that dispensed tobacco were placed in English taverns.  In 1822, Richard Carlile, an English bookseller and publisher, created a machine that dispensed banned works, so allowing readers to purchase them.  During the 1850s and 60s, the first, fully-automatic vending machine was introduced which sold stamps and writing paper.