node-utopian-rocks
An API wrapper for utopian.rocks.
Installing
Using npm:
npm install node-utopian-rocks
Usage
First add it to your project
// Using CommonJS modulesconst utopian = ;
For example retrieving posts by category and status Asynchronously
:
await utopian
or by using .then()
method:
utopian;
Or Let's run some tests:
npm test
API
Request method aliases
utopian.getPosts(params)
utopian.getModerators()
utopian.getStats(params)
Request parameters
These are the available parameters for making requests.
We will start with posts object
:
utopian
Any parameter can be ignored by empty string or just null
utopian
Supported Tags
Tag | Task tag |
---|---|
development | task-development |
copywriting | task-copywriting |
graphics | task-graphics |
analysis | task-analysis |
social | task-social |
documentation | task-documentation |
blog | |
bug-hunting | |
ideas | |
video-tutorials | |
tutorials |
For moderators object
it should be called without any parameters.
utopian;
For Statistics
/** * you can use a specific date like 2018-05-24 or today, weekly. * Those are the available sections for stats: * moderators, categories, projects, staff_picks, task_requests * any thing else will retrieve all sections. */utopian;
Roadmap
- Adding any upcoming API calls that will be available on https://utopian.rocks
- More improvements and more advanced options, configs.
Contributing
Feel free to create any pull requests.
Bugs
If there is any bug please report it by opening a new issue.