i am able to post the image and text from postman but i not able to post from Code.
i am able to get the access_token from user. Here is my code look like
var authzHeader = oauth.GenerateAuthzHeader(appUrl, "POST");
using (HttpClient client = new HttpClient())
{
var datas = new Dictionary<string, string>()
{
{"type","photo"},
{"source","IMAGEURL"},
{"caption","test image api"}
};
var data = new FormUrlEncodedContent(datas);
client.BaseAddress = new Uri(appUrl);
client.DefaultRequestHeaders.Accept.Clear();
client.DefaultRequestHeaders.Add("Authorization", authzHeader);
var Result = await client.PostAsync("", data); /// from this i get the 401 response
what i am doing wrong.