video.getUploadUrl
Method for creating new video and getting upload url
Name | Required | Type | Description |
---|---|---|---|
uid | false | | Id of user-owner of the video |
gid | false | | Id of group-owner of the video |
file_name | true | | The name for video |
attachment_type | false | | Only for “attachment” cases
|
file_size | true | | 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 | | Latitude |
lng | false | | Longitude |
cid | false | | ID of video-channel |
post_form | false | | Upload during post creation (No “Video uploaded” feed created in this case) |
direct_link_access | false | | |
create_date | false | |
Authorization
Session is optional (for External applications - required)Required permissions
- VIDEO_CONTENT
- VALUABLE_ACCESS
Possible error codes
Name | Description |
---|---|
PARAM : FileToSmall | File is to small (less than 16kb) |
PARAM : FileToLarge | File is to large (more than 1gb) |
PARAM : BadFormat | Unsupported file format |
PARAM : DvdMenu | An 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