Authorising POST to Vimeo API with C# HttpClient
<p>I am trying to make a POST to the Vimeo API but I am getting <code>401 Authorization Required</code>.</p>

<p>This is my code for the request (I am just sending the first request that the docs says should return me a ticket ID for uploading).</p>

<pre><code>HttpClient client = new HttpClient();

client.BaseAddress = new Uri("https://api.vimeo.com");
var byteArray = Encoding.ASCII.GetBytes(accessToken);
client.DefaultRequestHeaders.Authorization =
            new AuthenticationHeaderValue("Basic", Convert.ToBase64String(byteArray));

var form = new FormUrlEncodedContent(new List&lt;KeyValuePair&lt;string, string&gt;&gt;()
            {
                new KeyValuePair&lt;string, string&gt;("type","POST")
            });
var response = await client.PostAsync("/me/videos", form);
response.EnsureSuccessStatusCode();

var result = await response.Content.ReadAsStringAsync();
</code></pre>

<p>I also tried adding access token like this:</p>

<pre><code>client.DefaultRequestHeaders.Authorization =
            new AuthenticationHeaderValue("Basic", accessToken);
</code></pre>

<p>It always return 401.</p>

<p>What is proper way to add the access token?</p>