The plugin API provides access to the functionality of Opinio. To get access to the plugin API, add this import statement at the top of your Plugin java class:
import com.objectplanet.survey.plugin.api.*;
To get an understanding of the API classes, and their methods, look them up in the API (javadoc) documentation. A closer look at the included Plugin example will also help.