Projects are the main organizational objects within Wistia. Media must be stored within Projects.
Inheritance: WistiaBase
Ejemplo n.º 1
0
        /// <summary>
        /// The Wistia data API allows you to update a project. Currently, the only attribute that you can update is the project name.
        /// </summary>
        /// <param name="project"></param>
        /// <returns></returns>
        public Project UpdateProject(Project project)
        {
            var request = new RestRequest();
            request.Resource = string.Format("projects/{0}.xml", project.Id);
            request.Method = Method.PUT;
            request.AddObject(project);

            return Execute<Project>(request);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Using the API, you can create a new project in your account.
        /// </summary>
        /// <param name="project"></param>
        /// <returns></returns>
        public Project CreateProject(Project project)
        {
            var request = new RestRequest();
            request.Resource = "projects.xml";
            request.Method = Method.POST;
            request.AddObject(project);

            return Execute<Project>(request);
        }