GET Request

Java Example Code for Teamwork API GET Request

We have a quick example of using the Teamwork API with Java which makes an authenticated GET request.

This should be easy to extend to a POST/PUT/DELETE request and is a good basis to start from.

Download example

Package includes 2 files

  • Base64Coder.java
  • TeamworkAPI.java

How to run this example:

  • Start Eclipse and add a new project called TeamworkAPI
  • Copy the 2 files from the zip file in to your project
  • Modify the variables in TeamworkAPI.java to your API Key and Teamwork URL
  • Run the example and you should get a JSON response of all your projects on Teamwork.