Hi,
i was wondering if you are planning on adding some kind of functionality to give us information on how long a subscription is valid, e.g. a timestamp, datetime or whatever.
I’m asking because the website I’m building has a special subscriber area. This area should obviously only be accessible if you are subscribed to a specified channel. Right now I have to make an API call every time the site get refreshed to find out if the navigation bar should include a link to the subscriber area or not. If there was a way to see how long the subscription is valid I could add this information in my database and refresh this information every time the user reauthenticates with twitch. Obviously on the subscriber page itself I would make an API call to get “live” data about subscription status.
Normally I wouldn’t care about making an API call every time the site gets refreshed but especially the subscription call - in my opinion - takes really long and slows the web app down a lot. As a workaround I added the subscriber area link asynchronously by using jquery and making a call the Twitch API in background. Sometimes the page is fully loaded but it takes up to 5 seconds until the sub link gets added from the async call.
From what I get the “Recurring Payment Date: xx/xx” should be exactly the information needed in the API.
Best
Tom