title: How to post with Google Plus API - Java
body: <p>I'm trying to create a web service to use the Google Plus API. I'm writing it in java, however I can't figure out what files I need and how I would go about posting to Google plus groups using Java</p>
  
  <p>If you have any insite please could you post relavent links and helpful tips to help me out.</p>
  
  <p><strong>EDIT 1:</strong></p>
  
  <p>I have been playing around with the GooglePlus API provived by Google and have written a project based on the sample code given from this page: <a href="https://developers.google.com/+/domains/posts/creating" rel="nofollow">https://developers.google.com/+/domains/posts/creating</a></p>
  
  <p>The code runs fine until it gets to the <code>GoogleTokenResponse tokenResponse = flow.newTokenRequest(code).setRedirectUri(REDIRECT_URI).execute();</code> line. Where it returns a null error. I am copying the link provided in the console and pasting in the code, however everytime it just returned a null error, is there a specific part of the returned code given that causes an issue?</p>