Imgur/imgurpython

Request: example of command-line authentication

Closed this issue · 3 comments

I would like to write a small command-line program to upload several hundred files extracted from an old WordPress blog. I've read this library's docs and the Imgur API docs, but still don't understand how to authenticate (I don't have a URL to redirect to for obtaining a PIN). Can the examples please include one showing how to authenticate from the command line starting with just a client ID and client secret?

I actually just wrote one yesterday.

@jacobgreenleaf @jasdev: do you guys mind if I split the examples out into a folder with runnable python scripts, then contribute a simple image upload example?

@RandomInsano That'd be great!

Pull request submitted properly now as PR #33 that shows this. It's a bit heavy, so if it's a no-go, I'll throw it into the examples document.