in reply to Re: Upload image to Imgur and retrieve the link/embed bbcode
in thread Upload image to Imgur and retrieve the link/embed bbcode
The ->content method is documented in Imgur::API::Endpoint::Image, unsurprisingly.
Um, where? I don't see "content" mentioned anywhere on that page :/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Upload image to Imgur and retrieve the link/embed bbcode
by Corion (Patriarch) on Jul 02, 2017 at 09:09 UTC | |
Whoops, indeed, sorry for misleading you! The parameter documented is named image and should be set to the base64-encoded image data. I think with these parts you should have enough to create an example image and upload it. As the synopsis also contains syntax errors, maybe it isn't really tested. | [reply] [d/l] |
by Anonymous Monk on Jul 07, 2017 at 08:11 UTC | |
Hi, I've written something I think is syntactically correct and should work, but I dont understand authentication and I would appreciate shortcuts :D My code which is currently returns 403 as expected with a fake registration
Speaking of oauth , I'm about to register an app, what do I choose? (*) OAuth 2 with callback url ( ) OAuth 2 without callback url ( ) Anonymous usage without user authorization I suspect its option number 2 cause this will be a cli app not a web app, but its extremely new to me and I would appreciate a quickstart or baby instructions :) | [reply] [d/l] |
by Anonymous Monk on Jul 07, 2017 at 09:34 UTC | |
Bug patch, an error didnt get turned into an exception .... left all the tracing in there it can't really hurt :D
And then this works to upload anonymously provided you've registered as documented ... for all the Moose in the code its not used for much but it might be early :/
| [reply] [d/l] [select] |