future-diary-sdk

0.0.6 • Public • Published

future-diary-sdk

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

Readme

Keywords

none

Package Sidebar

Install

npm i future-diary-sdk

Weekly Downloads

6

Version

0.0.6

License

MIT

Unpacked Size

5.44 kB

Total Files

6

Last publish

Collaborators

  • litomore