{"id":18783971,"url":"https://github.com/sparkpost/elixir-webhook-sample","last_synced_at":"2025-10-26T13:21:23.836Z","repository":{"id":138516328,"uuid":"106009153","full_name":"SparkPost/elixir-webhook-sample","owner":"SparkPost","description":"A report of recipient OS usage from SparkPost click events and the User-Agent header, with Elixir and Phoenix","archived":false,"fork":false,"pushed_at":"2017-10-06T13:44:05.000Z","size":113,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-12-29T11:49:20.394Z","etag":null,"topics":["ecto","elixir","phoenix","sparkpost","webhook"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SparkPost.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2017-10-06T13:42:36.000Z","updated_at":"2023-08-19T02:50:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"f5fb92ca-16f9-498d-8580-cfbcd3c85ea0","html_url":"https://github.com/SparkPost/elixir-webhook-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SparkPost%2Felixir-webhook-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SparkPost%2Felixir-webhook-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SparkPost%2Felixir-webhook-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SparkPost%2Felixir-webhook-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SparkPost","download_url":"https://codeload.github.com/SparkPost/elixir-webhook-sample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239699583,"owners_count":19682575,"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":["ecto","elixir","phoenix","sparkpost","webhook"],"created_at":"2024-11-07T20:41:28.595Z","updated_at":"2025-10-26T13:21:23.735Z","avatar_url":"https://github.com/SparkPost.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Using SparkPost Webhooks To Report On Recipient OS Preferences\n\nThis project accepts SparkPost webhooks event batches and maintains a report of recipient OS preferences based on the user_agent field from click events.\n\n## Prerequisites\n - Elixir (1.4 used)\n - Phoenix (1.3 used)\n - Node.js/NPM for client side assets (Node 6.11, NPM 3.10 used)\n\n## Usage\n\nTo start your Phoenix server:\n\n  * Grab the code with `git clone github.com/SparkPost/elixir-webhook-sample`\n  * Install dependencies with `mix deps.get`\n  * Configure your database in `config/dev.exs`\n  * Create and migrate your database with `mix ecto.create \u0026\u0026 mix ecto.migrate`\n  * Install Node.js dependencies with `cd assets \u0026\u0026 npm install`\n  * Start Phoenix endpoint with `mix phx.server`\n\nNow you can visit [`localhost:4000`](http://localhost:4000) from your browser.\n\n## Sending Test Data To Your Service\n\n### Using SparkPost\nRegister your service as a webhook endpoint on your SparkPost account. [You can do that here.](https://app.sparkpost.com/account/webhooks). SparkPost includes a webhook test facility - just click on the \"TEST\" link beside your webhook to send a test batch.\n\n### Using a Local Test Event Batch\nThis repo contains 2 sample webhook event batches which you can use to show your service working. You can send a test event batch to your service like this:\n\n```\ncurl -XPOST -H \"Content-type: application/json\" -d @batch.json http://localhost:4000/webhook\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsparkpost%2Felixir-webhook-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsparkpost%2Felixir-webhook-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsparkpost%2Felixir-webhook-sample/lists"}