SOAP API method MediaLibrary_file

Back to API references

Description
Get access to a single file from the media library

Parameters
Parameter 'id' : int
Unique identifier (id) of the object MediaLibrary. The method only applies to the medialibrary with this id.
Parameter 'identifier' : int
ID of the file, name of the file or object
Parameter 'identifier' : string
ID of the file, name of the file or object
Parameter 'medialibraryfile' : Structure of type 'medialibraryfile'
ID of the file, name of the file or object
Parameter 'login' : Structure of type 'login'
Optional login data

Return values
Return value 'medialibraryfile' : Structure of type 'medialibraryfile'

Structure 'medialibraryfile'
This structure medialibraryfile was mentioned above. This structure has the following properties:
Property 'id' : int
The ID of the file.
Property 'mimetype' : string
The mimetype of the file.
Property 'hashcode' : string
Expose the file hashcode
Property 'data' : binary
The data of the file. The data is base64 encoded.
Property 'name' : string
The filename of the file.
Property 'size' : int
The size of the file.

Structure 'login'
This structure login was mentioned above. This structure has the following properties:
Property 'username' : string
The username of the login attempt
Property 'account' : string
The account name of the login attempt
Property 'password' : string
The password for the login attempt

Structure 'medialibraryfile'
This structure medialibraryfile was mentioned above. This structure has the following properties:
Property 'id' : int
The ID of the file.
Property 'mimetype' : string
The mimetype of the file.
Property 'hashcode' : string
Expose the file hashcode
Property 'data' : binary
The data of the file. The data is base64 encoded.
Property 'name' : string
The filename of the file.
Property 'size' : int
The size of the file.