Sample Java Code The examples in the below pages demonstrate how to access the Primavera Cloud API using Java. Sample Program to Test API Connection Sample Program to Invoke GET REST API Sample Program to Invoke POST REST API