Solved

Java Sample Code for Interfacing with Google Blogger API 3.0

Posted on 2013-11-21
3
572 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
  • 2
3 Comments
 
LVL 35

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 35

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
count8 challlenge 13 85
array6 challenfge 6 62
How Complex Is This Java Course ? 9 63
Java / Linux and Regular Expressions 11 45
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now