Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mmis1000/plurkapi
an unofficial plurk api lib
https://github.com/mmis1000/plurkapi
Last synced: about 2 months ago
JSON representation
an unofficial plurk api lib
- Host: GitHub
- URL: https://github.com/mmis1000/plurkapi
- Owner: mmis1000
- License: mit
- Created: 2015-01-23T10:41:53.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-11-27T04:43:17.000Z (about 6 years ago)
- Last Synced: 2024-04-14T22:53:54.429Z (9 months ago)
- Language: CoffeeScript
- Size: 30.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# plurkAPI
an unofficial plurk api lib===
usage
```javascript
var PlurkAPI = require("plurkAPI")
var api = new PlurkAPI({
"appKey" : "xxxxxxxxxxxx",
"appSecret" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"clientToken" : "xxxxxxxxxxxx",
"clientSecret" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
});
// if you want to access /Emoticons/get
api.emothionsGet(function(err, data, res) {
console.log(data);
});
// if you want to access /Responses/get
api.responsesGet(1234567890, function(err, data, res){
if (!err) {
console.log(data);
} else {
console.error(err)
}
};
// if you want to access /Responses/get with optional parameter
api.responsesGet(1234567890, {from_response : 5},function(err, data, res){
console.log(data);
};
// if you would like use object parameter instead
api.responsesGet({plurk_id: 1234567890,from_response : 5},function(err, data, res){
console.log(data);
};
// you can find the parameters each api required in plurkapilist.coffee
```