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.
    – Tim
    Commented May 27, 2015 at 12:01
  • 1
    @Tim Whenever you're writing something, so creates/edits/et al
    – Tim Stone
    Commented May 27, 2015 at 15:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .