Exemple #1
0
        /// <summary>
        /// Upload a video to twitter. The mediaCategory needs to be `tweet_video`
        /// if you want to use GetMediaStatus.
        /// </summary>
        public static IMedia UploadVideo(byte[] binary, IUploadVideoOptionalParameters parameters = null)
        {
            if (parameters == null)
            {
                parameters = new UploadVideoOptionalParameters();
            }

            return(UploadQueryExecutor.UploadBinary(binary, parameters));
        }
Exemple #2
0
 /// <summary>
 /// Upload a media on upload.twitter.com
 /// </summary>
 public static IMedia UploadBinary(IUploadParameters parameters)
 {
     return(UploadQueryExecutor.UploadBinary(parameters));
 }
Exemple #3
0
 /// <summary>
 /// Upload a media on upload.twitter.com
 /// </summary>
 public static IMedia UploadBinary(byte[] binary, IUploadOptionalParameters optionalParameters = null)
 {
     return(UploadQueryExecutor.UploadBinary(binary, optionalParameters));
 }
Exemple #4
0
 /// <summary>
 /// Add metadata to a media that has been uploaded.
 /// </summary>
 public static bool AddMediaMetadata(IMediaMetadata metadata)
 {
     return(UploadQueryExecutor.AddMediaMetadata(metadata));
 }