Check user if subscribed to my channel

what is the reference of the eventsub documentation?

Thanks Barri, I investigate to see how I do it

what is the EVENTSUB_SECRET where do I get it?

You choose what that is.

It’s set between you and twitch
And used to sign payloads

can you call two URL at the same time? as i apply it i want to call these two URL:

curl_init(‘https://api.twitch.tv/helix/subscriptions?broadcaster_id=507703972&user_id=’ . $logged_in_user_id);
curl_init(‘https://api.twitch.tv/helix/users’);

Not at the “same time” no.

Just do the cURL’s one after the other.

Barri as use; after here:

$ch = curl_init(‘https://api.twitch.tv/helix/subscriptions?broadcaster_id=507703972&user_id=’ . $logged_in_user_id);

if i can i want to do this:

Step 1) Setup an oAuth loop to get a token for yourself that will read subscribers
Step 2) Store that token and the refresh token in a database
Step 3) user logs into your website as them
Step 4) use the users token to get their user ID
Step 5) call the subscribers API with their userID and your userID (as the broadcasterID) but your oAuth token that you load up from the database.

Then write the code to meet that workflow.

I’m not sure what you are asking.

I want to do this, from this topic:

Then do that

I’ve provided enough infromation for you to go do that.
And a number of code examples.

The only thing left that I can do to help you is to literally write it for you?

Thanks Barri, I’ll see if I get it, I’m using your github code

Barri, is there any way to know if a user is seeing me

I don’t understand what you mean “seeing me”

Barri, is there any way to know if a user is seeing me

What is “seeing me”

online watching my channel

There is no API that provides viewing data.

So no

and online user