title: Using Java blogger API v3 to post on blog dynamically
body: <p>I have two issues regarding using Java blogger API v3 to dynamically posting posts to my blogger account.</p>
  
  <p>First </p>
  
  <p>I used the following code to get credential for accessing my blog:</p>
  
  <pre><code>GoogleCredential credential = new GoogleCredential.Builder()
                  .setTransport(httpTransport)                
                  .setJsonFactory(JSON_FACTORY)
                  .setServiceAccountId(emailAddress)
                  .setServiceAccountPrivateKeyFromP12File(
                  new File(p12FileLocation))
                  .setServiceAccountScopes(Collections.singleton(BloggerScopes.BLOGGER))
                  .build();
  
          credential.setAccessToken("zRLqmkM82626Uym9Uv1Jsdd");
  
  
          Blogger blogger = new Blogger.Builder(httpTransport, JSON_FACTORY, credential)
                  .setApplicationName("Blogger")
                  .build();
          // .... rest of the code to prepare post and send it ......
  </code></pre>
  
  <p>I set the access token above (credential.setAccessToken) that was generated from the following google page: <a href="https://developers.google.com/oauthplayground" rel="nofollow">https://developers.google.com/oauthplayground</a></p>
  
  <p>but this token is expired every 3600 seconds. so I visit the page again and press the button "Refresh access token" to get another one and use it again in above code.</p>
  
  <p><strong>Is this the correct method of accessing my blog and dynamically posting contents and articles programmatically?</strong></p>
  
  <p>Second</p>
  
  <p>In google developers console <a href="https://developers.google.com/console" rel="nofollow">https://developers.google.com/console</a> i saw that I have 10000 requests/day and a limit of 1 request/second/user</p>
  
  <p>BUT</p>
  
  <p>after correctly posting dynamically using my above code around 50 posts (note that I set a wait for around 5 seconds between a consecutive requests), I started receiving the following error from the api call:</p>
  
  <pre><code>{
    "code" : 403,
    "errors" : [ {
      "domain" : "usageLimits",
      "message" : "Rate Limit Exceeded",
      "reason" : "rateLimitExceeded"
    } ],
    "message" : "Rate Limit Exceeded"
  }
  </code></pre>
  
  <p>I return to my quota page and I see that the requests that I send did not decreased from my allowed requests per day !!!</p>
  
  <p>Some my second question is:</p>
  
  <p><strong>Does I forget a specific configuration for correctly manipulate my blog dynamically ?</strong></p>
  
  <p>Thank you in advance for your help and support.</p>