-
Notifications
You must be signed in to change notification settings - Fork 3
Imgur API Credentials
Joel edited this page Apr 17, 2018
·
25 revisions
This is a guide to create the Imgur API credentials necessary for Prodosía to function.
https://api.imgur.com/oauth2/addclient
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. Ifwithoutis chosen, the API credentials will default to usinghttps://imgur.comas callback. Although not necessary, if a custom callback is used it is recommended to make it a low-impact site (such ashttps://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.
After submitting, the webpage will redirect to a page with the
Client IDClient secret
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.
Both of these, along with an optional callback (if it was chosen) must be inserted in the Prodosía application. Ensure that they are copied precise and exact.
- If the client-id is erroneous, the first time you will be prompted to authorize it will give the following exception.
- If the client secret is erroneous, it will only become apparent once the application is actually in use.
- If the callback is erroneous, the
oauth2-useragentlibrary 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.