hex_api_short_url (hex_core v0.12.0)
View SourceHex HTTP API - Short URLs.
Summary
Functions
Creates a short URL.
Functions
-spec create(hex_core:config(), binary()) -> hex_api:response().
Creates a short URL.
Examples:
> hex_api_short_url:create(hex_core:default_config(), <<"https://hex.pm/packages/example">>).
{ok, {201, ..., #{<<"url">> => <<"https://hex.pm/l/XXXXX">>}}}