https://github.com/jlchntoz/node-plurk2
Full featured Plurk API 2.0 (non-official) for Node.js
https://github.com/jlchntoz/node-plurk2
node plurk
Last synced: 4 months ago
JSON representation
Full featured Plurk API 2.0 (non-official) for Node.js
- Host: GitHub
- URL: https://github.com/jlchntoz/node-plurk2
- Owner: JLChnToZ
- License: mit
- Created: 2017-09-09T13:33:50.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T17:43:13.000Z (over 3 years ago)
- Last Synced: 2024-04-25T00:56:20.558Z (over 2 years ago)
- Topics: node, plurk
- Language: TypeScript
- Homepage: https://code.moka-rin.moe/node-plurk2/
- Size: 313 KB
- Stars: 17
- Watchers: 5
- Forks: 4
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Node-Plurk2
===========
Plurk2 is a full featured Plurk API 2.0 interface for Node.js. It wraps all requests with OAuth 1.0 headers which has been documented. Also it handles events from comet channel.
Installation
----------
```sh
$ npm i --save plurk2
```
Usage
-----
Documentation will be available [here](https://code.moka-rin.moe/node-plurk2/).
### Example Usage
```javascript
const { PlurkClient } = require('plurk2');
const client = new PlurkClient('CONSUMER_TOKEN', 'CONSUMER_TOKEN_SECRET', 'ACCESS_TOKEN', 'ACCESS_TOKEN_SECRET');
client.request('Users/me')
.then(profile => console.log(profile))
.catch(err => console.error(err));
```
For more examples can have a look in [`examples/get-token.js`](examples/get-token.js).
Reference: [Plurk API 2.0](https://www.plurk.com/API)
License
-------
[MIT](LICENSE)