During my beginnings of developing a command-line ReddAPI client, I refactored the code of this wrapper to seperate the logic of sending a request from the actual API operations. The gist for this is:
https://gist.github.com/samis/726e33e93ec2fad571d9
There's likely some more refactoring that could be done but that should be enough.
During my beginnings of developing a command-line ReddAPI client, I refactored the code of this wrapper to seperate the logic of sending a request from the actual API operations. The gist for this is:
https://gist.github.com/samis/726e33e93ec2fad571d9
There's likely some more refactoring that could be done but that should be enough.