{"id":18783931,"url":"https://github.com/sparkpost/sparkpost-csv2tx","last_synced_at":"2025-07-23T12:09:33.936Z","repository":{"id":23155615,"uuid":"26511105","full_name":"SparkPost/sparkpost-csv2tx","owner":"SparkPost","description":"BASH script to import a CSV and convert it to a Recipient List and delivery a Transmission with SparkPost.","archived":false,"fork":false,"pushed_at":"2015-07-02T18:49:11.000Z","size":129,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-05-21T08:48:49.576Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","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","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-12T00:09:47.000Z","updated_at":"2017-04-12T09:32:34.000Z","dependencies_parsed_at":"2022-08-21T20:31:12.322Z","dependency_job_id":null,"html_url":"https://github.com/SparkPost/sparkpost-csv2tx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SparkPost/sparkpost-csv2tx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SparkPost%2Fsparkpost-csv2tx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SparkPost%2Fsparkpost-csv2tx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SparkPost%2Fsparkpost-csv2tx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SparkPost%2Fsparkpost-csv2tx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SparkPost","download_url":"https://codeload.github.com/SparkPost/sparkpost-csv2tx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SparkPost%2Fsparkpost-csv2tx/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266673586,"owners_count":23966379,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2024-11-07T20:41:12.615Z","updated_at":"2025-07-23T12:09:33.916Z","avatar_url":"https://github.com/SparkPost.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"BASH-Import-Script\n==================\n\nBASH script to import a CSV and convert it to a Recipient List and deliver a Transmission to the respective recipients using a Template you have stored in SparkPost.\n\n## How to use this\n\n1. Clone the repository\n```\ngit clone https://github.com/SparkPost/sparkpost-csv2tx.git\n```\n\n2. Add your information into the \"testPeople.csv\" using the headers (first row) as a guide\n\n3. Have your SparkPost API Key handy. Need to create a key? Visit: [SparkPost-Creating an API Key](https://sparkpost.com/docs/create-api-key).\n\n4. Create a template in SparkPost (either using the API or the UI). The ID is the \"name\" of the template.\n\n5. Run the following command from the command line:\n```\nsh ./csv2tx.sh testPeople \u003cyour API Key\u003e \u003cname of new recipient list\u003e \u003cdescription of new recipient list\u003e \u003csparkPost template id\u003e \u003creturnPath@yourSendingDomain.tld\u003e\n```\n\nThis script will:\n\n* Parse the .csv file\n* Create JSON which can be used to create a Recipient List Object in SparkPost\n    * Translates \"recipient_email_address\" to \"address\"\n    * Translates ALL OTHER FIELDS into \"substitution_data\" (lowercases all the keys)\n* Creates a new Recipient List with the provided information\n* Uses the ID of the newly created Recipient List object in addition to the Template ID you provide to send a transmission using SparkPost\n\n\n## Issues and Contributing\n\nPlease use the Github Issue Tracker (https://github.com/SparkPost/sparkpost-csv2tx/issues) if you find issues.\n\nPlease fork this repository and submit pull requests if you would like to contribute to the source code.\n\n### Author\n\nMessage Systems Inc\n\n## License\nBSD Clause 3, see the LICENSE file for the complete license information\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsparkpost%2Fsparkpost-csv2tx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsparkpost%2Fsparkpost-csv2tx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsparkpost%2Fsparkpost-csv2tx/lists"}