{"id":27056503,"url":"https://github.com/damesek/clojure-sendgrid-v3","last_synced_at":"2025-04-05T10:17:53.312Z","repository":{"id":194030537,"uuid":"84659284","full_name":"damesek/clojure-sendgrid-v3","owner":"damesek","description":"Example code for sendgrid V3 API with clojure","archived":false,"fork":false,"pushed_at":"2017-03-11T18:21:30.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-09-12T10:42:13.978Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/damesek.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2017-03-11T15:20:14.000Z","updated_at":"2017-03-11T15:20:52.000Z","dependencies_parsed_at":"2023-09-11T10:35:50.818Z","dependency_job_id":null,"html_url":"https://github.com/damesek/clojure-sendgrid-v3","commit_stats":null,"previous_names":["damesek/clojure-sendgrid-v3"],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damesek%2Fclojure-sendgrid-v3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damesek%2Fclojure-sendgrid-v3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damesek%2Fclojure-sendgrid-v3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damesek%2Fclojure-sendgrid-v3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/damesek","download_url":"https://codeload.github.com/damesek/clojure-sendgrid-v3/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247318728,"owners_count":20919483,"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":"2025-04-05T10:17:52.778Z","updated_at":"2025-04-05T10:17:53.300Z","avatar_url":"https://github.com/damesek.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# clojure-sendgrid-v3\nExample code for sendgrid V3 API with clojure\n\nAuthorization example. I used clj-http.client (:as http) and clojure.data.json (:as json) library for this. If you would like to send out `text/html` newsletter/ email out, just change type of the content and add to value a html content.\n*The html version*\n\n```\n            .....\n            [clj-http.client :as http]\n            [clojure.data.json :as json]\n            .....\n            \n(def queryhtml \"\u003chtml\u003e\u003cp\u003e\u003cb\u003eHello, world!\u003c/b\u003e\u003c/p\u003e\u003c/html\u003e\")\n\n(http/post \"https://api.sendgrid.com/v3/mail/send\"\n             {:content-type \"application/json\"\n              :headers {:Authorization \"Bearer YOUR KEY HERE\"} \n              :body (json/write-str {:personalizations [{:to [{\"email\" \"your@emailaddress.com\"}]}]\n\t\t\t  \t\t\t\t\t\t:from    {\"email\" \"from@email.com\"}\n\t\t\t  \t\t\t\t\t\t:subject  \"test\"\n\t\t\t  \t\t\t\t\t\t:content [{:type \"text/html\" \n\t\t\t  \t\t\t\t\t\t\t\t     :value  queryhtml}]\n\t\t\t  \t\t\t\t\t\t\t\t   })   \n             })\n```\nTest your sender configuration with mail-tester.com.\nhttps://sendgrid.com/docs/API_Reference/api_v3.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamesek%2Fclojure-sendgrid-v3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdamesek%2Fclojure-sendgrid-v3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamesek%2Fclojure-sendgrid-v3/lists"}