Imgur / imgurpython

Official Imgur python client library (deprecated)
MIT License
546 stars 116 forks source link

Request: example of command-line authentication #30

Closed gvwilson closed 9 years ago

gvwilson commented 9 years ago

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?

RandomInsano commented 9 years ago

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?

jasdev commented 9 years ago

@RandomInsano That'd be great!

RandomInsano commented 9 years ago

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.