A sample repository showing how to use the pluggy-sdk-java library.
- Since the
pluggy-java
dependency is only available Github Packages at the moment, we need first to add the GH Packages server config to our.m2/settings.xml
file. Follow these steps for more details. - Install dependencies:
mvn clean install
- Make sure to define
PLUGGY_CLIENT_ID
andPLUGGY_CLIENT_SECRET
env variables.
export PLUGGY_CLIENT_ID="<your client id>" && export PLUGGY_CLIENT_ID="<your client secret>"
set PLUGGY_CLIENT_ID="<your client id>" && set PLUGGY_CLIENT_SECRET="<your client secret>"
- Compile & Run the main class HelloPluggyJava
mvn compile exec:java
(Of course, you can also run it using any IDE of your choice)
- If everything went smoothly, you should see logs showing an API request response.