ExDoppler.Shares (ExDoppler v1.0.0)
View SourceModule for interacting with ExDoppler.Share
๐ Resources
- ๐ Doppler docs
- ๐ Doppler API docs
- ๐ฌ Contact the maintainer (he's happy to help!)
Summary
Functions
Creates a plain-text share link ExDoppler.Share
Same as plain_text/2
but won't wrap a successful response in {:ok, response}
Functions
Creates a plain-text share link ExDoppler.Share
๐ท๏ธ Params
- text_to_share - Plain text to share (e.g
"sharing this string"
) - opts: Optional modifications
- expire_days - Days until the link is inaccessible. Default:
90
- expire_views - Number of views until the link is inaccessible. -1 means infinite. Default:
-1
- expire_days - Days until the link is inaccessible. Default:
โคต๏ธ Returns
โ On Success
{:ok, %ExDoppler.Share{...}}
โ On Failure
{:err, err}
๐ป Examples
iex> alias ExDoppler.Shares
iex> {:ok, _share} = Shares.plain_text("SHARE_THIS_TEXT", expire_days: 1, expire_views: 1)
๐ Resources
- ๐ Doppler API docs
- ๐ฌ Contact the maintainer (he's happy to help!)
Same as plain_text/2
but won't wrap a successful response in {:ok, response}