- Timestamp:
- 04/12/08 22:24:03 (7 months ago)
- Files:
-
- 1 modified
-
lang/vim/misc/mixi.vim (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/vim/misc/mixi.vim
r7234 r9353 12 12 13 13 class Mixi 14 def initialize(email, password) 15 @email, @password = email, password 14 def initialize(email, password, mixi_premium = false) 15 @email, @password, @mixi_premium = 16 email, password, mixi_premium 16 17 @agent = WWW::Mechanize.new 17 18 @agent.user_agent_alias = 'Mac Safari' … … 27 28 page = @agent.get "http://mixi.jp/home.pl" 28 29 page = @agent.get page.links[18].uri 29 form = page.forms[ 1]30 form = page.forms[(@mixi_premium ? 1 : 0)] 30 31 form.diary_title = title 31 32 form.diary_body = body … … 49 50 50 51 m = Mixi.new 'YOUR_EMAIL', 'YOUR_PASSWORD' 52 # if you are mixi premium member: 53 # m = Mixi.new 'YOUR_EMAIL', 'YOUR_PASSWORD', true 51 54 m.post title.toeuc, body.toeuc 52 55 m.get_latest.each do |line|
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)