<dependency>
<groupId>com.paxos</groupId>
<artifactId>paxos-sdk</artifactId>
<version>1.0.0</version>
</dependency>
Create API credentials in the Paxos Dashboard and export them as environment variables.
If you don’t have a Sandbox account, sign up here.
Create a file with the following code. This example creates a client, lists your profiles, and prints the result.
import com.paxos.PaxosClient;
import com.paxos.models.Profile;
import com.paxos.models.ListProfilesRequest;
public class Main {
public static void main(String[] args) {
PaxosClient client = PaxosClient.builder()
.clientId(System.getenv("PAXOS_CLIENT_ID"))
.clientSecret(System.getenv("PAXOS_CLIENT_SECRET"))
.sandbox(true)
.build();
// List profiles
for (Profile profile : client.profiles().listProfiles(
ListProfilesRequest.builder().limit(10).build())) {
System.out.printf("Profile: %s (%s)%n", profile.getId(), profile.getNickname());
}
}
}
Next Steps
- Learn how the SDK manages Authentication automatically
- Explore Error Handling patterns
- Set up the Sandbox environment for testing
- Browse the Transfers service reference