Asp.net C# Vimeo Upload response after upload is always NULL RRS feed

  • Question

  • User-1573847580 posted

    After uploading video on vimeo pro account response after PUT call is always NULL,

    Also the POST request with type=streaming did not returned proper object which includes content_uri. This content_uri i want to use in DELETE call which in return give me videoID uploaded.

    Below is my code, can anyone help me out. I know there is some silly mistake. My video is uploaded properly in my account.

    WebClient wc = new WebClient();
    wc.Headers.Add("Authorization", "bearer xxxxxxxxxx"); //access token id generated in APP in vimeo.com login
    wc.Headers.Add("type", "streaming");

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

    **********vimeoTicket  object is not returning proper response "content_uri" is missing in the object************************

    var fileName = File.ReadAllBytes(saveFilePath);

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

    ***********responseArray is returning NULL****************

    Tuesday, January 3, 2017 5:25 AM

All replies