Publish a new Khoros Marketing Message for the target Initiative
Details
Publish a new Spredfast Messages for the target Initiative. Note: For multiple images the cURL should looks like this (notice that content.images is an array and must contain the same number of elements as files being uploaded):
curl \
--header 'Content-Type: multipart/form-data' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {your token}' \
--form 'message={"sfEntityType":"Message","service":"FACEBOOK","content":{"sfEntityType":"ImageShareList","images":[{"sfEntityType":"ImageShare","caption":"image one"},{"sfEntityType":"ImageShare","caption":"image two"},{"sfEntityType":"ImageShare","caption":"image three"}]},"targetAccountIds":["4"]};type=application/json' -F '[email protected]' \
--form '[email protected]' \
--form '[email protected]' \
-X POST 'https://api.spredfast.com/v2/conversations/initiative/{initiativeId}/message?imageset'
Content Object (one of the following)
Option 1
discriminator: sfEntityType
Field | Type |
---|---|
caption | string |
temporaryImageUrl | string |
temporaryThumbnailUrl | string |
Option 2
sfEntityType | string |
---|---|
images | string or array[object] |
images Object (if images field is an array)
caption | string |
---|---|
temporaryImageUrl | string |
temporaryThumbnailUrl | string |
Option 3
videoTitle | string |
---|---|
description | string |
tags | string |
category | string |
sfEntityType | string |
YouTube
When YouTube is selected as the service
, the value of the category
field needs to match one of the keys listed in this table:
Key | Description |
---|---|
| Autos & Vehicles |
| Comedy |
| Education |
| Entertainment |
| Film & Animation |
| Gaming |
| Howto & Style |
| Music |
| News & Politics |
| Nonprofits & Activism |
| People & Blogs |
| Pets & Animals |
| Science & Technology |
| Sports |
| Travel & Events |
Option 4
text | string |
---|---|
shareLink | object |
sfEntityType | string |
shareLink Object
url | string |
---|---|
title | string |
description | string |
caption | string |
thumbnailUrl | string |