{"id":38286697,"url":"https://github.com/sromku/go-gitter","last_synced_at":"2026-01-17T02:04:04.559Z","repository":{"id":57480116,"uuid":"49313986","full_name":"sromku/go-gitter","owner":"sromku","description":"Gitter API in Go","archived":false,"fork":false,"pushed_at":"2017-08-28T21:07:51.000Z","size":36,"stargazers_count":56,"open_issues_count":0,"forks_count":13,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-06-18T17:12:41.232Z","etag":null,"topics":["gitter","go","library"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sromku.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":"2016-01-09T06:40:27.000Z","updated_at":"2024-06-18T17:12:41.233Z","dependencies_parsed_at":"2022-09-26T17:41:35.638Z","dependency_job_id":null,"html_url":"https://github.com/sromku/go-gitter","commit_stats":null,"previous_names":["sromku/gitter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sromku/go-gitter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sromku%2Fgo-gitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sromku%2Fgo-gitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sromku%2Fgo-gitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sromku%2Fgo-gitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sromku","download_url":"https://codeload.github.com/sromku/go-gitter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sromku%2Fgo-gitter/sbom","scorecard":{"id":844149,"data":{"date":"2025-08-11","repo":{"name":"github.com/sromku/go-gitter","commit":"70f7030a94a69752dd80a9cd630aee0d36628c89"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":4,"reason":"Found 9/21 approved changesets -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 18 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T21:04:29.384Z","repository_id":57480116,"created_at":"2025-08-23T21:04:29.384Z","updated_at":"2025-08-23T21:04:29.384Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28492047,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T00:50:05.742Z","status":"online","status_checked_at":"2026-01-17T02:00:07.808Z","response_time":85,"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":["gitter","go","library"],"created_at":"2026-01-17T02:04:04.461Z","updated_at":"2026-01-17T02:04:04.552Z","avatar_url":"https://github.com/sromku.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gitter\nGitter API in Go\nhttps://developer.gitter.im\n\n#### Install\n\n`go get github.com/sromku/go-gitter`\n\n- [Initialize](#initialize)\n- [Users](#users)\n- [Rooms](#rooms)\n- [Messages](#messages)\n- [Stream](#stream)\n- [Faye (Experimental)](#faye-experimental)\n- [Debug](#debug)\n- [App Engine](#app-engine)\n\n##### Initialize\n``` Go\napi := gitter.New(\"YOUR_ACCESS_TOKEN\")\n```\n\n##### Users\n\n- Get current user\n\n\t``` Go\n\tuser, err := api.GetUser()\n\t```\n\n##### Rooms\n\n- Get all rooms\n\t``` Go\n\trooms, err := api.GetRooms()\n\t```\n\n- Get room by id\n\t``` Go\n\troom, err := api.GetRoom(\"roomID\")\n\t```\n\n- Get rooms of some user\n\t``` Go\n\trooms, err := api.GetRooms(\"userID\")\n\t```\n\n- Join room\n\t``` Go\n\troom, err := api.JoinRoom(\"roomID\", \"userID\")\n\t```\n\t\n- Leave room\n\t``` Go\n\troom, err := api.LeaveRoom(\"roomID\", \"userID\")\n\t```\n\n- Get room id\n\t``` Go\n\tid, err := api.GetRoomId(\"room/uri\")\n\t```\n\n- Search gitter rooms\n\t``` Go\n\trooms, err := api.SearchRooms(\"search/string\")\n\t```\n##### Messages\n\n- Get messages of room\n\t``` Go\n\tmessages, err := api.GetMessages(\"roomID\", nil)\n\t```\n\n- Get one message\n\t``` Go\n\tmessage, err := api.GetMessage(\"roomID\", \"messageID\")\n\t```\n\n- Send message\n\t``` Go\n\terr := api.SendMessage(\"roomID\", \"free chat text\")\n\t```\n\n##### Stream\n\nCreate stream to the room and start listening to incoming messages\n\n``` Go\nstream := api.Stream(room.Id)\ngo api.Listen(stream)\n\nfor {\n    event := \u003c-stream.Event\n    switch ev := event.Data.(type) {\n    case *gitter.MessageReceived:\n        fmt.Println(ev.Message.From.Username + \": \" + ev.Message.Text)\n    case *gitter.GitterConnectionClosed:\n        // connection was closed\n    }\n}\n```\n\nClose stream connection\n\n``` Go\nstream.Close()\n```\n\n##### Faye (Experimental)\n\n``` Go\nfaye := api.Faye(room.ID)\ngo faye.Listen()\n\nfor {\n    event := \u003c-faye.Event\n    switch ev := event.Data.(type) {\n    case *gitter.MessageReceived:\n        fmt.Println(ev.Message.From.Username + \": \" + ev.Message.Text)\n    case *gitter.GitterConnectionClosed: //this one is never called in Faye\n        // connection was closed\n    }\n}\n```\n\n##### Debug\n\nYou can print the internal errors by enabling debug to true\n\n``` Go\napi.SetDebug(true, nil)\n```\n\nYou can also define your own `io.Writer` in case you want to persist the logs somewhere.\nFor example keeping the errors on file\n\n``` Go\nlogFile, err := os.Create(\"gitter.log\")\napi.SetDebug(true, logFile)\n```\n\n##### App Engine\n\nInitialize app engine client and continue as usual\n\n``` Go\nc := appengine.NewContext(r)\nclient := urlfetch.Client(c)\n\napi := gitter.New(\"YOUR_ACCESS_TOKEN\")\napi.SetClient(client)\n```\n\n[Documentation](https://godoc.org/github.com/sromku/go-gitter)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsromku%2Fgo-gitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsromku%2Fgo-gitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsromku%2Fgo-gitter/lists"}