videovimeoandroid-video-playervimeo-apivimeo-android

vimeo video uploading but not getting video link in Android


I have integrated vimeo android api and uploaded video to vimeo using my android app and everytime I get successful message of upload but I need to get the video uri of my video.How can I get that ??


Solution

  • Link:api.vimeo.com/users/23550690/tickets/29acf0c117debaf7a944b310a5d7aebe?video_file_id=587909747&upgrade=true&signature=9b1ffcc48c88dd7a4b5bd0f9ab2794b2

    URL urls = new URL(url);
                    connection = (HttpURLConnection) urls.openConnection();
    
                    connection.setDoOutput(true);
                    connection.setRequestProperty(
                            "Content-Type", "application/x-www-form-urlencoded" );
                    connection.setRequestMethod("DELETE");
    
    
                    int responseCode = connection.getResponseCode();
    
                    AppLog.e("Delete","===responseCode==="+responseCode);
                    if (responseCode != 401) {
                        InputStream inputStream = connection.getInputStream();
                        if (inputStream != null) {
                            BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
    
                            String jsons = bufferedReader.readLine();
    
                            return new Object[]{jsons, requestCode};
                        }
                    }