public class PhotoPostEndpoint extends AbstractWWGraphQLEndpoint
Constructor and Description |
---|
PhotoPostEndpoint(IWWClient client) |
Modifier and Type | Method and Description |
---|---|
PhotoResponse |
postPhoto(File photo)
Posts a new photo for a user
|
executeRequest, getAliasedChildren, getClient, getProfileDump, getRequest, getResultContainer, getResultContent, parseResultContainer, setProfileDump, setRequest, setResultContainer, setResultContent
public PhotoPostEndpoint(IWWClient client)
client
- WWClient containing authentication details and tokenpublic PhotoResponse postPhoto(File photo) throws WWException
photo
- jpeg File (must be less than 300Kb) for the user's new photoWWException
- containing an error message, if the request was unsuccessfulCopyright © 2018 OpenNTF. All rights reserved.