I have tried to upvote a stackoverflow question with the stack exchange api and failed. I have tried a lot but I didn't get it to work.
URL :
http://api.stackexchange.com/2.2/questions/35007869/upvote
Docs
https://api.stackexchange.com/docs/upvote-question
Json Data :
{
"key" : "my key",
"access_token" : "my token",
"site" : "stackoverflow.com",
"preview" : "false",
"filter": "default"
}
I tried through fiddler with following parameters.
User-Agent: Fiddler
Host: api.stackexchange.com
Content-Length: 159
Content-Type: application/json; charset=utf-8
And POST
method. But I am failed with following error message.
error_id=400
error_message=site is required
error_name=bad_parameter
But I have provided the site in my JSON object. So Any help will be highly appreciable.
Update
While try this in fiddler I got following message.