NAME

Imgur::API::Endpoint::OAuth

SYNOPSIS

OAuth2 auth for users.

METHODS

auth_url

Get Redirect URL for OAuth initiation.

Parameters

  • grant_type REQUIRED code, token or pin.

    Determines if Imgur returns an authorization_code, a PIN code, or an opaque access_token. If you choose code, then you must immediately exchange the authorization_code for an access_token. If you chose token, then the access_token and refresh_token will be given to you in the form of query string parameters attached to your redirect URL, which the user may be able to read. If you chose pin, then the user will receive a PIN code that they will enter into your app to complete the authorization process.
  • state OPTIONAL

    An arbitrary string that will be passed back from imgur

token

Swap pin, code or auth token for access & refresh tokens

Parameters

  • grant_type required

    code, token or pin.
  • code (for code authorization)

  • pin (for pin authorization)

SEE ALSO

https://api.imgur.com/oauth2

4 POD Errors

The following errors were encountered while parsing the POD:

Around line 20:

'=item' outside of any '=over'

Around line 33:

You forgot a '=back' before '=head2'

Around line 40:

'=item' outside of any '=over'

Around line 53:

You forgot a '=back' before '=head1'