I want to call a RESTful api with django that uses a POST. I know how to do a GET, but how do I do a POST?
For the get, I use requests.get(...)
the API call is:
curl -v -X POST -H "Content-Type: application/json" \
-H "Accept: application/json" \
-X POST \
--user user:password \
https://this.is.an.external.domain \
-d "{\"name\": \"Marcus0.1\",\"start\": 500000,\"end\": 1361640526000}"
update
So, I found requests.post, but how do translate the above curl command