I have a simple api endpoint:
http://example.de/create.json
I need to send the following via POST:
-text
-url
-username
The curl command for this task looks like this:
curl --data-urlencode "text=Beispieltext" -d "url=http://google.de" -d "username=User1" http://example.de/create.json
I want to implement this in my code. I want to submit data to the api and work with the answer from the api. Actually I have no idea where to start. I read and tried a lot about Pycurl, urllib2 and subprocess but now I don't understand anything anymore :D
How would you do that? I need help, I don't know where to start!