public class WistiaClient extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
apiPassword |
protected com.sun.jersey.api.client.WebResource |
dataService |
protected com.sun.jersey.api.client.WebResource |
embedService |
protected com.sun.jersey.api.client.WebResource |
uploadService |
Constructor and Description |
---|
WistiaClient(String apiPassword) |
Modifier and Type | Method and Description |
---|---|
Project |
createProject(String name,
javax.ws.rs.core.MultivaluedMap<String,String> queryParams)
Creates a new project.
|
Media |
deleteMedia(String hashedId)
Deletes a media from an account.
|
Project |
deleteProject(String hashedId)
Deletes a project from an account.
|
Account |
getAccount()
Gets information about an account.
|
String |
getEmbedCode(String mediaUrl) |
Media |
getMedia(String hashedId)
Gets information about a specific piece of media uploaded to an account.
|
List<Media> |
getMedias()
Obtains a list of all the media in an account.
|
Stats |
getMediaStats(String hashedId)
Aggregates tracking statistics for a video that has been embedded in a website.
|
Project |
getProject(String hashedId)
Gets information about a specific project.
|
List<Project> |
getProjects()
Obtains a list of all the projects in an account.
|
Media |
updateMedia(String hashedId,
javax.ws.rs.core.MultivaluedMap<String,String> queryParams)
Updates attributes on a piece of media.
|
Project |
updateProject(String hashedId,
javax.ws.rs.core.MultivaluedMap<String,String> queryParams)
Updates attributes on a project.
|
Media |
upload(File file,
javax.ws.rs.core.MultivaluedMap<String,String> queryParams)
Uploads a file.
|
Media |
upload(String filename,
InputStream stream,
javax.ws.rs.core.MultivaluedMap<String,String> queryParams)
Uploads a file.
|
Media |
upload(String url,
javax.ws.rs.core.MultivaluedMap<String,String> queryParams)
Uploads a file from URL.
|
protected String apiPassword
protected com.sun.jersey.api.client.WebResource dataService
protected com.sun.jersey.api.client.WebResource uploadService
protected com.sun.jersey.api.client.WebResource embedService
public WistiaClient(String apiPassword)
public Media getMedia(String hashedId)
hashedId
- public Media updateMedia(String hashedId, javax.ws.rs.core.MultivaluedMap<String,String> queryParams)
hashedId
- queryParams
- public Media deleteMedia(String hashedId)
hashedId
- public Stats getMediaStats(String hashedId)
hashedId
- public Account getAccount()
public List<Project> getProjects()
public Project getProject(String hashedId)
hashedId
- public Project createProject(String name, javax.ws.rs.core.MultivaluedMap<String,String> queryParams)
name
- queryParams
- public Project updateProject(String hashedId, javax.ws.rs.core.MultivaluedMap<String,String> queryParams)
hashedId
- queryParams
- public Project deleteProject(String hashedId)
hashedId
- public Media upload(String url, javax.ws.rs.core.MultivaluedMap<String,String> queryParams)
url
- queryParams
- public Media upload(File file, javax.ws.rs.core.MultivaluedMap<String,String> queryParams)
file
- queryParams
- public Media upload(String filename, InputStream stream, javax.ws.rs.core.MultivaluedMap<String,String> queryParams)
stream
- queryParams
- public String getEmbedCode(String mediaUrl)
Copyright © 2015 Nuxeo SA. All rights reserved.