View Source CodestatsApi (codestats_api v0.1.0)
This module is responsible for handling the requests to the Code::Stats API.
Summary
Functions
Returns the user's data from the Code::Stats API.
Functions
@spec get_user_data(String.t()) :: {:ok, CodestatsApi.Stats.t()} | {:error, :user_not_found} | {:error, :something_went_wrong}
Returns the user's data from the Code::Stats API.
Examples
iex> {:ok, %CodestatsApi.Stats{} = result} = CodestatsApi.get_user_data("cbic")
iex> result.user
"cbic"