Skip to content

Conversation

bocharsky-bw
Copy link

@Nek-
Copy link
Contributor

Nek- commented May 2, 2016

@bocharsky-bw what is the difference with the documented way to get a user ? https://developer.github.com/v3/users/#get-a-single-user (which is already implemented)

return $this->get('users?since=' . rawurldecode($id));
}

/**
Copy link
Contributor

@GrahamCampbell GrahamCampbell May 2, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are loads of things like this everywhere though, that we don't include, like repos by id

@bocharsky-bw
Copy link
Author

Ah, tests failed... I should use another method name.

@Nek- The OAuth library which I used in my project works with IDs (GitHub ID, Facebook ID, etc.). So I need a way to fetch / update user information based on a user's GitHub ID.
BTW, GitHub allows users rename their usernames. That's why I think using GitHub ID is a correct way here, isn't it?

@Nyholm
Copy link
Collaborator

Nyholm commented Mar 23, 2017

Closing this because of inactivity.

@Nyholm Nyholm closed this Mar 23, 2017
@genintho genintho mentioned this pull request Jul 3, 2020
acrobat pushed a commit that referenced this pull request Jul 4, 2020
This PR was squashed before being merged into the 2.x branch.

Discussion
----------

Revamp of #372 which was abandonned, and following the example of #579


As of 2020, gettting data by ID is still undocumented. I contacted Github support to make sure it could be relied on.


> <img width="691" alt="Screen Shot 2020-07-02 at 10 12 15 PM" src="https://user-images.githubusercontent.com/664857/86434021-2d17f700-bcb1-11ea-9f19-2008ce47412d.png">


------
I have been working with an old application and I have to deal with actions made by user that have changed their login since. The old login are now used by totally different people, which can be problematic.

Commits
-------

5ed46cc Update User.php
5703492 Add unit test
62b43ab Documentation
cdaad05 Remove usage of rawurlencode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants