public interface SocialPublisher
Modifier and Type | Method and Description |
---|---|
void |
delete(SocialPublisherDeleteParams params)
Deletes a post from the SM network.
|
java.lang.String |
getResponseCodeKey()
Returns the OAuth response key.
|
java.util.List<SocialSpace> |
getSocialSpaces()
Retrieves the social spaces list for an user (ex.: pages he manages, boards he owns).
|
java.lang.String |
publish(SocialPublisherPublishParams params)
Posts image and text to a specific location on SM Network.
|
void |
setResponseCode(java.lang.String responseCode)
Sets response code from Oauth in order to gain access to SM methods.
|
java.lang.String publish(SocialPublisherPublishParams params) throws SocialException
params
- containing:
- pictureUrl - URL pointing to existing picture on the WEB
OR picture - Picture as InputStream
- description - Picture description
- spaceId - Space where the picture will be posted (ex.:Page ID/ Board name)SocialException
- Thrown if the post cannot be executedvoid delete(SocialPublisherDeleteParams params) throws SocialException
params
- containing:
- postId - The ID of the post to be deleted
- spaceId - Space where the post exists (ex.:Page ID/ Board name)SocialException
- Thrown if the post cannot be deletedvoid setResponseCode(java.lang.String responseCode)
responseCode
- OAuth response code.java.lang.String getResponseCodeKey()
java.util.List<SocialSpace> getSocialSpaces() throws SocialException
SocialException
- Thrown if the social spaces cannot be retrieved."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"