External PHP code to check Membership Status

  • Luis Daniel Lucio Quiroz
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 5 months ago #150982 by Luis Daniel Lucio Quiroz
External PHP code to check Membership Status was created by Luis Daniel Lucio Quiroz
I am writing a service that I want to use with Membership Pro. The idea is simple, an external PHP code should pull a list of valid memberships of a particular user. (identified by email, assume I know how to get the user ID from the email using J4 API) 

Can you share documentation on how to make this possible?

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #150983 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic External PHP code to check Membership Status
Hello

We do not have documentation for that. However, you can try to look at components/com_osmembership/controller/api.php , method get_active_plan_ids . It gives you list of active subscription plans of a user base on his ID. That could be a good starting point

BTW, your subscription was expired long time ago. So if you want to get more support from us, please renew your subscription

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Luis Daniel Lucio Quiroz
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 5 months ago #150984 by Luis Daniel Lucio Quiroz
Replied by Luis Daniel Lucio Quiroz on topic External PHP code to check Membership Status
I will renew as soon as I understand how this works.

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #150985 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic External PHP code to check Membership Status
OK, that's fine. We will continue providing further support if needed as long as you have an active subscription

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Luis Daniel Lucio Quiroz
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 5 months ago #150986 by Luis Daniel Lucio Quiroz
Replied by Luis Daniel Lucio Quiroz on topic External PHP code to check Membership Status
This is not the way to encourage me to subscribe as soon as possible. Shows your only interest is money.

I have proven in the past that I always try to enhance your software, or have you forgotten the hidden bug I discovered and fixed in 2013?

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #150987 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic External PHP code to check Membership Status

This is not the way to encourage me to subscribe as soon as possible. Shows your only interest is money.


So what I can do in this case? I have show you the code which you can look at it and try to implement to meet your need. Exactly what you want me to do now ? And of course, you need to have a valid subscription to get support from us. Your subscription was expired from almost one year ago, so it's normal that you need to renew your subscription to continue receiving support and update from us

have you forgotten the hidden bug I discovered and fixed in 2013?


Yes, I still remember. Software in general, could have bugs. Thanks for reporting the bugs and If I remember that I also gave you free subscriptions (maybe two years or more, I don't remember exactly).

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #150988 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic External PHP code to check Membership Status
I am available for support, even on Sunday, even your subscription was expired long time ago. What else I can do ?

Please Log in or Create an account to join the conversation.

  • Luis Daniel Lucio Quiroz
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 5 months ago #150989 by Luis Daniel Lucio Quiroz
Replied by Luis Daniel Lucio Quiroz on topic External PHP code to check Membership Status
I don't want you to do anything, you said once, you don't need to say it in each reply.

I have said already, I will study the file, and when ready, I will resubscribe, I have done it several times, and it is not that you have to push it. If I haven't, it's because I haven't used the software, I am planning to use it in a web portal and when the time comes, I will get a new subscription.

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #150990 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic External PHP code to check Membership Status
OK, I mis-understood your comment, then. If that's the case, then all is good for me.

Please Log in or Create an account to join the conversation.