=== Repostra ===
Contributors: awcode
Tags: content, blog, automation, repostra, webhook
Requires at least: 6.0
Tested up to: 6.8
Stable tag: 1.0.0
Requires PHP: 8.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Integrate Repostra content creation platform with your WordPress site, allowing you to automatically receive and publish blog posts.

== Description ==

This plugin integrates Repostra content creation platform with your WordPress site, allowing you to automatically receive and publish blog posts from Repostra.

== Installation ==

1. Upload the `repostra` folder to `/wp-content/plugins/`
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Go to Settings > Repostra to configure

== Configuration ==

1. Copy your API key from the plugin settings page
2. In Repostra, add a Website social account
3. Select "Webhook" as the posting method
4. Enter your webhook URL: `https://yoursite.com/wp-json/repostra/v1/webhook`
5. Add the API key in the Repostra webhook configuration

== Webhook Format ==

Repostra sends POST requests to your webhook endpoint with the following JSON format:

### Create Post
```json
{
  "type": "blog_post",
  "repostra_post_id": "123",
  "title": "Post Title",
  "content": "<p>Post content in HTML</p>",
  "excerpt": "Post excerpt",
  "category": "category-slug",
  "featured_image_url": "https://example.com/image.jpg"
}
```

### Update Post
```json
{
  "type": "update_post",
  "repostra_post_id": "123",
  "title": "Updated Title",
  "content": "<p>Updated content</p>",
  "excerpt": "Updated excerpt",
  "featured_image_url": "https://example.com/new-image.jpg"
}
```

### Delete Post
```json
{
  "type": "delete_post",
  "repostra_post_id": "123"
}
```

== Security ==

All webhook requests must include the API key in the `X-Repostra-API-Key` header:

```
X-Repostra-API-Key: your-api-key-here
```

== Support ==

For support, visit https://repostra.app

== Changelog ==

= 1.0.0 =
* Initial release
* Webhook integration for blog posts
* Auto-publish option
* Featured image support
* Category and author assignment

