Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is an "authorization callback url?" for imgur and what should mine be?

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?

like image 329
user2816570 Avatar asked Feb 16 '14 03:02

user2816570


People also ask

What is authorization callback URL in Imgur?

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..."

What is authorization callback URL?

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 .

What is a callback URL example?

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 .

Do I need a callback URL?

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.


1 Answers

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.

like image 112
identicon Avatar answered Oct 19 '22 01:10

identicon