Click here to Skip to main content
15,887,776 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Below is my code. Which is working fine and uploading video on my vimeo account. But the responseArray always returns null. I want the uploaded video id in return. Can anybody help on response from viemo with uploaded video id.

C#
WebClient wc = new WebClient();
                   wc.Headers.Clear();
                   wc.Headers.Add("Authorization", "bearer xxxxxxxxx");
                   wc.Headers.Add("type", "streaming");

                   var vimeoTicket = JsonConvert.DeserializeObject<JObject>(wc.UploadString("https://api.vimeo.com/me/videos", "POST", ""));

                   var fileName = File.ReadAllBytes(saveFilePath);


                   byte[] responseArray = wc.UploadData(new Uri(vimeoTicket["upload_link_secure"].ToString()),"PUT", fileName);


What I have tried:

i have tried all possible solutions from internet replies.
Posted
Comments
Richard MacCutchan 29-Dec-16 3:51am    
You need to check the vimeo documentation to find out why the response is null.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900