LIBRERIA MULTIMEDIALE / Media.Upload
Gestione dei contenuti multimediali
Carica un oggetto nella libreria multimediale
Esempio:
SessionID=yourSessionID &Command=Media.Upload &ResponseFormat=JSON& MediaData=yourValue& MediaType=yourValue& MediaSize=yourValue& MediaName=yourValue
PARAMETRI RICHIESTA
Parametro | Tipo di dato | Richiesto | Definizione |
---|---|---|---|
SessionID | string | Session ID which is needed to authenticate the access. It's optional and required for desktop applications only | |
Command | string | The API Command sended to the console | |
ResponseFormat | JSON | XML | Response format | |
JSONPCallBack | bool | Send this parameter for cross-domain. More info about JSONP can be found here: http: //en.wikipedia.org/wiki/JSON#JSONP | |
MediaData | string | Media file contents encoded with base64 | |
MediaType | string | MIME type of the media. Ex: image/gif | |
MediaSize | integer | File size of the media file in bytes | |
MediaName | string | File name of the media file |
PARAMETRI DI RISPOSTA
Parametro | Tipo di dato | Definizione |
---|---|---|
Success | bool | States if an error has been generated during last command execution or not |
ErrorCode | integer | The ErrorCode number, if an error has occurred. ErrorCode = 0 means no error has occurred. |
MediaID | integer | The uploaded media ID |
CODICI DI ERRORE
Codice | Definizione |
---|---|
1 | Missing media data |
2 | Missing media type |
3 | Missing media size |
4 | Media file exceeds allowed size |
5 | Missing media name |
99998 | Authentication failure or session expired |
99999 | Not enough privileges |