
If you use Eclipse, try following these steps:
- Create a new Maven project (make sure you have Maven integration installed)
- Double-click pom.xml and go to the Dependencies tab
- Click the Add button in the Dependencies list to the left
- Enter "podio" in the search field and select the newest version of com.podio.api (currently 0.7.3)
- Click OK and rebuild the project
Here's a sample on how to authenticate with username/password auth (this auth method is only recommended for testing, not for production use):
String clientId = "[your client id]";
String clientSecret = "[your client secret]";
String username = "[your login email]";
String password = "[your login password]";
ResourceFactory resourceFactory = new ResourceFactory(
new OAuthClientCredentials(clientId, clientSecret),
new OAuthUsernameCredentials(username, password));
APIFactory apiFactory = new APIFactory(resourceFactory);
ItemAPI itemAPI = apiFactory.getAPI(ItemAPI.class);