Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 836 Bytes

README.md

File metadata and controls

18 lines (11 loc) · 836 Bytes

gn-api-sdk-java Using Examples

This project has some java file examples to test the Java SDK for Gerencianet API.

Requirements

  • Java >= 7.0

Running examples

Update src/main/resources/credentials.json file with client_id, client_secret and certificate of your application.

You can run using any Java IDE, like Eclipse or Netbeans, with Maven plugin installed, and follow these steps:

  1. clone this git repository in a local directory of your choice;
  2. on your IDE, open the folder as a Maven project. It'll download gn-api-sdk-java as a dependencie;
  3. choose any project's example and run it as a Java Application. The result will be displayed on the console.

⚠️ Some examples require you to change some parameters to work, like br.com.gerencianet.carnet.json.Detail.java where you must change the id parameter.