latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

User specific API Keys for Downloads

Home Forums Community Forum User specific API Keys for Downloads

This topic contains 1 reply, has 2 voices. Last updated by  Raam Dev 4 years, 9 months ago.

Topic Author Topic
Posted: Wednesday Apr 11th, 2012 at 6:40 am #10544
Dude
Username: schoenmann

Hi,
I’m not sure if s2members already supports this feature or if this is some sort of feature request.

The challenge: I have a restricted download area where my users (who have paid for a subscription) can download some files. Now I want to give them links to the files – this will allow them to download the files directly and they’re not forced to log in on my website, etc. anymore. However I don’t want to give them “free” access to the files – so if their subscription expired or if the member account doesn’t exist anymore they’re also not allowed to download the files by using the direct links. At the moment I’ve only found the s2member_file_download_key() function which seems to help me with this task however I can not generate an user specific key which is valid as long as his/her membership is valid. If I use the authentication option the user needs to log in again (at least I think so) and I want to avoid this. Basically my proposal/question is if it would be possible to add a function which generates user specific api keys which helps s2members to identify the user.

Edit: I searched a bit and found: http://www.s2member.com/kb/remote-user-status-custom-api/ – basicallly I think it will help me but imho it would be great if this becomes a standard/core feature.

  • This topic was modified 4 years, 9 months ago by  Dude.
  • This topic was modified 4 years, 9 months ago by  Dude.

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Wednesday Apr 11th, 2012 at 1:20 pm #10571
Raam Dev
Username: Raam
Staff Member

Hello,

You are correct that the Remote User Status API hack is going to be your best option for now. The s2Member download key is only good for the current day, which means members are required to login to access the download links in the future (if they copy any of those links, they’ll expire after the current day, requiring them to login again to download; this is a security feature).

We will take your feature request into consideration for a future release of s2Member. Thank you!

Viewing 1 replies (of 1 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.