Solved

Java Sample Code for Interfacing with Google Blogger API 3.0

Posted on 2013-11-21
3
681 Views
Last Modified: 2013-11-23
I'm trying to understand how to use the google blogger api in my project. I'm looking to see how to implement the key credentials and then do a test post command via the api in Java.  

I could not find any coding examples on the 3.0 version and looking for any guidance to help me wrap my head around it.

The API Link
https://developers.google.com/blogger/docs/3.0/api-lib/java

Much thanks,
0
Comment
Question by:iamkhova
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 36

Accepted Solution

by:
mccarl earned 500 total points
ID: 39668113
I'm looking to see how to implement the key credentials
By that do you mean you are looking how to authenticate with Google? If so, you need to look into OAuth as this is what is used for all Google API's not just Blogger. Also, the exact method used to authenticate depends on what type of application you are developing. If you are just writing a simple console/GUI type application, ie. one that runs on client side rather than a web app type of thing, you will probably want to look at this variation of OAuth...

https://developers.google.com/accounts/docs/OAuth2InstalledApp

Once you have a feeling for how the authentication scheme works, have a look at some of the sample code that Google have. This link is to a basic application that uses the Google+ API but the authentication side is almost identical between the different API's so start with this and then make small modifications to use the Blogger API instead of Google+.

https://code.google.com/p/google-api-java-client/source/browse/?repo=samples#hg%2Fplus-cmdline-sample



Unfortunately, I don't think there is any ready to run, complete Blogger examples for Java, but hopefully the above is enough information to get you much closer to acheiving your goal.

And by all means, if you have any issues with getting the above going, let us know and we should be able to help further.
0
 

Author Closing Comment

by:iamkhova
ID: 39669561
MCCarl,

Thanks. I will take it a step back and focus on the OAuth2 portion and the Plus example.
0
 
LVL 36

Expert Comment

by:mccarl
ID: 39670994
No worries! Yeah, that is probably a good idea seeing that that is were the ready made samples are at. And the OAuth part is probably going to be the most complex part, I'd say. You have to have the right code and you also have had to setup your account the right way, etc. Once you have that going, it should be easy to apply that to the Blogger API.
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question