Tentacat v0.7.2 Tentacat.Search

The Search API allows the search of pretty much anything on GitHub

Summary

Functions

code(params, client \\ %Tentacat.Client{}, options \\ [])

Search in code files

Example

Tentacat.Search.code %{q: "code language:elixir repo:edgurgel/tentacat", sort: "url"}
Tentacat.Search.code %{q: "code language:elixir repo:edgurgel/tentacat", sort: "url"}, client

More info at: https://developer.github.com/v3/search/#search-code

repositories(params, client \\ %Tentacat.Client{}, options \\ [])

Searches for repositories

Example

Tentacat.Search.repositories %{q: "elixir-lang language:elixir", sort: "stars"}
Tentacat.Search.repositories %{q: "elixir-lang language:elixir", sort: "stars"}, client

More info at: https://developer.github.com/v3/search/#search-repositories

users(params, client \\ %Tentacat.Client{}, options \\ [])

Searches for users

Example

Tentacat.Search.users %{q: "users language:elixir", sort: "followers"}
Tentacat.Search.users %{q: "users language:elixir", sort: "followers"}, client

More info at: https://developer.github.com/v3/search/#search-users