Solved

Java Sample Code for Interfacing with Google Blogger API 3.0

Posted on 2013-11-21
3
599 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
backtracking recursion  code 19 57
custom annotations 9 38
tomcat not starting 6 45
jboss wildfly 10.1 10 74
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This video teaches viewers about errors in exception handling.

816 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

11 Experts available now in Live!

Get 1:1 Help Now