Modules

hex_api_key hex_api_package hex_api_package_owner hex_api_release hex_api_user hex_core hex_http hex_pb_names hex_pb_package hex_pb_signed hex_pb_versions hex_registry hex_repo hex_tarball

Module hex_api_user

Function Index

create/4
get/2 Gets user.
me/1
reset_password/2

Function Details

create/4

create(Config, Username, Password, Email) -> any()

get/2

get(Config, Username) -> any()

Gets user.

Examples:

  > hex_api_user:get(<<"user">>, hex_core:default_config()).
  {ok, {200, ..., #{
       <<"username">> => <<"user">>,
       <<"packages">> => [
           #{
               <<"name">> => ...,
               <<"url">> => ...,
               ...
           },
           ...
       ],
       ...}}}

me/1

me(Config) -> any()

reset_password/2

reset_password(Username, Config) -> any()