I've been learning the FourSquare API, and thought I would share some basic examples. To use these, you will need to sign up with Foursquare and get your own client id/client secret and add them to the constants file (in the includes folder).
I believe you can sign up with FourSquare here: