Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8391479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:16:26+00:00 2026-06-09T19:16:26+00:00

I want to add post to my blog using Blogger API. I successfully got

  • 0

I want to add post to my blog using Blogger API. I successfully got rights to use Blogger API and activated them in Google API console. I used this tutorial to obtain access_token. I found this question , so before ever request I obtain new request_token.

When I make first request to add post, I got en error: 401 “message”: “Invalid Credentials”, “location”: “Authorization”.

When I make second request to add post with new token, I got error: 403 “message”: “Daily Limit Exceeded. Please sign up”

Code for my request is:

final JSONObject obj = new JSONObject();
obj.put("id", mUserID);

final JSONObject requestBody = new JSONObject();
requestBody.put("kind", "blogger#post");
requestBody.put("blog", obj);
requestBody.put("title", msg[0]);
requestBody.put("content", msg[0] + " " + msg[1]);

final HttpPost request = new HttpPost("https://www.googleapis.com/blogger/v3/blogs/" +   mUserID + "/posts");
request.addHeader("Authorization", "Bearer " + mToken);
request.addHeader("Content-Type", "application/json");
request.setEntity(new StringEntity(requestBody.toString()));
final HttpResponse response = mHttpClient.execute(request);

final HttpEntity ent = response.getEntity();
Log.i(SocialPoster.LOG, EntityUtils.toString(ent));
ent.consumeContent();

UPDATE
Solution was found: simply adding “?key={MY_API_KEY}” to request’s URL solved the problem

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T19:16:28+00:00Added an answer on June 9, 2026 at 7:16 pm

    The Tutorial site you linked states

    “The API Key is mandatory as it identifies your application and therefore allows the API to deduct quota and use the quota rules defined for your project. You need to specify the API Key on your Tasks service Object.”

    useTasksAPI(String accessToken) {
      // Setting up the Tasks API Service
      HttpTransport transport = AndroidHttp.newCompatibleTransport();
      AccessProtectedResource accessProtectedResource = new GoogleAccessProtectedResource(accessToken);
      Tasks service = new Tasks(transport, accessProtectedResource, new JacksonFactory());
      service.accessKey = INSERT_YOUR_API_KEY;
      service.setApplicationName("Google-TasksSample/1.0");
    
      // TODO: now use the service to query the Tasks API
    }
    

    Sounds to me like you are missing the API key, using it wrong, misplaced it in your code or supplied it to the service in the wrong way.

    I haven’t looked over the code here, but this is Google’s sample code for what you are trying to do. Test your API key with this code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating a blog in Rails using Scaffolding. I want to add a
I m building a blog in asp.net. I want to use jquery to add
I'm using the CakePHP blog example: function add() { if (!empty($this->data)) { if ($this->Post->saveAll($this->data))
i really want to add multiple tags to a blog post when a user
I have a scraping object basically. I want to be able to add POST
I want to know how to add a new submenu for a custom post
I'm using tabbed featured post for my blog. How to implement the div#latest-featured will
Im using the color picker here: http://blog.meta100.com/post/600571131/mcolorpicker Im using code shown in example 3.
I'm using a Wordpress Theme that doesn't have the blog / latest post displaying
I have a self-hosted WordPress blog post that got popular and has over 100

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.