Subscriptions Beta Changes

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

How many days after a user’s subscription ends are they removed from the API channel_subscriptions? (either because they ended paid subscription or did not resub on their Prime subscription)

I have a Prime viewer whom I know has not resubbed. They subbed on May 3 but they’re still appearing in API as of June 4.

Just lifting my related topic in this thread

Does anyone have a more correct method to calculate the sub-points than mentioned in this topic, or any other suggestions?

Ping @DallasNChains

Refresh the Subscription data for the user when the user logs in. And keep the session times to a day instead?

Or, if you have channel permission, refresh you channel subscribers once (or maybe four times a day) and just allow that “free” access for that “short” timer period?

Theres usually a small window of delay for clearing up a sub, it’s weird but it should be dead, but seems to have a window

Currently the only way to calculate is to iterate over all the subs, but I think that sub points is gonna get added to the API as a few people have requested it. Who knows :slight_smile:

https://twitter.com/TwitchSupport/status/872221577466843136 <- is that going to be through twitchnotify or usernotices? I’m good either way, just want to be prepared :slight_smile: So glad this has gone (is going?) back to default behaviour!
TIA!

twitchnotify was deprecated regardless, so 99% sure it will still be through USERNOTICE. The only change is that sharing/announcements will now be automatic for first time subs.

But you never know it could be back.

That would be my assumption too, but good to get confirmation on.

So New Subs can’t leave a message?

Or are we expecting a “new sub” notification then a “new sub message” notification?

Update: I seem to have just got a pubsub.

Context: sub
months: 0

Yeah I wasn’t too sure on how they’d approach that but possibly 2 separate messages? Or something like: you get 24hrs to share with a message, but after that it gets shared without one? We do still need confirmation like @iamthem00s3 said and hopefully we can get one soon.

I was just saying it’s highly unlikely they’ll go back to twitchnotify.

I have a theory they have just made it auto fire and not show the share dialog for new subs at all. So you’ll never get a second alert

Ah but then how would they add a message, maybe a separate event for sub messages?

New subs just can’t at all now. It’s back to how it was before

TLDR:
TwitchDev: FYI, devs, this means that first-time subs will send USERNOTICE and PubSub immediately with an empty message. Resubs are the same as before. twitter.com/TwitchSupport/…

They confirmed on Twitter new subs won’t get to send messages - https://twitter.com/twitchdev/status/872248710901760000 so basically nothing changes apart from people can’t send first time sub messages. Remains a USERNOTICE/PubSub.

Correct info above. Basically, first time subs are sent over USERNOTICE and PubSub at the same time as twitchnotify was sent previously. First time subs will not be able to share a message. Resubs are the same.

still about 10,0000,000000x better than no auto-announce for new subs.

I’m very pleased about this ^^

I think Twitch will probably end up putting a message field before a final confirmation on first subs. Though differentiating first subs from resubs might be a bit tricky! Oh well, can’t wait to see what Twitch’s devs decide to do!

Any word on when score will find it’s way into the API?

1 Like

Just about to start work on a WordPress plugin that integrates Twitch subscriptions with the Ultimate Members plugin. These changes open the door to a range of features for popular streamers to use in a WP site and pull traffic to their own domain. Another step towards streamers owning their community and offering an actual service tailored to suit their style.