Guest User

Untitled

a guest
Apr 10th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. require 'rubygems'
  2. require 'gdata/blogger'
  3.  
  4. puts "\nWhat is your Blogger blogid?\n"
  5. id = gets.strip
  6.  
  7. puts "\nWhat is your Blogger username?\n"
  8. user = gets.strip
  9.  
  10. puts "\nWhat is your Blogger password?\n"
  11. pass = gets.strip
  12.  
  13. puts "\nWhat should the title of this post be?\n"
  14. title = gets.strip
  15.  
  16. puts "\nWhat should the body of this post be?\n"
  17. body = gets.strip
  18.  
  19. blog = GData::Blogger.new(id)
  20.  
  21. blog.authenticate(user, pass)
  22.  
  23. puts blog.entry(title, body)
Add Comment
Please, Sign In to add comment