Add publish API
Merge pull request #12 from fkmhrk/publish

Add publish API