qiita4js
v0.1.1
Published
Simple Qiita API v2 client written in JavaScript.
Downloads
8
Readme
qiita4js
Simple Qiita API v2 client written in JavaScript.
Reference: Qiita API v2
Installation
Install using npm:
npm install qiita4js
Features
This client library allows GET access only, so you don't need an access token.
- Below apis are implemented.
|method|url| |---|---| |GET|/api/v2/users/:id| |GET|/api/v2/users| |GET|/api/v2/items/:id| |GET|/api/v2/items| |GET|/api/v2/users/:user_id/items| |GET|/api/v2/users/:user_id/stocks| |GET|/api/v2/tags/:id/items| |GET|/api/v2/comments/:id| |GET|/api/v2/items/:item_id/comments|
Example
var qiita = new Qiita4js();
qiita.users('yukinagae').then(function(result) {
console.log(result.name); // => Yuki Nagae
});
TODO
- Below apis are not implemented.
|method|url| |---|---| |GET|/api/v2/users/:user_id/followees| |GET|/api/v2/users/:user_id/followers| |GET|/api/v2/items/:item_id/stockers| |GET|/api/v2/users/:user_id/following| |GET|/api/v2/tags/:id| |GET|/api/v2/tags| |GET|/api/v2/users/:user_id/following_tags| |GET|/api/v2/tags/:id/following| |GET|/api/v2/items/:item_id/stock|
- Error handling
page
andper_page
parameters are not supported.
Tests
Run tests using npm test
.
License
MIT