Published: 10 Feb 2018 › Updated: 10 Feb 2018
Utopian JS: Client side import Script for Utopian API
Utopian.js
What is the project about?
This script provides easy to use functions of Utopian API which can be linked using script tags with available CDN or downloaded minified script.
Technology Stack
- HTML
- CSS
- JS(jQuery)
- Task Runner(GruntJS)
Example
<!doctype html>
<html>
<head>
</head>
<body>
<script src="http://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="https://cdn.rawgit.com/ms10398/utopian.js/master/dist/utopian.min.js"></script>
<script>
utopian.getModerators()
.then((moderators) => console.log(moderators))
utopian.getSponsors()
.then((sponsors) => console.log(sponsors))
utopian.getStats()
.then((stats) => console.log(stats))
utopian.getModerator('ms10398')
.then((moderator) => console.log(moderator))
utopian.getSponsor('yabapmatt')
.then((sponsor) => console.log(sponsor))
utopian.getPosts()
.then((posts) => console.log(posts))
utopian.getTotalPostCount()
.then((count) => console.log(count))
</script>
</body>
</html>
Roadmap
This is the initial release of the script there will be a final release of the script soon.
How to contribute?
Fork the repo, and feel free to send a PR.
You need to follow some specific steps for it-
- install dev dependencies
- install grunt globally
- run grunt before making a PR to generate new minified script.
License
MIT
Supports all browser as the ES6 code code is transpiled to ES5 for the production use.
Posted on Utopian.io - Rewarding Open Source Contributors
Leave Utopian JS: Client side import Script for Utopian API to:
Read more #utopian-io posts
Best Posts From Mohit Sharma
We have not curated any of ms10398's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From Mohit Sharma
- My Actifit Report Card: January 1 2019
- My Actifit Report Card: December 31 2018
- My Actifit Report Card: December 30 2018
- My Actifit Report Card: December 29 2018
- Testing Translations
- This is a title
- Development of Utopian Reviews
- Memeit Development(Front End Changes)
- Major Improvements in Memeit.lol
- Documentation of Open Food Facts Node Wrapper using jsdoc
- Add Contributing Guidelines and Issue and Pull Request Template
- More features added to the OFF Node package
- Mac Tray Icon fix and Installer Icon fix
- NPM wrapper for Open Food Facts Perl API
- Major bug fixes in Susi Desktop
- [Utopian Desktop] - Beta release
- [Utopian.js] - Final Release with all features added
- Utopian JS: Client side import Script for Utopian API
- Voting Power & Reputation Bug Fix and Estimated Account Value Feature added
- Bug Fixes of Susi Server sync timestrngs of previous messages