praw icon indicating copy to clipboard operation
praw copied to clipboard

R/PAN support

Open eelcohn opened this issue 3 years ago • 8 comments

Describe the solution you'd like

Is anyone already working on support for R/PAN (Reddit Public Access Network) broadcasts? Specifically the following calls:

Get a list of valid RPAN subreddits:

curl -X GET "https://strapi.reddit.com/recommended_broadcaster_prompts" -H "User-Agent: Broadcaster 0.0.1" -H "Authorization: Bearer TOKEN"

Create a new broadcast:

curl -X POST "https://strapi.reddit.com/r/{subreddit}/broadcasts?title={title}" -H "User-Agent: Broadcaster 0.0.1" -H "Authorization: Bearer TOKEN"

Stop a broadcast:

curl -X POST "https://strapi.reddit.com/videos/{stream_id}/end" -H "User-Agent: Broadcaster 0.0.1" -H "Authorization: Bearer TOKEN"

Describe alternatives you've considered

No response

Additional context

No response

eelcohn avatar Dec 13 '21 13:12 eelcohn

I don't think praw implements unofficial end points. The list of official end points are here https://www.reddit.com/dev/api/

isFakeAccount avatar Dec 20 '21 06:12 isFakeAccount

I don't think praw implements unofficial end points. The list of official end points are here https://www.reddit.com/dev/api/

We will as long as you can access them with third party applications. There are several PRAW features that rely on unofficial endpoints.

I have not tested the strapi endpoint to see if a third party access token will work with it yet but I'll add it to my todo list.

LilSpazJoekp avatar Dec 20 '21 07:12 LilSpazJoekp

We will as long as you can access them with third party applications. There are several PRAW features that rely on unofficial endpoints.

Does that mean praw can add chat endpoints? I feel like adding an unofficial endpoint is a bit risky because Reddit could pull the plug on that feature.

There are several PRAW features that rely on unofficial endpoints

Didn't know that. What features are those?

isFakeAccount avatar Dec 21 '21 04:12 isFakeAccount

Does that mean praw can add chat endpoints? I feel like adding an unofficial endpoint is a bit risky because Reddit could pull the plug on that feature.

Not chat or the gql endpoint as those are restricted.

Didn't know that. What features are those?

The ones I can think of off the top of my head: Inline media, drafts, invited moderators, gallery posts, uploading images/videos to Reddit directly for posts, and modifying subreddit settings that only appear on new Reddit.

LilSpazJoekp avatar Dec 21 '21 04:12 LilSpazJoekp

This issue is stale because it has been open for 20 days with no activity. Remove the Stale label or comment or this will be closed in 10 days.

github-actions[bot] avatar Jan 10 '22 06:01 github-actions[bot]

This issue is stale because it has been open for 20 days with no activity. Remove the Stale label or comment or this will be closed in 10 days.

github-actions[bot] avatar Feb 01 '22 00:02 github-actions[bot]

In which variable is the access token stored in PRAW? I'd like to write my own RPAN code for the time being.

eelcohn avatar Feb 01 '22 08:02 eelcohn

You can access the access token with reddit._core._authorizer.access_token just note that you will have to refresh this yourself if you plan on making requests manually without PRAW/prawcore.

LilSpazJoekp avatar Feb 01 '22 19:02 LilSpazJoekp

Unfortunately, Reddit is sunsetting r/PAN. So I'm going to close this issue as won't fix.

LilSpazJoekp avatar Nov 10 '23 20:11 LilSpazJoekp