0

我已经集成了 vimeo android api 并使用我的 android 应用程序将视频上​​传到 vimeo 并且每次我收到上传成功的消息但我需要获取我的视频的视频 uri。我怎样才能得到那个?

4

1 回答 1

-1

链接: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};
                    }
                }
于 2016-08-30T12:51:20.477 回答