0.4.3 • Published 8 years ago

qiita-js v0.4.3

Weekly downloads
10
License
MIT
Repository
github
Last release
8 years ago

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

8 years ago

0.4.2

8 years ago

0.4.1

8 years ago

0.4.0

8 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.3.0-alpha

9 years ago

0.2.5

9 years ago

0.2.4

9 years ago

0.2.3

9 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

1.0.1

9 years ago