public Task <VideoProfile> GetProfile(string factoryId, string idOrName, bool?expand = null)
        {
            ValidateId("idOrName", idOrName);

            return(InvokeGet <VideoProfile>(
                       factoryId,
                       string.Format("profiles/{0}.json", idOrName),
                       QueryParamList.New().AddNonEmpty("expand", expand)));
        }
 public Task <Video> CreateVideo(string factoryId, string url, string[] profiles)
 {
     return(InvokePost <Video>(
                factoryId,
                "videos.json",
                QueryParamList.New()
                .AddNonEmpty("profiles", String.Join(",", profiles))
                .AddNonEmpty("source_url", url)
                ));
 }
 public Task <List <VideoProfile> > GetProfiles(string factoryId, bool?expand = null, int?page = null, int?perPage = null)
 {
     return(InvokeGet <List <VideoProfile> >(
                factoryId,
                "profiles.json",
                QueryParamList.New()
                .AddNonEmpty("expand", expand)
                .AddNonEmpty("page", page)
                .AddNonEmpty("per_page", perPage)));
 }
        public Task <VideoEncoding> GetEncoding(string factoryId, string encodingId, bool?screenshots = null)
        {
            ValidateId("encodingId", encodingId);

            return(InvokeGet <VideoEncoding>(
                       factoryId,
                       string.Format("encodings/{0}.json", encodingId),
                       QueryParamList.New()
                       .AddNonEmpty("screenshots", screenshots)));
        }
        public Task <VideoEncoding> CreateEncoding(string factoryId, string videoId, string profileId, string profileName)
        {
            ValidateId("videoId", videoId);

            return(InvokePost <VideoEncoding>(
                       factoryId,
                       "encodings.json",
                       QueryParamList.New()
                       .AddNonEmpty("video_id", videoId)
                       .AddNonEmpty("profile_id", profileId)
                       .AddNonEmpty("profileName", profileName)));
        }
 public Task <List <VideoEncoding> > GetEncodings(string factoryId, EncodingStatus status = null, string profileId = null, string profileName = null, string videoId = null, bool?screenshots = null, int?page = null, int?perPage = null)
 {
     return(InvokeGet <List <VideoEncoding> >(
                factoryId,
                "encodings.json",
                QueryParamList.New()
                .AddNonEmpty("status", status)
                .AddNonEmpty("profile_id", profileId)
                .AddNonEmpty("profile_name", profileName)
                .AddNonEmpty("video_id", videoId)
                .AddNonEmpty("screenshots", screenshots)
                .AddNonEmpty("page", page)
                .AddNonEmpty("per_page", perPage)));
 }