Skip to content

Imgur API Credentials

Joel edited this page May 9, 2018 · 25 revisions

< Back to "Getting Started"


Want a quick guide?
Imgur API Credentials Quick Guide


This is a guide to create the Imgur API credentials necessary for Prodosia to function.

https://api.imgur.com/oauth2/addclient

Creating the Imgur API credentials

After going to the specified url at the top, login to Imgur and fill out the registration form.

  • Application name
    The name that will be shown whenever someone logs in through these credentials.
  • Authorization type / Authorization callback URL
    It is not required (and not recommended) to use a custom callback URL.
    If without is chosen, the API credentials will default to using https://imgur.com as callback.
    Although not necessary, if a custom callback is used it is recommended to make it a low-impact site (such as https://google.com) to minimize web traffic.
  • Application website
    Entirely optional, no bearing on functionality.
  • Email
    The Email that will remain associated with these credentials.
  • Description
    The description that will be shown whenever someone logs in through these credentials.

Recommended setup:
Recommended setup

After submitting, the webpage will redirect to a page with the

  • Client ID
  • Client secret

Note these down somewhere, you will to put them in the application. Client Id and Client Secret page

Both of these, along with an optional callback (if it was chosen) must be inserted in the Prodosia application. Ensure that they are copied precise and exact. API keys window


Note:
Keep the Client ID and Client secret safe. If sharing the bot with other people, remove the keys.txt file from the folder before sending it over.

Troubleshooting

  • If the client-id is erroneous, the first time you will be prompted to authorize it will give the following exception. Erroneous Client ID
  • If the client secret is erroneous, it won't be possible to get past the login screen. Check your credentials if this happens.
  • If the callback is erroneous, the application won't be able to recognize when the authorization process has completed. It will leave the authorization window open, only to fail authorization once it has to be manually closed.

Clone this wiki locally