News for hackers. Stuff that matters.
Re:Show HN: vim-hackernews by atmosx on Saturday February 07, 2015 @06:25PM (#9015726)
I didn't play with the HN API but I wonder if it's possible to post comments using the API. I haven't seen any program support user comments, it would be neat to be able to post comments using vim :-)
Re:Show HN: vim-hackernews by ryanss on Saturday February 07, 2015 @06:45PM (#9015805)
Hi, plugin author here.

It's not currently possible to post comments using the official API (or any of the unofficial APIs), but this probably wouldn't be difficult to implement using a standard POST request to the actual Hacker News web server. The harder part would be getting the interface for posting comments inside of Vim user friendly; it would probably be similar to how fugitive.vim lets you enter git commit messages.

I will definitely look into adding this to the plugin if enough interest is shown.

Re:Show HN: vim-hackernews by habosa on Sunday February 08, 2015 @05:00AM (#9016879)
I implemented ajax comment posting for the HNES Chrome Extension, which is open source. It's a dirty hack but it works. Check out the source:

https://github.com/etcet/hnes

Re:Show HN: vim-hackernews by davis on Saturday February 07, 2015 @07:18PM (#9015894)
That'd be awesome. Opening up a scratch buffer and then using that for the contents of the comment in the POST would work pretty well. I dig it.
Re:Show HN: vim-hackernews by tomphoolery on Saturday February 07, 2015 @06:34PM (#9015766)
Do you think they deliberately don't make that functionality part of the public API just so people won't create bots?
Re:Show HN: vim-hackernews by xur17 on Saturday February 07, 2015 @06:51PM (#9015821)
I doubt it. It wouldn't take very long at all to write a simple bot to do that with the existing web interface.
Re:Show HN: vim-hackernews by atmosx on Saturday February 07, 2015 @08:21PM (#9016073)
No, it's not that. I don't know why they don't allow comments via the official API.

Maybe @dang would be kind enough to let us know if we'll ever be able to use the API to post AUTH and post comments.