Platforms
Publishing self and link posts to subreddits.
Post to subreddits with flair, NSFW, and spoiler support.
Connect
Connect Reddit in the OwlStack dashboard:
- Go to Project Settings > Platforms > Reddit
- Click Connect with Reddit
- Authorize OwlStack via OAuth
- Your Reddit account appears as connected
Publishing
use OwlStack\Enums\Platform;
$result = $client->publish($post, [Platform::Reddit]);Options
| Option | Type | Description |
|---|---|---|
subreddit | string | Required. Target subreddit (without r/) |
kind | string | self (text) or link |
flair_id | string | Post flair ID |
nsfw | bool | Mark as NSFW |
spoiler | bool | Mark as spoiler |
$result = $client->publish($post, [Platform::Reddit], [
'subreddit' => 'php',
'kind' => 'self',
'flair_id' => '...',
]);Constraints
| Constraint | Value |
|---|---|
| Max text length | 40,000 characters |
| Max media | 1 |
| Supported media types | JPEG, PNG, GIF |
| Post types | Self (text) and Link |