{"id":37204804,"url":"https://github.com/morphar/gosparkpost","last_synced_at":"2026-01-14T23:36:18.686Z","repository":{"id":57569901,"uuid":"345252036","full_name":"morphar/gosparkpost","owner":"morphar","description":"SparkPost client library for the Go Programming Language","archived":false,"fork":true,"pushed_at":"2022-03-23T22:32:07.000Z","size":444,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T08:19:03.822Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.sparkpost.com/","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"SparkPost/gosparkpost","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/morphar.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-07T03:44:19.000Z","updated_at":"2024-06-20T08:19:03.822Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/morphar/gosparkpost","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/morphar/gosparkpost","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morphar%2Fgosparkpost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morphar%2Fgosparkpost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morphar%2Fgosparkpost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morphar%2Fgosparkpost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/morphar","download_url":"https://codeload.github.com/morphar/gosparkpost/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morphar%2Fgosparkpost/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28438965,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T22:37:52.437Z","status":"ssl_error","status_checked_at":"2026-01-14T22:37:31.496Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-01-14T23:36:17.940Z","updated_at":"2026-01-14T23:36:18.667Z","avatar_url":"https://github.com/morphar.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":".. image:: https://www.sparkpost.com/sites/default/files/attachments/SparkPost_Logo_2-Color_Gray-Orange_RGB.svg\n    :target: https://www.sparkpost.com\n    :width: 200px\n\n`Sign up`_ for a SparkPost account and visit our `Developer Hub`_ for even more content.\n\n.. _Sign up: https://app.sparkpost.com/join?plan=free-0817?src=Social%20Media\u0026sfdcid=70160000000pqBb\u0026pc=GitHubSignUp\u0026utm_source=github\u0026utm_medium=social-media\u0026utm_campaign=github\u0026utm_content=sign-up\n.. _Developer Hub: https://developers.sparkpost.com\n\nSparkPost Go API client\n=======================\n\n.. image:: https://travis-ci.org/SparkPost/gosparkpost.svg?branch=master\n    :target: https://travis-ci.org/SparkPost/gosparkpost\n    :alt: Build Status\n\n.. image:: https://coveralls.io/repos/SparkPost/gosparkpost/badge.svg?branch=master\u0026service=github\n    :target: https://coveralls.io/github/SparkPost/gosparkpost?branch=master\n    :alt: Code Coverage  \n    \n.. image:: https://img.shields.io/badge/godoc-gosparkpost-blue.svg\n    :target: https://godoc.org/github.com/SparkPost/gosparkpost\n    :alt: Go Doc\n\n\nThe official Go package for using the SparkPost API.\n\nInstallation\n------------\n\nInstall from GitHub using `go get`_:\n\n.. code-block:: bash\n\n    $ go get github.com/SparkPost/gosparkpost\n\n.. _go get: https://golang.org/cmd/go/#hdr-Download_and_install_packages_and_dependencies\n\nGet a key\n---------\n\nGo to `API \u0026 SMTP`_ in the SparkPost app and create an API key. We recommend using the ``SPARKPOST_API_KEY`` environment variable. The example code below shows how to set this up.\n\n.. _API \u0026 SMTP: https://app.sparkpost.com/#/configuration/credentials\n\nSend a message\n--------------\n\nHere at SparkPost, our \"send some messages\" api is called the `transmissions API`_ - let's use it to send a friendly test message:\n\n.. code-block:: go\n\n    package main\n\n    import (\n      \"log\"\n      \"os\"\n\n      sp \"github.com/SparkPost/gosparkpost\"\n    )\n\n    func main() {\n      // Get our API key from the environment; configure.\n      apiKey := os.Getenv(\"SPARKPOST_API_KEY\")\n      cfg := \u0026sp.Config{\n        BaseUrl:    \"https://api.sparkpost.com\",\n        ApiKey:     apiKey,\n        ApiVersion: 1,\n      }\n      var client sp.Client\n      err := client.Init(cfg)\n      if err != nil {\n        log.Fatalf(\"SparkPost client init failed: %s\\n\", err)\n      }\n\n      // Create a Transmission using an inline Recipient List\n      // and inline email Content.\n      tx := \u0026sp.Transmission{\n        Recipients: []string{\"someone@somedomain.com\"},\n        Content: sp.Content{\n          HTML:    \"\u003cp\u003eHello world\u003c/p\u003e\",\n          From:    \"test@sparkpostbox.com\",\n          Subject: \"Hello from gosparkpost\",\n        },\n      }\n      id, _, err := client.Send(tx)\n      if err != nil {\n        log.Fatal(err)\n      }\n\n      // The second value returned from Send\n      // has more info about the HTTP response, in case\n      // you'd like to see more than the Transmission id.\n      log.Printf(\"Transmission sent with id [%s]\\n\", id)\n    }\n\n.. _transmissions API: https://www.sparkpost.com/api#/reference/transmissions\n\nDocumentation\n-------------\n\n* `SparkPost API Reference`_\n* `Code samples`_\n* `Command-line tool: sparks`_\n\n.. _SparkPost API Reference: https://developers.sparkpost.com/api\n.. _Code samples: examples/README.md\n.. _Command-line tool\\: sparks: cmd/sparks/README.md\n\nContribute\n----------\n\nTL;DR:\n\n#. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.\n#. Fork `the repository`_.\n#. Go get the original code - ``go get https://github.com/SparkPost/gosparkpost``\n#. Add your fork as a remote - ``git remote add fork http://github.com/YOURID/gosparkpost``\n#. Make your changes in a branch on your fork\n#. Write a test which shows that the bug was fixed or that the feature works as expected.\n#. Push your changes - ``git push fork HEAD``\n#. Send a pull request. Make sure to add yourself to AUTHORS_.\n\nMore on the `contribution process`_\n\n.. _`the repository`: https://github.com/SparkPost/gosparkpost\n.. _AUTHORS: AUTHORS.rst\n.. _`contribution process`: CONTRIBUTING.md\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorphar%2Fgosparkpost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorphar%2Fgosparkpost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorphar%2Fgosparkpost/lists"}