Simple Membership Plugin › Forums › Simple Membership Plugin › API capabilities?
Tagged: api
- This topic has 4 replies, 3 voices, and was last updated 8 years, 2 months ago by
Dayo.
-
AuthorPosts
-
March 7, 2018 at 9:42 am #13597
Dayo
ParticipantA client of mine is using this plugin for her website and am developing a mobile app using cordova for her. Is there a way I can create a user, subscription – basically, is there a way I can use this plugin features remotely via API?
Thanks.
March 7, 2018 at 7:10 pm #13602The Assurer
ModeratorIn order to do this using Cordova, you’d need a secure API that supports HTTP POST or GET requests. The plugin does not currently support such a feature, but we could certainly design one for you.
March 7, 2018 at 10:51 pm #13603Dayo
ParticipantIf I understand you completely, with paid support, you can offer me the plugin with API capabilities to each of the plugin features?
March 8, 2018 at 11:48 am #13614vinaysamant
ParticipantHi Dayo,
i m not support executive but a regular user and diehard fan of this plugin. One of my major client is using it and very happy so far. Recently i accessed this forum for some request and while looking at various posts, i realized that i can share my experience with you people to achieve what you may want…
I have a client in India http://punashcha.com/, that is a online magazine in Marathi (local language here) which is based on this plugin. I have developed Cordova Based mobile app, basically android, for this. So i have faced all those things you are facing right now. You may just download the app from there and see it’s working..
immediate solution to your requirement :
when i want my cordova user to be “logged in” to access protected data, i present him a link to access login URL on website. I open this link with “inappbrowser” so that i can control. The page doesnt have header, footer anything. Just login interphase with username-pass. Actually this page has login shortcode of SWPM. when user enter’s credentials and login, the page is redirected to “/myzone” which is another custom page displaying protected articles.. In my cordova app, if i detect loading of this page then i immediately close “inappbrowser” window and refresh list of articles! If you are using REST JSON to fetch articles, then you will get protected article with custom message for non-logged in user and will get full article for logged in user with proper access…i have also written my custom endpoints to collect user credentials and membership level and present articles and message accordingly. I hope this will help you. Let me know if you get stuckup somewhere…
March 8, 2018 at 2:51 pm #13622Dayo
ParticipantHi vinaysamant,
Thanks for the help and detailed post. My client currently use the plugin for her premium video streaming plaform, where when you signup and make payment, you will be assigned to a membership level (bronze, silver, gold, platinum).
What I need of the plugin are these two:
1. I want to be able to login on the cordova app with the same user/password they are currently using on the website.
2. New users can create an account and make payment on the cordova app and I assign them to levels on the plugin and even when they sign in via the website, their credentials are recognised.
You think it’s possible to achieve??
-
AuthorPosts
- You must be logged in to reply to this topic.