docs.ShareApi.md Maven / Gradle / Ivy
# ShareApi
All URIs are relative to *https://localhost*
Method | HTTP request | Description
------------- | ------------- | -------------
[**v1StreamSidSharePost**](ShareApi.md#v1StreamSidSharePost) | **POST** /v1/stream/{sid}/share | Share a piece of content into Symphony
# **v1StreamSidSharePost**
> V2Message v1StreamSidSharePost(sid, sessionToken, keyManagerToken, shareContent)
Share a piece of content into Symphony
Given a 3rd party content (eg. news article), it can share to the given stream. The stream can be a chatroom, an IM or a multiparty IM.
### Example
```java
// Import classes:
//import org.symphonyoss.symphony.agent.invoker.ApiException;
//import org.symphonyoss.symphony.agent.api.ShareApi;
ShareApi apiInstance = new ShareApi();
String sid = "sid_example"; // String | Stream ID
String sessionToken = "sessionToken_example"; // String | Session authentication token.
String keyManagerToken = "keyManagerToken_example"; // String | Key Manager authentication token.
ShareContent shareContent = new ShareContent(); // ShareContent |
try {
V2Message result = apiInstance.v1StreamSidSharePost(sid, sessionToken, keyManagerToken, shareContent);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ShareApi#v1StreamSidSharePost");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**sid** | **String**| Stream ID |
**sessionToken** | **String**| Session authentication token. |
**keyManagerToken** | **String**| Key Manager authentication token. |
**shareContent** | [**ShareContent**](ShareContent.md)| |
### Return type
[**V2Message**](V2Message.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json