Do you want to make money from Groupon? Here's how:
Go to Commission Junction and apply to an account
Go to Groupon, create an account and get an API key.
Use the code below (feel free to alter and expand-- consider it totally GPL) on your PHP driven site.