SteemPlus API Updates : Getting ready for Premium FeaturessteemCreated with Sketch.

in #utopian-io6 years ago

We've been talking about it for a while and announced them at the SteemFest, the premium features are coming soon!

This update creates the mechanism for redeeming the SPPs for these premium features.

Premium features routines and how they work

Subscribing

The subscribe process takes two steps.
By clicking on the subscribe button, you will send 0.001SBD to SteemPlus. The memo of this transfers includes the name of the feature. Then when SteemPlus receive it, it will check if you have enough SPP to subscribe. If it is the case, SteemPlus will send you an acknowledgement saying your subscribed to the feature. If you don't have enough SPP, SteemPlus will send you an acknowledgement saying you need more SPP.

Unsubscribing

The unsubscribing process is quite similar. You will send a 0.001 SBD to SteemPlus and then SteemPlus will answer.
Because you already pay for a month, even if you cancel your subscription after a day, the feature will be available until the end of the month (period of 31 days).
If you decide to subscribe again, you won't be charged.

Renewing

Renewing your subscription is an automatic process. If you have enough SPP, SteemPlus will renew your subscription and send you a notification.
If you don't have enough SPP, SteemPlus will cancel your subscription and notify you.

Repository:

https://github.com/stoodkev/steemplus-api

Pull Request

Wanna contribute?

Join us on Discord

How to test this code?

  • Subscribe to SteemSQL (10 SBD/month)
  • Clone this repository
  • npm install
  • Set the environment variables (information received by transfer when you subscribe to SteemSQL). These environment variables are LOGIN, PASSWORD, SQL_API and DB.
  • npm run start
  • You should be able to test it on localhost:3000.



@stoodkev and @cedricguillas for @steem-plus

Powered by @adsactly

Powered by @utopian-io

Like what I do? Vote @stoodkev for witness!

Sort:  

Thank you very much for your contribution. I am delighted to see so much features and development ongoing for this project - I am sure it will help lots of Steemians to better use the SteemIt front-end.

Just a small note - most people won't afford 10 SBD per month just to test the code - it might be better to use the mocking test framework - that allows user easily mock the SteemSQL part.

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Thank you for your review, @justyy! Keep up the good work!

question, if you buy steem plus points are they continues upvotes /do i have to keep buying them to get upvotes i.e do they decay? How does it work when buying steemplus points- where do i read about this.

Hi @michealb! SPP do not decay : https://steemit.com/utopian-io/@steem-plus/steemplus-32--buy-spp
Your share of the total SPP distributed will determine your vote. Also, if fewer SPP holders post in the 24 hours window, your vote will be higher.

This post has been just added as new item to timeline of SteemPlus on Steem Projects.

If you want to be notified about new updates from this project, register on Steem Projects and add SteemPlus to your favorite projects.

Should we see the Subscribe button now? Wasn't quite clear from the post.

Keep up the good work.

Hi Steeve, this is the backend work for the premium features.
The extension side will be released soon.

Hi, @steem-plus!

You just got a 9.88% upvote from SteemPlus!
To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn.
If you're not using SteemPlus yet, please check our last posts in here to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.

Hi @steem-plus!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server

Hey, @steem-plus!

Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Congratulations @steem-plus! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You made more than 17000 upvotes. Your next target is to reach 18000 upvotes.

Click here to view your Board of Honor
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

Support SteemitBoard's project! Vote for its witness and get one more award!

This post has been included in today's SOS Daily News - a digest of all you need to know about the State of Steem.