ePages 6.10 - DE_EPAGES/Product/API/WebService/ProductImageService.pm

Package DE_EPAGES::Product::API::WebService::ProductImageService

Implements the Product image WebService.

Base
DE_EPAGES::Shop::API::WebService::BaseShopService

Functions

delete
exists
upload
uploadscale

delete

WebService-Method: delete Deletes a list of product attachments.

Syntax
$SoapData = $self->delete( $ObjectPath, $aFileNames )
Input
$ObjectPath (string)
object paths
$aFileNames (ref.array.string)
list of file names
Return
$SoapData (SOAP::Data)
a SOAP::Data structure with the
delete status of all given files

exists

WebService-Method: exists Returns exists status of a file in the given path.

Syntax
$SoapData = $self->exists( $ObjectPath, $FileName )
Input
$ObjectPath (string)
object path
$FileName (string)
filename
Return
$exists (boolean)
0/1

upload

WebService-Method: upload Upload files to the public path of the given object by the objectpath. The content of the Files are located in $hImageData

Syntax
$SoapData = $self->upload( $ObjectPath,$hImageData)
Input
$ObjectPath (string)
object path
$hImageData (ref.hash.array.string)
contains the content and the filename of the image
Return
$SoapData (SOAP::Data)
a SOAP::Data structure with the
status of the upload results

uploadscale

WebService-Method: uploadscale Upload a file to the public path of the given object by the objectpath. Scale the attachments in $hImageData to the given sizes in $hParams if image

Syntax
$SoapData = $self->uploadscale( $ObjectPath,$hImageData,$hParams)
Input
$ObjectPath (string)
object path
$hImageData (ref.hash.array.string)
contains the content and the filename of the image
$hParams
the scale vars
Return
$SoapData (SOAP::Data)
a SOAP::Data structure with the
upload and scale status of the file