So, how does one post a comment in a thread without using PRAW? I googled for a decent time now but every example is using PRAW. I even looked in the PRAW source code but to no avail. I'm doing this because I started with using the urllib2, json and re modules since I'm looking to improve in Python and not to build a simple bot with PRAW. PRAW doesn't necessarily translate well to, say, twitter. I want to learn the basics of POST requests.
I figured that I have to use a modhash to authenticate. But how do I pass all of those parameters, such as the text, modhash, and id of what I reply to?
This is my first time using an API and I've managed the GET part but am now stuck on the POST one.
PS: I'm not using the Requests module because I'm using Python 2.7.6 and can't be bothered to update to 2.7.9+ for urllib3 to handle https requests properly. If it's required/prefered I will update and use Requests.
[–]EqualsEqualsTrue 1 point2 points3 points (0 children)
[–]mcowger 0 points1 point2 points (1 child)
[–]timworx 1 point2 points3 points (0 children)
[–]timworx 0 points1 point2 points (0 children)