{"id":13569291,"url":"https://github.com/lpil/gleam_sendgrid","last_synced_at":"2025-07-17T00:04:57.193Z","repository":{"id":62429853,"uuid":"457497828","full_name":"lpil/gleam_sendgrid","owner":"lpil","description":"A client for the SendGrid transactional email API","archived":false,"fork":false,"pushed_at":"2023-11-06T13:36:21.000Z","size":19,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-09T13:38:38.086Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Gleam","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lpil.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-02-09T19:22:16.000Z","updated_at":"2025-01-01T02:50:38.000Z","dependencies_parsed_at":"2024-01-17T16:07:57.737Z","dependency_job_id":"785d94ca-789a-49eb-8ff5-5bd1909c71cc","html_url":"https://github.com/lpil/gleam_sendgrid","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/lpil/gleam_sendgrid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Fgleam_sendgrid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Fgleam_sendgrid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Fgleam_sendgrid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Fgleam_sendgrid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lpil","download_url":"https://codeload.github.com/lpil/gleam_sendgrid/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Fgleam_sendgrid/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265552762,"owners_count":23786954,"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-08-01T14:00:38.177Z","updated_at":"2025-07-17T00:04:57.169Z","avatar_url":"https://github.com/lpil.png","language":"Gleam","funding_links":[],"categories":["Gleam","Packages"],"sub_categories":["Email"],"readme":"# Gleam SendGrid\n\n[![Package Version](https://img.shields.io/hexpm/v/gleam_sendgrid)](https://hex.pm/packages/gleam_sendgrid)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/gleam_sendgrid/)\n\nA client for SendGrid's API, enabling Gleam programs to send emails.\n\n## Usage\n\nAdd this package to your Gleam project.\n\n```sh\ngleam add gleam_sendgrid\n```\n\nAnd then send some emails!\n\n```gleam\nimport gleam/sendgrid\nimport gleam/hackney\n\npub fn main() {\n  let api_key = \"your SendGrid API key here\"\n\n  // Construct an email\n  let email = \n    sendgrid.Email(\n      to: [\"joe@example.com\"],\n      sender_email: \"mike@example.com\",\n      sender_name: \"Mike\",\n      subject: \"Hello, Joe!\",\n      content: sendgrid.TextContent(\"System still working?\"),\n    )\n\n  // Prepare an API request\n  let request = sendgrid.dispatch_request(email, api_key)\n\n  // Send it with a HTTP client of your choice\n  let assert Ok(response) = hackney.send(request)\n\n  // A status of 202 indicates that the email has been sent\n  let assert 202 = response.status\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flpil%2Fgleam_sendgrid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flpil%2Fgleam_sendgrid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flpil%2Fgleam_sendgrid/lists"}