{"id":18440266,"url":"https://github.com/drowzy/bs-mailgun","last_synced_at":"2025-06-14T10:33:54.526Z","repository":{"id":68391777,"uuid":"115509181","full_name":"drowzy/bs-mailgun","owner":"drowzy","description":null,"archived":false,"fork":false,"pushed_at":"2017-12-27T15:07:12.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T17:31:05.406Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"OCaml","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/drowzy.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":"2017-12-27T10:18:10.000Z","updated_at":"2017-12-27T10:24:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"bf61d2c0-dad1-4f39-a0d8-66a648a73f00","html_url":"https://github.com/drowzy/bs-mailgun","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/drowzy/bs-mailgun","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drowzy%2Fbs-mailgun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drowzy%2Fbs-mailgun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drowzy%2Fbs-mailgun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drowzy%2Fbs-mailgun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drowzy","download_url":"https://codeload.github.com/drowzy/bs-mailgun/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drowzy%2Fbs-mailgun/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259802531,"owners_count":22913648,"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-06T06:29:15.273Z","updated_at":"2025-06-14T10:33:54.503Z","avatar_url":"https://github.com/drowzy.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bs-mailgun\n\nBuckleScript bindings for [mailgun.js](https://github.com/mailgun/mailgun-js)\n\nStatus: Very basic, need driven.\n\n## Example\n```reason\nlet key = Js.Dict.unsafeGet(Node.Process.process##env, \"MAILGUN_API_KEY\");\nlet domain = Js.Dict.unsafeGet(Node.Process.process##env, \"MAILGUN_DOMAIN\");\nlet mg = Mailgun.make({\"username\": \"api\", \"key\": key});\n\nlet message = {\n  \"from\": \"Excited User \u003cmailgun@sandbox-123.mailgun.org\u003e\",\n  \"to\": [|\"recipient@mail.com\"|],\n  \"subject\": \"Hello\",\n  \"text\": \"Testing some Mailgun awesomness!\",\n  \"html\": \"\u003ch1\u003eTesting some Mailgun awesomness!\u003c/h1\u003e\"\n};\n\nMailgun.sendMessage(mg, \"sandbox-123.mailgun.org\", message)\n  |\u003e Js.Promise.then_(msg =\u003e Js.log(msg) |\u003e Js.Promise.resolve)\n  |\u003e Js.Promise.catch(err =\u003e Js.log(err) |\u003e Js.Promise.resolve);\n```\n\n## Installation\n\n```\nnpm i --save bs-mailgun\n```\nAdd bs-mailgun to bs-dependencies in your bsconfig.json:\n\n```\n{\n  ...\n  \"bs-dependencies\": [\"bs-mailgun\"]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrowzy%2Fbs-mailgun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrowzy%2Fbs-mailgun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrowzy%2Fbs-mailgun/lists"}