0.4.3 • Published 9 years ago
qiita-js v0.4.3
qiita-js
Qiita api v2 client for browser and commonjs.
Read API detail at http://qiita.com/api/v2/docs or see dist/qiita.d.ts
as typescript definitions.
npm install qiita-js
or
bower install qiita-js
Now browser client needs window.jQuery
to request to server.
I will remove this dependency later but not yet. Sorry...
How to try
Get your token from https://qiita.com/settings/tokens/new
// Require promise and fetch
global.Promise = require('bluebird');
require('isomorphic-fetch')
// require in commonjs env
var Qiita = require('qiita-js');
// set your token
Qiita.setToken('<your token>');
Qiita.setEndpoint('<your team domain || https://qiita.com>');
// fetch resources!
Qiita.Resources.User.get_user('mizchi')
.then(function(user){
console.log(user);
});
How to test
Use your token to run tests.
echo '{"token": "your token"}' > test/token.json
npm test
LICENSE
MIT
0.4.3
9 years ago
0.4.2
9 years ago
0.4.1
9 years ago
0.4.0
9 years ago
0.3.1
10 years ago
0.3.0
10 years ago
0.3.0-alpha
10 years ago
0.2.5
10 years ago
0.2.4
10 years ago
0.2.3
10 years ago
0.2.2
10 years ago
0.2.1
10 years ago
0.2.0
10 years ago
0.1.0
11 years ago
0.0.5
11 years ago
0.0.4
11 years ago
0.0.3
11 years ago
0.0.2
11 years ago
1.0.1
11 years ago