5

I'm doing a POST request to https://api.stackexchange.com/2.2/users/<id>/inbox to get the users' inbox items.
However I'm getting a 400 error on the request, and a JSON body saying it was a 404 error "this method cannot be called this way" and "error_name: no method".

I've form encoded the parameters, and set the content-type to form-urlencoded.

Here's the request in fiddler:

request

1 Answer 1

5

I don't believe that that route accepts POST requests (as it's non-actionable), so you should have better luck sending a GET request instead.

Routes that require auth tokens necessitate HTTPS, but still expect GET for read requests, and POST for writes.

3
  • Yep that was it. For some reason I assumed it was a post. Commented Apr 1, 2015 at 17:07
  • @Tim When should we use POST? I can't see the documentation that says. Commented May 27, 2015 at 12:01
  • 1
    @Tim Whenever you're writing something, so creates/edits/et al Commented May 27, 2015 at 15:19

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.