AboutContactLogin

Index

CreateVideoFromUrl

The CreateVideoFromUrl method creates a new video by downloading it from the specified URL. This method is new in API 1.6

long CreateVideoFromUrl(
    long galleryId,
    string url,
    string cookies
    )

Parameters

galleryId
64-bit identifier of the gallery in which to create the video.
url
URL from which the video can be downloaded.
cookies
One or more cookies to send along with the download request. This parameter is optional and can be set to null if not needed.

Returns

64-bit identifier of the video just created.

Remarks

The gallery identified by the galleryId parameter must be owned by the currently authenticated user.

The list of cookies in the cookies parameter should be formatted as follows:

name1=value1;name2=value2;...;nameN=valueN

Any values containing special characters should be URL-encoded.

See Also