This is a bit of sample code that accesses the WordNik API from JavaScript in the browser.
Here are the synonyms for "happy":
For more info see this blog post on scripting.com.