{"id":21181276,"url":"https://github.com/archive-go/telegraph-go","last_synced_at":"2025-03-14T19:21:18.921Z","repository":{"id":57554778,"uuid":"286079939","full_name":"archive-go/telegraph-go","owner":"archive-go","description":"一个封装了 Telegraph API 的 Golang 库。传入一些HTML字符串，telegraph-go会将它存储到Telegraph上，并返回一个可访问的链接给你","archived":false,"fork":false,"pushed_at":"2020-08-30T09:02:39.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-21T12:11:45.633Z","etag":null,"topics":["go","golang","golang-examples","golang-library","golang-package","telegram","telegraph","telegraph-api"],"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/archive-go.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":"2020-08-08T16:33:23.000Z","updated_at":"2020-08-30T09:02:41.000Z","dependencies_parsed_at":"2022-09-26T18:51:26.680Z","dependency_job_id":null,"html_url":"https://github.com/archive-go/telegraph-go","commit_stats":null,"previous_names":["makegolanggreat/telegraph-go"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archive-go%2Ftelegraph-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archive-go%2Ftelegraph-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archive-go%2Ftelegraph-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archive-go%2Ftelegraph-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/archive-go","download_url":"https://codeload.github.com/archive-go/telegraph-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243632584,"owners_count":20322422,"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":["go","golang","golang-examples","golang-library","golang-package","telegram","telegraph","telegraph-api"],"created_at":"2024-11-20T17:49:21.483Z","updated_at":"2025-03-14T19:21:18.897Z","avatar_url":"https://github.com/archive-go.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# telegraph-go\n\n\u003e 是一个封装了 [Telegraph API](https://telegra.ph/api) 的`Golang`库。\n\u003e \n\u003e 传入`HTML字符串`和`标题`数据（当然`telegraph-token`是必须的），telegraph-go会将它存储到Telegraph上，并返回一个可访问的链接给你。\n\u003e \n\u003e 如何获取`telegraph-token`？请看上面 [Telegraph API](https://telegra.ph/api) 文档\n\n### APIs has achieved\n\n---\n\n- [x] `CreatePage`\n\n### Getting Started\n\n---\n\n1. Download\n\n```go\ngo get -u github.com/MakeGolangGreat/telegraph-go\n```\n\n2. `test.go`\n\n```go\npackage main\n\nimoprt \"github.com/MakeGolangGreat/telegraph-go\"\n\nfunc main(){\n  page := \u0026telegraph.Page{\n    AccessToken: \"......\u003ctelegraph-token\u003e......\",\n\t\tAuthorURL:   \"https://github.com/MakeGolangGreat/telegraph-go\",\n\t\tAuthorName:  \"telegraph-go\",\n    Title: \t\t\t \"Title here\",\n    Data:\t\t\t\t \"\u003ch1\u003ePut html strings here.\u003c/h1\u003e\",\n\t}\n  \n  link, err := page.CreatePage()\n\tif err != nil {\n    fmt.Println(\"Create Page Failed: \", err)\n  }else{\n    fmt.Println(link) \n  }\n}\n```\n\nIt's a very simple sample above. You maybe want to look [this archive project](https://github.com/MakeGolangGreat/archive-go) that using `telegraph-go` now.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchive-go%2Ftelegraph-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farchive-go%2Ftelegraph-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchive-go%2Ftelegraph-go/lists"}