public class FilePostToSpaceEndpoint extends AbstractWWGraphQLEndpoint
Constructor and Description |
---|
FilePostToSpaceEndpoint(IWWClient client) |
Modifier and Type | Method and Description |
---|---|
FileResponse |
postfile(File file,
String spaceId,
String imageSize)
Post a file to Watson Workspace
|
executeRequest, getAliasedChildren, getClient, getProfileDump, getRequest, getResultContainer, getResultContent, parseResultContainer, setProfileDump, setRequest, setResultContainer, setResultContent
public FilePostToSpaceEndpoint(IWWClient client)
client
- WWClient containing authentication details and tokenpublic FileResponse postfile(File file, String spaceId, String imageSize) throws WWException
file
- to post into the WorkspacespaceId
- String id of the space to post toimageSize
- image size as height x width, e.g. 200x200. Only blank or null
values are current supportedWWException
- containing an error message, if the request was unsuccessfulCopyright © 2018 OpenNTF. All rights reserved.