create account

Utopian JS: Client side import Script for Utopian API by ms10398

View this thread on: hive.blogpeakd.comecency.com
· @ms10398 · (edited)
$139.64
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
````js
<!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](https://github.com/ms10398/utopian.js), 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.**
    

<br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@ms10398/utopian-js-client-side-import-script-for-utopian-api">Utopian.io -  Rewarding Open Source Contributors</a></em><hr/>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 54 others
properties (23)
authorms10398
permlinkutopian-js-client-side-import-script-for-utopian-api
categoryutopian-io
json_metadata{"community":"utopian","app":"utopian/1.0.0","format":"markdown","repository":{"id":121041333,"name":"utopian.js","full_name":"ms10398/utopian.js","html_url":"https://github.com/ms10398/utopian.js","fork":false,"owner":{"login":"ms10398"}},"pullRequests":[],"platform":"github","type":"development","tags":["utopian-io","utopianjs"],"links":["https://github.com/ms10398/utopian.js"],"moderator":{"account":"justyy","time":"2018-02-10T19:23:06.917Z","reviewed":true,"pending":false,"flagged":false}}
created2018-02-10 19:10:12
last_update2018-02-10 19:23:06
depth0
children5
last_payout2018-02-17 19:10:12
cashout_time1969-12-31 23:59:59
total_payout_value97.448 HBD
curator_payout_value42.190 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,674
author_reputation27,572,487,973,390
root_title"Utopian JS: Client side import Script for Utopian API"
beneficiaries
0.
accountutopian.pay
weight2,500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id36,483,558
net_rshares23,501,695,433,044
author_curate_reward""
vote details (118)
@justyy ·
$0.05
Thank you for the contribution. It has been approved.

Looks great... This is the client side of  [Utopian API](https://www.npmjs.com/package/utopian-api)

You can contact us on [Discord](https://discord.gg/uTyJkNm).
**[[utopian-moderator]](https://utopian.io/moderators)**
👍  ,
properties (23)
authorjustyy
permlinkre-ms10398-utopian-js-client-side-import-script-for-utopian-api-20180210t192404588z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-02-10 19:24:06
last_update2018-02-10 19:24:06
depth1
children1
last_payout2018-02-17 19:24:06
cashout_time1969-12-31 23:59:59
total_payout_value0.050 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length273
author_reputation280,616,224,641,976
root_title"Utopian JS: Client side import Script for Utopian API"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id36,485,996
net_rshares7,069,983,820
author_curate_reward""
vote details (2)
@ms10398 ·
Yes its a pure Vanilla JS version which can be used in Front-end only projects.

It is transpiled for all browsers using babel with Grunt as a task runner.

And yes, 
Thanks for the approval.
properties (22)
authorms10398
permlinkre-justyy-re-ms10398-utopian-js-client-side-import-script-for-utopian-api-20180210t192941375z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-02-10 19:29:42
last_update2018-02-10 19:29:42
depth2
children0
last_payout2018-02-17 19:29:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length191
author_reputation27,572,487,973,390
root_title"Utopian JS: Client side import Script for Utopian API"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id36,486,982
net_rshares0
@utopian-io ·
### Hey @ms10398 I am @utopian-io. I have just upvoted you!
#### Achievements
- WOW WOW WOW People loved what you did here. GREAT JOB!
- You have less than 500 followers. Just gave you a gift to help you succeed!
- Seems like you contribute quite often. AMAZING!
#### Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. <a href="https://discord.gg/zTrEMqB">Participate on Discord</a>. Lets GROW TOGETHER!
- <a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1">Vote for my Witness With SteemConnect</a>
- <a href="https://v2.steemconnect.com/sign/account-witness-proxy?proxy=utopian-io&approve=1">Proxy vote to Utopian Witness with SteemConnect</a>
- Or vote/proxy on <a href="https://steemit.com/~witnesses">Steemit Witnesses</a>

[![mooncryption-utopian-witness-gif](https://steemitimages.com/DQmYPUuQRptAqNBCQRwQjKWAqWU3zJkL3RXVUtEKVury8up/mooncryption-s-utopian-io-witness-gif.gif)](https://steemit.com/~witnesses)

**Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x**
properties (22)
authorutopian-io
permlinkre-ms10398-utopian-js-client-side-import-script-for-utopian-api-20180211t094333355z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-02-11 09:43:33
last_update2018-02-11 09:43:33
depth1
children0
last_payout2018-02-18 09:43:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,140
author_reputation152,955,367,999,756
root_title"Utopian JS: Client side import Script for Utopian API"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id36,630,118
net_rshares0
@wehmoen · (edited)
$0.03
 
👍  
properties (23)
authorwehmoen
permlinkre-ms10398-utopian-js-client-side-import-script-for-utopian-api-20180210t231441300z
categoryutopian-io
json_metadata{}
created2018-02-10 23:14:42
last_update2020-06-03 06:53:51
depth1
children1
last_payout2018-02-17 23:14:42
cashout_time1969-12-31 23:59:59
total_payout_value0.029 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1
author_reputation86,504,380,503,125
root_title"Utopian JS: Client side import Script for Utopian API"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id36,523,811
net_rshares4,280,463,365
author_curate_reward""
vote details (1)
@ms10398 ·
I am coming up with more cool stuffs 

Our CTO :)
properties (22)
authorms10398
permlinkre-wehmoen-re-ms10398-utopian-js-client-side-import-script-for-utopian-api-20180210t233857833z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-02-10 23:38:57
last_update2018-02-10 23:38:57
depth2
children0
last_payout2018-02-17 23:38:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length49
author_reputation27,572,487,973,390
root_title"Utopian JS: Client side import Script for Utopian API"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id36,528,102
net_rshares0