{"id":18936318,"url":"https://github.com/shellbear/go-blih","last_synced_at":"2026-03-21T02:30:18.203Z","repository":{"id":57496478,"uuid":"208597212","full_name":"shellbear/go-blih","owner":"shellbear","description":"Epitech Blih client written in Go","archived":false,"fork":false,"pushed_at":"2019-09-19T21:38:59.000Z","size":3723,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-31T21:24:10.565Z","etag":null,"topics":["api","blih","client","epitech","go","golang"],"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/shellbear.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":"2019-09-15T13:19:47.000Z","updated_at":"2019-09-19T21:39:01.000Z","dependencies_parsed_at":"2022-08-29T19:30:33.341Z","dependency_job_id":null,"html_url":"https://github.com/shellbear/go-blih","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellbear%2Fgo-blih","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellbear%2Fgo-blih/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellbear%2Fgo-blih/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellbear%2Fgo-blih/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shellbear","download_url":"https://codeload.github.com/shellbear/go-blih/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239937701,"owners_count":19721482,"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":["api","blih","client","epitech","go","golang"],"created_at":"2024-11-08T12:06:59.040Z","updated_at":"2026-03-21T02:30:18.154Z","avatar_url":"https://github.com/shellbear.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-blih\n\n**go-blih** is a Go client library for Blih (the Epitech bocal API).\n\n## Installation\n\nYou can use `go get` to install the latest version of the library. This command will install the the library and its dependencies:\n\n```go\ngo get -u github.com/ShellBear/go-blih/blih\n```\n\n## Examples\n\n#### Generate new Service\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"os\"\n\n\t\"github.com/ShellBear/go-blih/blih\"\n)\n\nfunc main() {\n\tsvc := blih.New(\"EPITECH_LOGIN\", \"EPITECH_PASSWORD\", context.Background())\n\n\tresponse, err := svc.Utils.WhoAmI()\n\tif err != nil {\n\t\tfmt.Println(\"An error ocurred. Err:\", err)\n\t\tos.Exit(1)\n\t}\n\n\tfmt.Printf(\"I am %s\\n\", response.Message)\n\n}\n```\n\n```bash\n\u003e go build -o go-blih .\n\u003e ./go-blih\nI am YOUR_EPITECH_LOGIN\n```\n\n#### Create repository\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"os\"\n\n\t\"github.com/ShellBear/go-blih/blih\"\n)\n\nfunc main() {\n\tsvc := blih.New(\"EPITECH_LOGIN\", \"EPITECH_PASSWORD\", context.Background())\n\n\trepo := \u0026blih.Repository{Name: \"example\"}\n\n\tresponse, err := svc.Repository.Create(repo)\n\tif err != nil {\n\t\tfmt.Println(\"An error ocurred. Err:\", err)\n\t\tos.Exit(1)\n\t}\n\n\tfmt.Println(response.Message)\n}\n\n```\n\n#### List repositories\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"os\"\n\n\t\"github.com/ShellBear/go-blih/blih\"\n)\n\nfunc main() {\n\tsvc := blih.New(\"EPITECH_LOGIN\", \"EPITECH_PASSWORD\", context.Background())\n\n\tresponse, err := svc.Repository.List()\n\tif err != nil {\n\t\tfmt.Println(\"An error ocurred. Err:\", err)\n\t\tos.Exit(1)\n\t}\n\n\tfor repoName, repo := range response.Repositories {\n\t\tfmt.Printf(\"%s (%s)\\n\", repoName, repo.URL)\n\t}\n}\n```\n\n## Documentation\n\nA generated documentation is available on [GoDoc](https://godoc.org/github.com/ShellBear/go-blih).\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshellbear%2Fgo-blih","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshellbear%2Fgo-blih","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshellbear%2Fgo-blih/lists"}