Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'rubygems'
- require 'gdata/blogger'
- puts "\nWhat is your Blogger blogid?\n"
- id = gets.strip
- puts "\nWhat is your Blogger username?\n"
- user = gets.strip
- puts "\nWhat is your Blogger password?\n"
- pass = gets.strip
- puts "\nWhat should the title of this post be?\n"
- title = gets.strip
- puts "\nWhat should the body of this post be?\n"
- body = gets.strip
- blog = GData::Blogger.new(id)
- blog.authenticate(user, pass)
- puts blog.entry(title, body)
Add Comment
Please, Sign In to add comment