C# Class com.vzaar.api.Vzaar

ファイルを表示 Open project: vzaar/vzaar-api-net Class Usage Examples

Public Properties

Property Type Description
apiUrl string
bufferSize long
enableFlashSupport bool
token string
username string

Public Methods

Method Description
Vzaar ( ) : System.Globalization
Vzaar ( string username, string token ) : System.Globalization
deleteVideo ( System.Int64 videoId ) : bool
editVideo ( com.vzaar.api.VideoEditQuery query ) : bool
generateThumbnail ( System.Int64 videoId, int thumbTime ) : string
getAccountDetails ( int accountId ) : com.vzaar.api.AccountDetails

This API call returns the details and rights for each vzaar subscription account type along with it's relevant metadata. This will show the details of the packages available here: http://vzaar.com/pricing

getUploadSignature ( UploadSignatureQuery query ) : UploadSignature
getUserDetails ( string username ) : com.vzaar.api.UserDetails

This API call returns the user's public details along with it's relevant metadata.

getVideoDetails ( System.Int64 videoId ) : com.vzaar.api.VideoDetails

vzaar uses the oEmbed open standard for allowing 3rd parties to integrated with the vzaar.

getVideoList ( com.vzaar.api.VideoListQuery query ) : List

This API call returns a list of the user's active videos along with it's relevant metadata. 20 videos are returned by default but this is customisable.

processVideo ( VideoProcessQuery query ) : System.Int64
uploadLink ( com.vzaar.api.UploadLinkQuery query ) : System.Int64
uploadSubtitle ( com.vzaar.api.SubtitleQuery query ) : bool
uploadThumbnail ( System.Int64 videoId, string path ) : string
uploadVideo ( string path ) : string

Upload video from local drive to vzaar upload host

whoAmI ( ) : string

Private Methods

Method Description
HttpUploadFile ( string url, NameValueCollection nvc, Stream stream, string file ) : string
chunkSyzeInBytes ( String str ) : long
executeRequest ( string url ) : string
executeRequest ( string url, string method, string data ) : string
multipartUpload ( string path, UploadSignature signature ) : string

Upload video from local drive in multiple chunks

simpleUpload ( string path, UploadSignature signature ) : string

Method Details

Vzaar() public method

public Vzaar ( ) : System.Globalization
return System.Globalization

Vzaar() public method

public Vzaar ( string username, string token ) : System.Globalization
username string
token string
return System.Globalization

deleteVideo() public method

public deleteVideo ( System.Int64 videoId ) : bool
videoId System.Int64
return bool

editVideo() public method

public editVideo ( com.vzaar.api.VideoEditQuery query ) : bool
query com.vzaar.api.VideoEditQuery
return bool

generateThumbnail() public method

public generateThumbnail ( System.Int64 videoId, int thumbTime ) : string
videoId System.Int64
thumbTime int
return string

getAccountDetails() public method

This API call returns the details and rights for each vzaar subscription account type along with it's relevant metadata. This will show the details of the packages available here: http://vzaar.com/pricing
public getAccountDetails ( int accountId ) : com.vzaar.api.AccountDetails
accountId int is the vzaar account type. This is an integer.
return com.vzaar.api.AccountDetails

getUploadSignature() public method

public getUploadSignature ( UploadSignatureQuery query ) : UploadSignature
query UploadSignatureQuery
return UploadSignature

getUserDetails() public method

This API call returns the user's public details along with it's relevant metadata.
public getUserDetails ( string username ) : com.vzaar.api.UserDetails
username string is the vzaar login name for the user. Note: This must be the actual username and not the email address
return com.vzaar.api.UserDetails

getVideoDetails() public method

vzaar uses the oEmbed open standard for allowing 3rd parties to integrated with the vzaar.
public getVideoDetails ( System.Int64 videoId ) : com.vzaar.api.VideoDetails
videoId System.Int64
return com.vzaar.api.VideoDetails

getVideoList() public method

This API call returns a list of the user's active videos along with it's relevant metadata. 20 videos are returned by default but this is customisable.
public getVideoList ( com.vzaar.api.VideoListQuery query ) : List
query com.vzaar.api.VideoListQuery
return List

processVideo() public method

public processVideo ( VideoProcessQuery query ) : System.Int64
query VideoProcessQuery
return System.Int64

uploadLink() public method

public uploadLink ( com.vzaar.api.UploadLinkQuery query ) : System.Int64
query com.vzaar.api.UploadLinkQuery
return System.Int64

uploadSubtitle() public method

public uploadSubtitle ( com.vzaar.api.SubtitleQuery query ) : bool
query com.vzaar.api.SubtitleQuery
return bool

uploadThumbnail() public method

public uploadThumbnail ( System.Int64 videoId, string path ) : string
videoId System.Int64
path string
return string

uploadVideo() public method

Upload video from local drive to vzaar upload host
public uploadVideo ( string path ) : string
path string Path of the video file to be uploaded
return string

whoAmI() public method

public whoAmI ( ) : string
return string

Property Details

apiUrl public_oe property

public string apiUrl
return string

bufferSize public_oe property

public long bufferSize
return long

enableFlashSupport public_oe property

public bool enableFlashSupport
return bool

token public_oe property

public string token
return string

username public_oe property

public string username
return string