Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/slogsdon/mandrill-elixir
a Mandrill wrapper for Elixir
https://github.com/slogsdon/mandrill-elixir
Last synced: 3 months ago
JSON representation
a Mandrill wrapper for Elixir
- Host: GitHub
- URL: https://github.com/slogsdon/mandrill-elixir
- Owner: slogsdon
- License: mit
- Created: 2013-12-05T03:42:38.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2019-11-20T02:21:44.000Z (about 5 years ago)
- Last Synced: 2024-10-28T17:26:10.888Z (3 months ago)
- Language: Elixir
- Size: 41 KB
- Stars: 51
- Watchers: 3
- Forks: 13
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - A Mandrill wrapper for Elixir. (Third Party APIs)
- fucking-awesome-elixir - mandrill - A Mandrill wrapper for Elixir. (Third Party APIs)
- awesome-elixir - mandrill - A Mandrill wrapper for Elixir. (Third Party APIs)
README
# Mandrill [![Hex.pm](https://img.shields.io/hexpm/v/mandrill.svg)](https://hex.pm/packages/mandrill) [![Docs](https://img.shields.io/badge/docs-latest-brightgreen.svg?style=flat)](http://hexdocs.pm/mandrill/0.4.1/)
A Mandrill wrapper for Elixir.
## Installation
Add ``mandrill`` to your dependencies in your ``mix.exs``.
```Elixir
defp deps do
[...
{:mandrill, "~> 0.4"}]
end
```## Usage
> ##### Note
> You must provide a valid api key, either through the mix config value
> `:mandrill, :key`, or the `MANDRILL_KEY` environment variable.```elixir
iex> Mandrill.start
:okiex> Mandrill.key
"your_key"iex> Mandrill.Users.info
[username: "your_username", created_at: "2013-12-05 00:24:19.47554",
public_id: "your_public_id", reputation: 0, hourly_quota: 25,
backlog: 0,
stats: [today: [sent: 0, hard_bounces: 0, soft_bounces: 0, rejects: 0,
complaints: 0, unsubs: 0, opens: 0, unique_opens: 0, clicks: 0,
unique_clicks: 0],
last_7_days: [sent: 0, hard_bounces: 0, soft_bounces: 0, rejects: 0,
complaints: 0, unsubs: 0, opens: 0, unique_opens: 0, clicks: 0,
unique_clicks: 0],
last_30_days: [sent: 0, hard_bounces: 0, soft_bounces: 0, rejects: 0,
complaints: 0, unsubs: 0, opens: 0, unique_opens: 0, clicks: 0,
unique_clicks: 0],
last_60_days: [sent: 0, hard_bounces: 0, soft_bounces: 0, rejects: 0,
complaints: 0, unsubs: 0, opens: 0, unique_opens: 0, clicks: 0,
unique_clicks: 0],
last_90_days: [sent: 0, hard_bounces: 0, soft_bounces: 0, rejects: 0,
complaints: 0, unsubs: 0, opens: 0, unique_opens: 0, clicks: 0,
unique_clicks: 0],
all_time: [sent: 0, hard_bounces: 0, soft_bounces: 0, rejects: 0,
complaints: 0, unsubs: 0, opens: 0, unique_opens: 0, clicks: 0,
unique_clicks: 0]]]iex> Mandrill.Users.info[:username]
"your_username"
```## Reference
See [Mandrill's API docs](https://mandrillapp.com/api/docs/).
## Dependencies
- [HTTPoison](https://github.com/edgurgel/httpoison)
- [JSEX](https://github.com/talentdeficit/jsex)## License
See [LICENSE](https://github.com/slogsdon/mandrill/blob/master/LICENSE)
[![githalytics.com alpha](https://cruel-carlota.pagodabox.com/949f7db1a2574d19a36cf9a21a760a6a "githalytics.com")](http://githalytics.com/slogsdon/mandrill)