I want to call the google url shortner API from my C# Console Application, the request I try to implement is:
POST https://www.googleapis.com/urlshortener
How about changing
var requestContent = new FormUrlEncodedContent(new[] {new KeyValuePair("longUrl", s),});
to
var requestContent = new StringContent("{\"longUrl\": \" + s + \"}");