{"id":37093107,"url":"https://github.com/is2ei/go-typetalk","last_synced_at":"2026-01-14T11:19:38.042Z","repository":{"id":57502550,"uuid":"230291170","full_name":"is2ei/go-typetalk","owner":"is2ei","description":"go-typetalk is a GO client library for accessing the Typetalk API.","archived":false,"fork":true,"pushed_at":"2019-12-26T03:37:53.000Z","size":219,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-21T15:36:48.041Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://developer.nulab-inc.com/docs/typetalk","language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"nulab/go-typetalk","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/is2ei.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-12-26T16:04:07.000Z","updated_at":"2019-12-26T16:04:09.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/is2ei/go-typetalk","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/is2ei/go-typetalk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/is2ei%2Fgo-typetalk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/is2ei%2Fgo-typetalk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/is2ei%2Fgo-typetalk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/is2ei%2Fgo-typetalk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/is2ei","download_url":"https://codeload.github.com/is2ei/go-typetalk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/is2ei%2Fgo-typetalk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28418179,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"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-01-14T11:19:37.484Z","updated_at":"2026-01-14T11:19:38.012Z","avatar_url":"https://github.com/is2ei.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"go-typetalk\n=========\n\n[![Build Status](https://travis-ci.org/nulab/go-typetalk.svg?branch=master)][travis]\n[![Coverage Status](https://coveralls.io/repos/github/nulab/go-typetalk/badge.svg?branch=master)][coveralls]\n[![Documentation](https://godoc.org/github.com/nulab/go-typetalk?status.svg)][godocs]\n\n[travis]: https://travis-ci.org/nulab/go-typetalk\n[coveralls]: https://coveralls.io/github/nulab/go-typetalk?branch=master\n[godocs]: http://godoc.org/github.com/nulab/go-typetalk\n\ngo-typetalk is a GO client library for accessing the [Typetalk API](https://developer.nulab.com/docs/typetalk).\n\n## Prerequisite\n\nTo use this library, you must have a valid [client id and client secret](https://developer.nulab.com/docs/typetalk/auth#oauth2) provided by Typetalk and register a new client application. Or you can use the [Typetalk Token](https://developer.nulab.com/docs/typetalk/auth#tttoken).\n\n## Usage\n\n### Import\n\nUse v1:\n``` go\nimport \"github.com/nulab/go-typetalk/v3/typetalk/v1\" // with go modules enabled (GO111MODULE=on or outside GOPATH)\nimport \"github.com/nulab/go-typetalk/typetalk/v1\" // with go modules disabled\n```\nUse v2:\n``` go\nimport \"github.com/nulab/go-typetalk/v3/typetalk/v2\" // with go modules enabled (GO111MODULE=on or outside GOPATH)\nimport \"github.com/nulab/go-typetalk/typetalk/v2\" // with go modules disabled\n```\nUse v3:\n``` go\nimport \"github.com/nulab/go-typetalk/v3/typetalk/v3\" // with go modules enabled (GO111MODULE=on or outside GOPATH)\nimport \"github.com/nulab/go-typetalk/typetalk/v3\" // with go modules disabled\n```\n\n### Access APIs using Typetalk Token\n\n``` go\npackage main\n\nimport (\n\t\"context\"\n\n\tv1 \"github.com/nulab/go-typetalk/typetalk/v1\"\n)\n\nfunc main() {\n\tclient := v1.NewClient(nil)\n\tclient.SetTypetalkToken(\"yourTypetalkToken\")\n\tctx := context.Background()\n\ttopicID := 1\n\tmessage := \"Hello\"\n\tprofile, resp, err := client.Messages.PostMessage(ctx, topicId, message, nil)\n}\n```\n\n### Access APIs using OAuth2 Access Token\n\n``` go\npackage main\n\nimport (\n\t\"context\"\n\t\"encoding/json\"\n\t\"net/http\"\n\t\"net/url\"\n\n\tv1 \"github.com/nulab/go-typetalk/typetalk/v1\"\n\t\"golang.org/x/oauth2\"\n)\n\ntype AccessToken struct {\n\tAccessToken  string `json:\"access_token\"`\n\tTokenType    string `json:\"token_type\"`\n\tExpiresIn    int    `json:\"expires_in\"`\n\tRefreshToken string `json:\"refresh_token\"`\n}\n\nfunc main() {\n\tform := url.Values{}\n\tform.Add(\"client_id\", \"yourClientId\")\n\tform.Add(\"client_secret\", \"yourClientSecret\")\n\tform.Add(\"grant_type\", \"client_credentials\")\n\tform.Add(\"scope\", \"topic.read,topic.post,topic.write,topic.delete,my\")\n\toauth2resp, err := http.PostForm(\"https://typetalk.com/oauth2/access_token\", form)\n\tif err != nil {\n\t\tprint(\"Client Credential request returned error\")\n\t}\n\tv := \u0026AccessToken{}\n\tjson.NewDecoder(oauth2resp.Body).Decode(v)\n\n\ttc := oauth2.NewClient(context.Background(), oauth2.StaticTokenSource(\n\t\t\u0026oauth2.Token{AccessToken: v.AccessToken},\n\t))\n\n\tclient := v1.NewClient(tc)\n\tprofile, resp, err := client.Accounts.GetMyProfile(context.Background())\n}\n```\n\n## Bugs and Feedback\n\nFor bugs, questions and discussions please use the Github Issues.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fis2ei%2Fgo-typetalk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fis2ei%2Fgo-typetalk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fis2ei%2Fgo-typetalk/lists"}