electron-authentication-hatena
This Electron library that help to login by OAuth for Hatena.
はてなサービス(はてなブックマークなど)のAPI利用に必要なOAuth認証を行うライブラリです。
Installation
npm install electron-authentication-hatena
Usage
See example app.
npm run example
Code:
const electron = ;const dialog = electrondialog; const CONSUMER = key: '______' secret: '_______';const AuthenticationHatena = AuthenticationHatena;// http://developer.hatena.com/ja/documents/auth/apis/oauth/consumerconst hatena = key: CONSUMERkey secret: CONSUMERsecret scopes: "read_public" "write_public";hatena;
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
License
MIT