Set of classes in com.jcabi.odesk package is an object oriented Java adapter of Odesk API:
import com.jcabi.odesk.RtOdesk;
import com.jcabi.odesk.Odesk;
public class Main {
public static void main(String[] args) {
Odesk odesk = new DefaultOdesk(".. your OAuth token ..");
// to be continued
}
}Read JavaDoc for more information and examples.
The only dependency you need is (you can also download jcabi-odesk-0.12.jar and add it to the classpath):
<dependency> <groupId>com.jcabi</groupId> <artifactId>jcabi-odesk</artifactId> <version>0.12</version> </dependency>
If you want to use current version of the product, you can do it with this configuration in your pom.xml:
<repositories>
<repository>
<id>oss.sonatype.org</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.jcabi</groupId>
<artifactId>jcabi-odesk</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
```