C# Class Wistia.WistiaRestClient

Datei anzeigen Open project: ej4/Wistia-Wrapper

Public Methods

Method Description
CreateProject ( Project project ) : Project

Using the API, you can create a new project in your account.

DeleteMedia ( int mediaId ) : Media

The Wistia data API allows you to delete a piece of media.

DeleteProject ( int projectId ) : Project

The Wistia data API allows you to delete a project.

DeleteSharing ( int projectId, int sharingId ) : Sharing
ListMedias ( ) : MediaResult

List all Wistia Medias

ListMedias ( RequestFilter filter ) : MediaResult

List Wistia Medias with filters enabled

ListMediasByProject ( int projectId ) : MediaResult

List Wistia Medias for specified Project

ListMediasByProject ( int projectId, RequestFilter filter ) : MediaResult

List Wistia Medias for specified Project with filters enabled

ListProjects ( ) : ProjectResult

List all Wistia Projects

ListProjects ( RequestFilter filter ) : ProjectResult

List all Wistia Projects with filters enabled

ListSharings ( int projectId ) : SharingResult
ShowMedia ( int mediaId ) : Media

The Wistia data API allows you to get information about a specific piece of media that you have uploaded to your account.

ShowMediaStats ( int mediaId ) : Media

The Wistia data API allows you to get the aggregated tracking statistics for a video that has been embedded on your site. Note: This request works for videos only. If you try to get stats for a piece of media that is not a video, the server will respond with HTTP status code “400 Bad Request” and the body will contain an error message.

ShowProject ( int projectId ) : Project

The Wistia data API allows you to retrieve details about a specific project.

ShowSharing ( int projectId, int sharingId ) : Sharing
UpdateMedia ( Media media ) : Media

The Wistia data API allows you to update a piece of media.

UpdateProject ( Project project ) : Project

The Wistia data API allows you to update a project. Currently, the only attribute that you can update is the project name.

UpdateSharing ( Sharing sharing ) : Sharing

Method Details

CreateProject() public method

Using the API, you can create a new project in your account.
public CreateProject ( Project project ) : Project
project Project
return Project

DeleteMedia() public method

The Wistia data API allows you to delete a piece of media.
public DeleteMedia ( int mediaId ) : Media
mediaId int
return Media

DeleteProject() public method

The Wistia data API allows you to delete a project.
public DeleteProject ( int projectId ) : Project
projectId int
return Project

DeleteSharing() public method

public DeleteSharing ( int projectId, int sharingId ) : Sharing
projectId int
sharingId int
return Sharing

ListMedias() public method

List all Wistia Medias
public ListMedias ( ) : MediaResult
return MediaResult

ListMedias() public method

List Wistia Medias with filters enabled
public ListMedias ( RequestFilter filter ) : MediaResult
filter RequestFilter
return MediaResult

ListMediasByProject() public method

List Wistia Medias for specified Project
public ListMediasByProject ( int projectId ) : MediaResult
projectId int
return MediaResult

ListMediasByProject() public method

List Wistia Medias for specified Project with filters enabled
public ListMediasByProject ( int projectId, RequestFilter filter ) : MediaResult
projectId int
filter RequestFilter
return MediaResult

ListProjects() public method

List all Wistia Projects
public ListProjects ( ) : ProjectResult
return ProjectResult

ListProjects() public method

List all Wistia Projects with filters enabled
public ListProjects ( RequestFilter filter ) : ProjectResult
filter RequestFilter
return ProjectResult

ListSharings() public method

public ListSharings ( int projectId ) : SharingResult
projectId int
return SharingResult

ShowMedia() public method

The Wistia data API allows you to get information about a specific piece of media that you have uploaded to your account.
public ShowMedia ( int mediaId ) : Media
mediaId int
return Media

ShowMediaStats() public method

The Wistia data API allows you to get the aggregated tracking statistics for a video that has been embedded on your site. Note: This request works for videos only. If you try to get stats for a piece of media that is not a video, the server will respond with HTTP status code “400 Bad Request” and the body will contain an error message.
public ShowMediaStats ( int mediaId ) : Media
mediaId int
return Media

ShowProject() public method

The Wistia data API allows you to retrieve details about a specific project.
public ShowProject ( int projectId ) : Project
projectId int
return Project

ShowSharing() public method

public ShowSharing ( int projectId, int sharingId ) : Sharing
projectId int
sharingId int
return Sharing

UpdateMedia() public method

The Wistia data API allows you to update a piece of media.
public UpdateMedia ( Media media ) : Media
media Media
return Media

UpdateProject() public method

The Wistia data API allows you to update a project. Currently, the only attribute that you can update is the project name.
public UpdateProject ( Project project ) : Project
project Project
return Project

UpdateSharing() public method

public UpdateSharing ( Sharing sharing ) : Sharing
sharing Sharing
return Sharing