{"id":34851892,"url":"https://github.com/umahmood/clockwork","last_synced_at":"2025-12-25T19:24:27.721Z","repository":{"id":57528429,"uuid":"83056209","full_name":"umahmood/clockwork","owner":"umahmood","description":"Clockwork a Go library which sends SMS messages using the Clockwork SMS service.","archived":false,"fork":false,"pushed_at":"2017-03-18T00:07:25.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-18T13:02:01.580Z","etag":null,"topics":["api-client","clockwork","go","golang","sms-messages"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/umahmood.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-24T15:38:39.000Z","updated_at":"2017-06-02T04:28:02.000Z","dependencies_parsed_at":"2022-08-30T11:50:56.996Z","dependency_job_id":null,"html_url":"https://github.com/umahmood/clockwork","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/umahmood/clockwork","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umahmood%2Fclockwork","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umahmood%2Fclockwork/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umahmood%2Fclockwork/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umahmood%2Fclockwork/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/umahmood","download_url":"https://codeload.github.com/umahmood/clockwork/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umahmood%2Fclockwork/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28035467,"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-12-25T02:00:05.988Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["api-client","clockwork","go","golang","sms-messages"],"created_at":"2025-12-25T19:24:20.615Z","updated_at":"2025-12-25T19:24:27.702Z","avatar_url":"https://github.com/umahmood.png","language":"Go","readme":"# Clockwork\n\nClockwork is a Go library which allows you to send SMS messages using the [Clockwork SMS service](https://www.clockworksms.com/).\n\n# Installation\n\nRequires Go version 1.7+.\n\n\u003e $ go get github.com/umahmood/clockwork\n\u003e\n\u003e $ cd $GOPATH/src/github.com/umahmood/clockwork\n\u003e\n\u003e $ go test ./...\n\n# Usage\n\nSend an SMS message:\n```\npackage main\n\nimport (\n    \"fmt\"\n\n    \"github.com/umahmood/clockwork\"\n)\n\nfunc main() {\n    cw := clockwork.New(\"API-KEY\")\n\n    msg := clockwork.SMS{\n        To:      clockwork.Numbers{\"44123456789\", \"44987654321\"},\n        From:    \"Gopher\",\n        Content: \"Gophers rule!\",\n    }\n\n    resp, err := cw.Send(msg)\n    if err != nil {\n        // ...\n    }\n\n    // print each valid number an SMS was sent to and its assigned message id\n    for num, meta := range resp {\n        fmt.Println(num, meta[\"ID\"])\n    }\n}\n```\n\nDelivery receipts let you know whether a message has been delivered:\n```\npackage main\n\nimport (\n    \"fmt\"\n\n    \"github.com/umahmood/clockwork\"\n)\n\nfunc OnDeliveryReceipt(r clockwork.Receipt) {\n    if r.Err != nil {\n        //...\n    }\n    fmt.Println(\"ID\", r.ID, \"Status\", r.Status, \"To\", r.To, \"Time\", r.Time)\n}\n\nfunc main() {\n    clockwork.DeliveryReceiptListen(\u0026clockwork.ReceiptHandler{\n        Path:     \"/receipts\",\n        Port:     9090,\n        Callback: OnDeliveryReceipt,\n    })\n}\n```\nOutput:\n```\nID LA_422342 Status Enroute To 441234567890 Time 2017-03-17 17:21:27.667238018 +0000 UTC\n```\n\n# Documentation\n\n\u003e http://godoc.org/github.com/umahmood/clockwork\n\n# License\n\nSee the [LICENSE](LICENSE.md) file for license rights and limitations (MIT).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumahmood%2Fclockwork","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fumahmood%2Fclockwork","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumahmood%2Fclockwork/lists"}