Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I post to posts and pages on a blogger blog using Ruby?

I am looking to automate some functionality on my blogger blogs and would like to use Ruby to do it. What do I need to look into to post both blog posts and bogger.com's newer "Pages" feature?

Updated:

Based on quick googling it looks like there isn't really any complete libraries - GData for ruby looks incomplete with the Blogger API as a TODO.

A guess based on a quick review is that I have to Authenticate with the GData API and then use the authentication to communicate with Blogger's API. There is an Atom API that some people have used with ruby but it is on the way to deprecation so it is probably a bad choice.

like image 689
srboisvert Avatar asked Dec 27 '25 22:12

srboisvert


1 Answers

Your best choice is to use the Protocol API for Blogger and build up what you need around it. This way you are able to use the latest features available in the API. Unfortunately, there's no native Ruby wrapper for it, so you'll have to handle sending and receiving HTTP messages yourself.

like image 168
G Gordon Worley III Avatar answered Dec 30 '25 15:12

G Gordon Worley III