Complete the steps described in the rest of this page to run a simple Java command-line application that uses the Vault Export API.
Setup the working directory
- Unzip the sample app into your working directory.
Go to your API Project:
- Click Credentials.
- Click Create Credentials OAuth Client Id.
- Click Type—Other.
- Enter a name such as Vault API Quickstart.
- Click OK.
- Click Download JSON to the right of the client ID.
- Rename the JSON file to
- Move the JSON file to
[working-directory]/src/main/resources, overwriting the existing file.
Run the samples
gradle -q run