I'm trying to write a program to upload an image to imgur and return the url. I want to start trying to play around with the api, but to register for my client id, one of the required fields is the "Authorization callback url." The description says "The callback URL is used to determine where Imgur redirects the user after they authorize your access request..."
My program would be in the command line in java, or perhaps an android application. From what I understand (which is probably wrong), this would be useful for a web application, but for general use of the api, doesn't seem to help with anything. Especially if I'm working in the command line. Is there perhaps a "default" url or something I can put in? Or am I misunderstanding the purpose of the callback url?
I want to start trying to play around with the api, but to register for my client id, one of the required fields is the "Authorization callback url." The description says "The callback URL is used to determine where Imgur redirects the user after they authorize your access request..."
Callback URLs are the URLs that Auth0 invokes after the authentication process. Auth0 redirects back to this URL and appends additional parameters to it, including an access code which will be exchanged for an id_token , access_token and refresh_token .
A callback URL will be invoked by the API method you're calling after it's done. So if you call POST /api.example.com/foo? callbackURL=http://my.server.com/bar. Then when /foo is finished, it sends a request to http://my.server.com/bar .
On a practical level, a callback URL directs your customer's page to its proper destination. However, from a broader perspective, it helps drive value and trust between your online customer and your business.
Your definition of the callback URL is correct. Some applications, such as a CLI, don't need a callback URL, and imgur allows you to not provide one. When registering your client, choose the option OAuth 2 authorization without a callback URL
under Authorization type
.
It's been a long time and the asker has probably moved on, but I'm new when it comes to using APIs and I stumbled on this question looking for the same answer. Hopefully, this reply will help you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With