How to Hack a Vending Machine?

I have seen a vending machine get hack into by use a regular paper clip. The paper chip is inserted in to when the coin go. With the right combination of move you can have a vending machine.