adam-paterson / adam-paterson/oauth2-imgur

The usage should reflect that `getResourceOwner` isn't necessarry to get the user_id and user_name

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
0
Forks
2
PR merge metrics
No merged PRs in 30d

Description

The `https://api.imgur.com/oauth2/token` endpoint already returns the `account_id` and `account_username` available via `$token->getValues()`.
If nothing more is needed the `$provider->getResourceOwner` call isn't necessary.

This should probably made more clear in the usage.

Contributor guide

Open the contributing guide

Research direction

Start by finding the usage section for the Imgur OAuth2 provider and the example that calls $provider->getResourceOwner. The issue says the token endpoint already returns account_id and account_username via $token->getValues(); done means the usage text makes clear that getResourceOwner is not necessary when only those values are needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.