Share Content
Share third-party content, such as a news article, into the specified stream. The stream can be a chat room or an IM.
Path parameters
sidstringRequired
Stream ID
Header parameters
sessionTokenstringRequired
Session authentication token.
keyManagerTokenstringOptional
Key Manager authentication token.
Body
typestringOptional
Type of content to be shared. Currently only support "com.symphony.sharing.article"
Responses
200
Success
application/json
400
Client error, see response body for further details.
application/json
401
Unauthorized: Session tokens invalid.
application/json
403
Forbidden: Caller lacks necessary entitlement.
application/json
500
Server error, see response body for further details.
application/json
post
/v3/stream/{sid}/shareRequest Example
curl -X POST \
https://acme.symphony.com/agent/v3/stream/7w68A8sAG_qv1GwVc9ODzX___ql_RJ6zdA/share \
-H "sessionToken: SESSION_TOKEN" \
-H "keyManagerToken: KEY_MANAGER_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"type": "com.symphony.sharing.article",
"content":{
"articleId":"tsla",
"title": "The Secret'"'"'s Out: Tesla Enters China and Is Winning",
"description": "Check this out",
"publisher": "Capital Market Laboratories",
"thumbnailUrl": "http://www.cmlviz.com/cmld3b/images/tesla-supercharger-stop.jpg",
"author": "OPHIRGOTTLIEB",
"articleUrl": "http://ophirgottlieb.tumblr.com/post/146623530819/the-secrets-out-tesla-enters-china-and-is",
"summary": "Tesla Motors Inc. (NASDAQ:TSLA) has a CEO more famous than the firm itself, perhaps. Elon Musk has made some bold predictions, first stating that the firm would grow sales from 50,000 units in 2015 to 500,000 by 2020 powered by the less expensive Model 3 and the massive manufacturing capability of the Gigafactory.",
"appId": "ticker",
"appName": "Market Data Demo",
"appIconUrl": "https://apps-dev.symphony.com/ticker/assets/images/logo.png"
}
}'
📘 Note
🚧 Roles and Privileges
Content Fields
Parameter
Type
Required
Description
Last updated
Was this helpful?