5.0.0 • Published 5 years ago
@datafire/deeparteffects v5.0.0
@datafire/deeparteffects
Client library for Deep Art Effects
Installation and Usage
npm install --save @datafire/deeparteffectslet deeparteffects = require('@datafire/deeparteffects').create({
api_key: "",
sigv4: ""
});
.then(data => {
console.log(data);
});Description
Actions
noauth.result.get
deeparteffects.noauth.result.get({}, context)Input
- input
object- submissionId
string
- submissionId
Output
- output Result
noauth.styles.get
deeparteffects.noauth.styles.get(null, context)Input
This action has no parameters
Output
- output Styles
noauth.upload.post
deeparteffects.noauth.upload.post({
"UploadRequest": {}
}, context)Input
- input
object- UploadRequest required UploadRequest
Output
- output UploadResponse
Definitions
Empty
- Empty Schema
object
Error
- Error Schema
object- message
string
- message
Result
- GetResult Schema
object- status
string: Submissiond status. Can be 'new', 'error', 'processing', 'finished' - url
string: Result url for the artwork
- status
Style
- Style Schema
object- description
string: Style description - id
string: The unique identifier for a style - title
string: Style title - url
string: Style URL
- description
Styles
- List Styles Schema
object- styles
array- items Style
- styles
UploadRequest
- Request schema for a submission
object- imageBase64Encoded
string: Base64 decoded image - imageSize
integer: Image size in px. Picture will be resized for processing. - optimizeForPrint
boolean: Use this flag to get an artwork optimized for print. - partnerId
string: The unique identifier for a partner with dedicated api access. - styleId
string: The unique identifier for a style - useOriginalColors
boolean: Use this flag to use the original color from your photo for the artwork.
- imageBase64Encoded
UploadResponse
- Response Schema for upload request
object- submissionId
string
- submissionId