Method: Github::Search::Legacy#users
- Defined in:
- lib/github_api/search/legacy.rb
#users(*args) ⇒ Object
Search users
Find users by keyword.
Parameters
<tt>:keyword</tt> - search term
<tt>:start_page</tt> - Optional page number to fetch
<tt>:sort</tt> - Optional sort field. One of stars, forks, or updated.
If not provided, results are sorted by best match.
<tt>:order</tt> - Optional sort order if sort param is provided.
One of asc or desc.
Examples
github = Github.new
github.search.legacy.users 'user'
github.search.legacy.users keyword: 'user'
69 70 71 72 73 |
# File 'lib/github_api/search/legacy.rb', line 69 def users(*args) arguments(args, :required => [:keyword]) get_request("/legacy/user/search/#{escape_uri(keyword)}", arguments.params) end |