Package com.clickntap.vimeo
Class Vimeo
java.lang.Object
com.clickntap.vimeo.Vimeo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEmbedPreset(String videoEndPoint, String presetId) addTextTrack(String videoEndPoint, byte[] bytes, boolean active, String type, String language, String name) addTextTrack(String videoEndPoint, File file, boolean active, String type, String language, String name) addTextTrack(String videoEndPoint, InputStream inputStream, boolean active, String type, String language, String name) addVideo(byte[] bytes, long fileSize) addVideoPrivacyDomain(String videoEndpoint, String domain) protected VimeoResponsebeginUploadVideo(long fileSize, String name, Map<String, String> privacy) checkEmbedPreset(String videoEndPoint, String presetId) getMe()getProxy()getTextTrack(String videoEndPoint, String textTrackId) getTextTracks(String videoEndPoint) getVideoInfo(String endpoint) getVideoPrivacyDomains(String videoEndpoint) likesVideo(String videoId) removeEmbedPreset(String videoEndPoint, String presetId) removeTextTrack(String videoEndPoint, String textTrackId) removeVideo(String videoEndpoint) searchVideos(String query) searchVideos(String query, String pageNumber, String itemsPerPage) searchVideos(Map<String, String> params) voidsetVideoThumb(String videoEndpoint, float time, boolean active) unlikeVideo(String videoId) updateTextTrack(String videoEndPoint, String textTrackUri, boolean active, String type, String language, String name) updateVideoMetadata(String videoEndpoint, String name, String description, String license, String privacyView, String privacyEmbed, boolean reviewLink) uploadVerify(String uploadLink) uploadVideo(String uploadLink, byte[] bytes) uploadVideo(String uploadLink, File file) uploadVideo(String uploadLink, InputStream inputStream)
-
Constructor Details
-
Vimeo
-
Vimeo
-
-
Method Details
-
getProxy
-
setProxy
-
getVideoInfo
- Throws:
IOException
-
get
- Throws:
IOException
-
get
public VimeoResponse get(String endpoint, Object params, Map<String, String> headers) throws IOException- Throws:
IOException
-
post
- Throws:
IOException
-
post
public VimeoResponse post(String endpoint, Object params, Map<String, String> headers) throws IOException- Throws:
IOException
-
put
- Throws:
IOException
-
put
public VimeoResponse put(String endpoint, Object params, Map<String, String> headers) throws IOException- Throws:
IOException
-
delete
- Throws:
IOException
-
delete
public VimeoResponse delete(String endpoint, Object params, Map<String, String> headers) throws IOException- Throws:
IOException
-
patch
- Throws:
IOException
-
patch
public VimeoResponse patch(String endpoint, Object params, Map<String, String> headers) throws IOException- Throws:
IOException
-
head
- Throws:
IOException
-
head
public VimeoResponse head(String endpoint, Object params, Map<String, String> headers) throws IOException- Throws:
IOException
-
updateVideoMetadata
public VimeoResponse updateVideoMetadata(String videoEndpoint, String name, String description, String license, String privacyView, String privacyEmbed, boolean reviewLink) throws IOException - Throws:
IOException
-
addVideoPrivacyDomain
public VimeoResponse addVideoPrivacyDomain(String videoEndpoint, String domain) throws org.apache.http.client.ClientProtocolException, UnsupportedEncodingException, IOException - Throws:
org.apache.http.client.ClientProtocolExceptionUnsupportedEncodingExceptionIOException
-
getVideoPrivacyDomains
- Throws:
IOException
-
removeVideo
- Throws:
IOException
-
setVideoThumb
public VimeoResponse setVideoThumb(String videoEndpoint, float time, boolean active) throws IOException - Throws:
IOException
-
getMe
- Throws:
IOException
-
getVideos
- Throws:
IOException
-
searchVideos
- Throws:
IOException
-
searchVideos
public VimeoResponse searchVideos(String query, String pageNumber, String itemsPerPage) throws IOException - Throws:
IOException
-
searchVideos
- Throws:
IOException
-
addVideo
- Throws:
IOExceptionVimeoException
-
addVideo
public String addVideo(File file, String name, Map<String, String> privacy) throws IOException, VimeoException- Throws:
IOExceptionVimeoException
-
addVideo
- Throws:
IOExceptionVimeoException
-
addVideo
public String addVideo(byte[] bytes, long fileSize, String name, Map<String, String> privacy) throws IOException, VimeoException- Throws:
IOExceptionVimeoException
-
addVideo
public String addVideo(InputStream inputStream, long fileSize, String name, Map<String, String> privacy) throws IOException, VimeoException- Throws:
IOExceptionVimeoException
-
beginUploadVideo
public VimeoResponse beginUploadVideo(long fileSize, String name, Map<String, String> privacy) throws IOException- Throws:
IOException
-
uploadVideo
- Throws:
IOException
-
uploadVideo
- Throws:
IOException
-
uploadVideo
- Throws:
IOException
-
uploadVerify
- Throws:
IOException
-
likesVideo
- Throws:
IOException
-
likeVideo
- Throws:
IOException
-
unlikeVideo
- Throws:
IOException
-
checkEmbedPreset
- Throws:
IOException
-
addEmbedPreset
- Throws:
IOException
-
removeEmbedPreset
- Throws:
IOException
-
getTextTracks
- Throws:
IOException
-
getTextTrack
- Throws:
IOException
-
addTextTrack
public String addTextTrack(String videoEndPoint, File file, boolean active, String type, String language, String name) throws IOException, VimeoException - Throws:
IOExceptionVimeoException
-
addTextTrack
public String addTextTrack(String videoEndPoint, byte[] bytes, boolean active, String type, String language, String name) throws IOException, VimeoException - Throws:
IOExceptionVimeoException
-
addTextTrack
public String addTextTrack(String videoEndPoint, InputStream inputStream, boolean active, String type, String language, String name) throws IOException, VimeoException - Throws:
IOExceptionVimeoException
-
updateTextTrack
public VimeoResponse updateTextTrack(String videoEndPoint, String textTrackUri, boolean active, String type, String language, String name) throws IOException - Throws:
IOException
-
removeTextTrack
- Throws:
IOException
-
apiRequest
protected VimeoResponse apiRequest(String endpoint, String methodName, Object params, Map<String, String> headers) throws IOException- Throws:
IOException
-