{"id":43379116,"url":"https://github.com/libdns/westcn","last_synced_at":"2026-02-02T07:45:09.642Z","repository":{"id":286408436,"uuid":"958677758","full_name":"libdns/westcn","owner":"libdns","description":"West.cn provider for libdns","archived":false,"fork":false,"pushed_at":"2025-11-02T09:19:26.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-02T11:37:17.379Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/libdns.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-01T15:27:57.000Z","updated_at":"2025-11-02T09:19:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"13e77cee-1a72-475f-8cae-530b4a9bae0e","html_url":"https://github.com/libdns/westcn","commit_stats":null,"previous_names":["libdns/westcn"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/libdns/westcn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libdns%2Fwestcn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libdns%2Fwestcn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libdns%2Fwestcn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libdns%2Fwestcn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/libdns","download_url":"https://codeload.github.com/libdns/westcn/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libdns%2Fwestcn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29007316,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T06:37:10.400Z","status":"ssl_error","status_checked_at":"2026-02-02T06:37:09.383Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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-02-02T07:45:07.559Z","updated_at":"2026-02-02T07:45:09.638Z","avatar_url":"https://github.com/libdns.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"West.cn for [`libdns`](https://github.com/libdns/libdns)\n=======================\n\n[![Go Reference](https://pkg.go.dev/badge/test.svg)](https://pkg.go.dev/github.com/libdns/westcn)\n\nThis package implements the [libdns interfaces](https://github.com/libdns/libdns) for [west.cn](https://west.cn), allowing you to manage DNS records.\n\n## Authenticating\n\nTo authenticate you need to supply your Username and APIPassword to the Provider.\n\n## Example\n\nHere's a minimal example of how to get all your DNS records using this `libdns` provider\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\t\"github.com/libdns/westcn\"\n)\n\nfunc main() {\n\tprovider := westcn.Provider{\n\t\tUsername: \"\u003cUsername form your west.cn account\u003e\",\n\t\tAPIPassword: \"\u003cAPIPassword form your west.cn account\u003e\",\n\t}\n\n\trecords, err  := provider.GetRecords(context.TODO(), \"example.com.\")\n\tif err != nil {\n\t\tfmt.Println(err.Error())\n\t}\n\n\tfor _, record := range records {\n\t\tfmt.Printf(\"%s %v %s %s\\n\", record.Name, record.TTL.Seconds(), record.Type, record.Value)\n\t}\n}\n```\n\nFor complete demo check [_example/main.go](_example/main.go)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibdns%2Fwestcn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibdns%2Fwestcn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibdns%2Fwestcn/lists"}