加齢なるブログ

このブログ見たら2週間以内に加齢臭出ます。

Vim からポストしてみるよ!

コードはこんな感じ

```
scriptencoding utf-8

let hatena_id = 'xxxxx'
let password = 'api-secret'
let blog_id = 'yyyyy.hatenablog.com'

" write entry
let entry = webapi#atom#newEntry()
call entry.setTitle("Vim からポストしてみるよ!")
call entry.setContentType("text/x-markdown")
call entry.setContent("ワシが男塾塾長、江田島平八郎であーる!")

" post draft
let url = "http://blog.hatena.ne.jp/".hatena_id."/".blog_id."/atom/entry"
    let id = webapi#atom#createEntry(url, hatena_id, password, entry)
```