Media.Upload

Description

Uploads media to the media library

Request Parameters

APIKey = {string} (required)
The API key you are using to authenticate the access.
Command = {Media.Upload} (required)
API Command
ResponseFormat = {JSON | XML} (required)
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} (required)
Media file contents encoded with base64
MediaType = {string} (required)
MIME type of the media. Ex: image/gif
MediaSize = {integer} (required)
File size of the media file in bytes
MediaName = {integer} (required)
File name of the media file

Response Parameters

Success = {true | false}
States if there is an error or not
ErrorCode = {integer}
If there is an error, error's code
MediaID = {integer}
ID of the new subscriber list

Error Codes

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
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Media.Browse

Description Returns the list of media available in the media library Request Parameters...

Media.Retrieve

Description Retrieves details of a media item Request Parameters APIKey = {string}...

Media.Delete

Description Delete a media item Request Parameters APIKey = {string} (required) The API key...