Status 405
Klaudioz opened this issue · 3 comments
@Klaudioz Ah yep this is likely because I've changed the API since I started. So the blog post and README are slightly out of date (I've been meaning to get around to updated them -- but I just haven't made it a priority).
471d6c1#diff-da3fed2ed312ed177133617b30862a7d
In the above commit, I changed the API endpoints for add_note
and add_task
to be POST instead of GET. So you'll have to make POST requests instead.
At the same time there is now authentication present that must be used with the requests (either via the HEADER or api_token
attribute in the request body), for added security.
I recommend using curl
or something like Postman to make those POST requests as you cannot do it via the browser's URL bar anymore.
I've closed the issue, but continue in the thread if there is additional questions related to this.
Thanks for your answer. Using POST I got always error 500:
2019-12-10T03:51:46.314581+00:00 heroku[router]: at=info method=POST path="/add_note?title=%20this%20is%20working%20finally" host=notionga.herokuapp.com request_id=8256db3c-962b-4b9d-ac43-d3baf11cf8e5 fwd="34.239.101.36" dyno=web.1 connect=0ms service=43ms status=500 bytes=200 protocol=https
Why I did with IFTTT: