Platforms
Creating pins with board and section targeting.
Create pins with board and section targeting via the Pinterest API.
Connect
Connect Pinterest in the OwlStack dashboard:
- Go to Project Settings > Platforms > Pinterest
- Click Connect with Pinterest
- Authorize OwlStack via OAuth
- Select your target board
Publishing
use OwlStack\Enums\Platform;
$result = $client->publish($post, [Platform::Pinterest]);Options
| Option | Type | Description |
|---|---|---|
board_id | string | Override target board |
board_section_id | string | Target section within the board |
alt_text | string | Alt text for accessibility |
$post = Post::create('Beautiful sunset photo')
->withMedia(Media::image('/path/to/sunset.jpg'))
->withUrl('https://example.com/sunset');
$result = $client->publish($post, [Platform::Pinterest], [
'board_section_id' => '...',
'alt_text' => 'Sunset over the ocean',
]);Constraints
| Constraint | Value |
|---|---|
| Max text length | 800 characters |
| Supported media types | JPEG, PNG, GIF, WebP, MP4 |