{"id":21816990,"url":"https://github.com/maartenvanvliet/receivex","last_synced_at":"2025-04-14T01:20:47.016Z","repository":{"id":33779065,"uuid":"161799729","full_name":"maartenvanvliet/receivex","owner":"maartenvanvliet","description":"Deal with inbound email webhooks","archived":false,"fork":false,"pushed_at":"2023-03-03T04:57:26.000Z","size":154,"stargazers_count":20,"open_issues_count":7,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T12:54:51.638Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maartenvanvliet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-14T14:58:52.000Z","updated_at":"2024-05-08T09:55:40.000Z","dependencies_parsed_at":"2024-11-27T15:49:48.240Z","dependency_job_id":null,"html_url":"https://github.com/maartenvanvliet/receivex","commit_stats":{"total_commits":91,"total_committers":7,"mean_commits":13.0,"dds":0.6923076923076923,"last_synced_commit":"370b823791edeac62543a7676a9796aec055d713"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maartenvanvliet%2Freceivex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maartenvanvliet%2Freceivex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maartenvanvliet%2Freceivex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maartenvanvliet%2Freceivex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maartenvanvliet","download_url":"https://codeload.github.com/maartenvanvliet/receivex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248805247,"owners_count":21164256,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-27T15:38:36.864Z","updated_at":"2025-04-14T01:20:46.982Z","avatar_url":"https://github.com/maartenvanvliet.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Receivex\n\n[![Build Status](https://travis-ci.com/maartenvanvliet/receivex.svg?branch=master)](https://travis-ci.com/maartenvanvliet/receivex) [![Hex pm](http://img.shields.io/hexpm/v/receivex.svg?style=flat)](https://hex.pm/packages/receivex) [![Hex Docs](https://img.shields.io/badge/hex-docs-9768d1.svg)](https://hexdocs.pm/receivex) [![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\nPackage to deal with inbound email webhooks for several providers. Right now \nMailgun and Mandrill are supported.\n\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed\nby adding `receivex` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:receivex, \"~\u003e 0.8.2\"}\n  ]\nend\n```\n\n\nExample configuration for Mandrill with the Plug router\n```elixir\nforward(\"_incoming\", to: Receivex, init_opts: [\n  adapter: Receivex.Adapter.Mandrill,\n  adapter_opts: [\n    secret: \"i8PTcm8glMgsfaWf75bS1FQ\",\n    url: \"http://example.com\"\n  ],\n  handler: Example.Processor]\n)\n```\n\nExample configuration for Mandrill with the Phoenix router\n```elixir\nforward(\"_incoming\", Receivex, [\n  adapter: Receivex.Adapter.Mandrill,\n  adapter_opts: [\n    secret: \"i8PTcm8glMgsfaWf75bS1FQ\",\n    url: \"http://example.com\"\n  ],\n  handler: Example.Processor]\n)\n```\n\nExample configuration for Mailgun with the Plug router\n```elixir\nforward(\"_incoming\", to: Receivex, init_opts: [\n  adapter: Receivex.Adapter.Mailgun,\n  adapter_opts: [\n    api_key: \"some-key\"\n  ],\n  handler: Example.Processor]\n)\n```\n\nExample processor\n```elixir\n  defmodule Example.Processor do\n    @behaviour Receivex.Handler\n\n    def process(%Receivex.Email{} = mail) do\n      IO.inspect(mail)\n    end\n  end\n\n```\n\nDocumentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)\nand published on [HexDocs](https://hexdocs.pm). Once published, the docs can\nbe found at [https://hexdocs.pm/receivex](https://hexdocs.pm/receivex).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaartenvanvliet%2Freceivex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaartenvanvliet%2Freceivex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaartenvanvliet%2Freceivex/lists"}