Skip to content

Maven & Gradle

Para is hosted on Maven Central. To add it to your project just include this into your pom.xml:

<dependency>
<groupId>com.erudika</groupId>
<artifactId>para-server</artifactId>
<version>{VERSION}</version>
</dependency>

For building Para client applications, use the Para client library:

<dependency>
<groupId>com.erudika</groupId>
<artifactId>para-client</artifactId>
<version>{VERSION}</version>
</dependency>

In your own project you can create a new ParaClient instance like so:

ParaClient pc = new ParaClient(accessKey, secretKey);
// Para endpoint - http://localhost:8080 or https://paraio.com
pc.setEndpoint(paraServerURL);
// Set this to true if you want ParaClient to throw exceptions on HTTP errors
pc.throwExceptionOnHTTPError(false);
// send a test request - this should return a JSON object of type 'app'
pc.me();

JavaDocs and sources, as well as other Para server artifacts and metadata, are published on Maven Central.