curl --location --request POST 'https://api.mediashare.com/api/posts' \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"platforms": [
"instagram",
"facebook"
],
"text": "Check out this photo!",
"hashtags": [
"photography"
],
"mediaUrls": [
"https://example.com/photo.jpg"
]
}'{
"message": "string",
"post": {
"_id": "string",
"userId": "string",
"platforms": [
"facebook"
],
"contentType": "post",
"content": {
"text": "string",
"media": [
{
"type": "image",
"url": "string",
"localPath": "string",
"mimeType": "string",
"size": 0
}
],
"hashtags": [
"string"
],
"mentions": [
"string"
]
},
"status": "draft",
"scheduledFor": "2019-08-24T14:15:22.123Z",
"platformPosts": [
{
"platform": "string",
"accountId": "string",
"status": "pending",
"platformPostId": "string",
"platformUrl": "string",
"publishedAt": "2019-08-24T14:15:22.123Z",
"error": "string"
}
],
"createdAt": "2019-08-24T14:15:22.123Z"
}
}