video.getUploadUrl

Method for creating new video and getting upload url

NameRequiredTypeDescription
uid false String

Id of user-owner of the video

gid false String

Id of group-owner of the video

file_name true String

The name for video

attachment_type false String

Only for “attachment” cases

  • MOVIE - video-attach from disc
  • VIDEO - video-attach from camera (length restricted to 3 minutes)
  • AUDIO_RECORDING - audio-attach from mic (length restricted to 3 minutes)
file_size true long

The size of file to upload. If You don’t know the size at the moment you call this method then pass 0

lat false Float

Latitude

lng false Float

Longitude

cid false String

ID of video-channel

post_form false Boolean

Upload during post creation (No “Video uploaded” feed created in this case)

direct_link_access false Boolean
create_date false Date

Authorization

Session is optional (for External applications - required)

Required permissions

  • VIDEO_CONTENT
  • VALUABLE_ACCESS

Possible error codes

NameDescription
PARAM : FileToSmallFile is to small (less than 16kb)
PARAM : FileToLargeFile is to large (more than 1gb)
PARAM : BadFormatUnsupported file format
PARAM : DvdMenuAn attempt to upload menu-file for DVD-video

Type

{ "upload_url": "String", "video_id": "long" }

Application paramters

User session data

Method

List of paramters

Используем для подписи secret_key = session_secret_key
Используем для подписи secret_key = application_secret_key
Используем для подписи secret_key = MD5(access_token + application_secret_key)
secret_key =
Сортируем и склеиваем параметры запроса и secret_key
Рассчитываем MD5 от полученной строки и получаем параметр sig