hex_api_package_owner.add
You're seeing just the function
add
, go back to hex_api_package_owner module for more information.
Specs
add(hex_core:config(), binary(), binary(), binary(), boolean()) -> hex_api:response().
Adds a packages owner.
Examples:
> hex_api_package_owner:add(hex_core:default_config(), <<"package">>, <<"user">>, <<"full">>, false). {ok, {200, ..., #{ <<"email">> => <<"user@example.com">>, <<"full_name">> => <<"John Doe">>, <<"handles">> => #{...}, <<"inserted_at">> => <<"2014-04-21T17:20:12Z">>, <<"level">> => <<"full">>, <<"updated_at">> => <<"2019-08-04T19:28:05Z">>, <<"url">> => <<"https://hex.pm/api/users/user">>, <<"username">> => <<"user">> }}}