0.0.6 • Published 3 years ago

future-diary-sdk v0.0.6

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

future-diary-sdk

npm.io npm.io npm.io

Future Diary SDK for Node.js

Install

$ npm i future-diary-sdk

Usage

const Future = require('future-diary-sdk');

const f = new Future({
	host: 'weilairiji.com',
	username: '',
	password: ''
});

(async () => {
	try {
		// GET
		const timeline = await f.get('/statuses/user_timeline', {id: 10962});
		console.log(timeline);

		// POST
		const result = await f.post('/statuses/update', {status: 'unicorn'});
		console.log(result);
	} catch (err) {
		console.log(err);
	}
})();

For more APIs, see the Future Diary API doc.

API

f.get(uri, params);
f.post(uri, params);

Related

License

MIT © Future Diary

0.0.6

3 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.1

6 years ago