package com.zcloud.util;


import com.aliyun.tea.*;
import com.aliyun.vod20170321.*;
import com.aliyun.vod20170321.models.*;
import com.aliyun.teaopenapi.*;
import com.aliyun.teaopenapi.models.*;
public class AudioOrVideoCreateUpload {

	/**
     * 使用AK&SK初始化账号Client
     * @param accessKeyId
     * @param accessKeySecret
     * @return Client
     * @throws Exception
     */
//    public static com.aliyun.vod20170321.Client createClient(String accessKeyId, String accessKeySecret) throws Exception {
//        Config config = new Config()
//                // 您的AccessKey ID
//                .setAccessKeyId(accessKeyId)
//                // 您的AccessKey Secret
//                .setAccessKeySecret(accessKeySecret);
//        // 访问的域名
//        config.endpoint = "vod.cn-beijing.aliyuncs.com";
//        return new com.aliyun.vod20170321.Client(config);
//    }
//
//    public static void main(String[] args_) throws Exception {
//        java.util.List<String> args = java.util.Arrays.asList(args_);
//        com.aliyun.vod20170321.Client client = Sample.createClient("LTAI5tK134ZzXPEwykAdpVn2", "XCEMY8FG52cXImFMeIiH4tDJ9BIN3N");
//        CreateUploadVideoRequest createUploadVideoRequest = new CreateUploadVideoRequest()
//                .setFileName("filename.mp4")
//                .setTitle("this is a sample");
//        // 复制代码运行请自行打印 API 的返回值
//        CreateUploadVideoResponse  resp=  client.createUploadVideo(createUploadVideoRequest);
//
//        com.aliyun.teaconsole.Client.log(com.aliyun.teautil.Common.toJSONString(TeaModel.buildMap(resp)));
//    }
}
