{"id":15798196,"url":"https://github.com/grokify/go-glip","last_synced_at":"2025-06-26T03:35:36.795Z","repository":{"id":15942872,"uuid":"79022341","full_name":"grokify/go-glip","owner":"grokify","description":"Inbound webhook client for Glip (https://glip.com) in Go","archived":false,"fork":false,"pushed_at":"2025-06-08T06:25:49.000Z","size":1092,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-08T07:18:31.476Z","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/grokify.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}},"created_at":"2017-01-15T10:03:04.000Z","updated_at":"2025-06-08T06:14:57.000Z","dependencies_parsed_at":"2023-11-19T02:42:16.188Z","dependency_job_id":"eb054d33-b975-41ce-ae8c-f0a89dec5331","html_url":"https://github.com/grokify/go-glip","commit_stats":null,"previous_names":["grokify/glip-go-webhook"],"tags_count":32,"template":false,"template_full_name":null,"purl":"pkg:github/grokify/go-glip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grokify%2Fgo-glip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grokify%2Fgo-glip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grokify%2Fgo-glip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grokify%2Fgo-glip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grokify","download_url":"https://codeload.github.com/grokify/go-glip/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grokify%2Fgo-glip/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261995702,"owners_count":23242204,"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":[],"created_at":"2024-10-05T00:23:58.739Z","updated_at":"2025-06-26T03:35:36.786Z","avatar_url":"https://github.com/grokify.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Glip Webhook Client in Go\n\n[![Build Status][build-status-svg]][build-status-url]\n[![Lint Status][lint-status-svg]][lint-status-url]\n[![Go Report Card][goreport-svg]][goreport-url]\n[![Docs][docs-godoc-svg]][docs-godoc-url]\n[![License][license-svg]][license-url]\n[![Chat][chat-svg]][chat-url]\n\n## Installation\n\n```bash\n$ go get github.com/grokify/go-glip\n```\n\n## Usage\n\n1. Create a webhook URL for a conversation in Glip\n2. Use the code below to send a message to the webhook URL\n\n```go\nimport (\n    \"fmt\"\n    \"github.com/grokify/go-glip\"\n)\n\nfunc sendMessage() {\n    // Can instantiate webhook client with full URL or GUID only\n    url := \"https://hooks.glip.com/webhook/00001111-2222-3333-4444-555566667777\"\n    client, err := glipwebhook.NewGlipWebhookClient(url)\n    if err != nil {\n        panic(\"BAD URL\")\n    }\n\n    msg := glipwebhook.GlipWebhookMessage{\n        Icon:     \"https://raw.githubusercontent.com/grokify/glip-go-webhook/master/glip_gopher_600x600xfff.png\",\n        Activity: \"Gopher [Bot]\",\n        Title:    \"Test Message Title\",\n        Body:     \"Test Message Body\"}\n\n    resp, err := client.PostMessage(msg)\n\n    respBodyBytes, err := client.SendMessage(msg)\n    if err == nil {\n        fmt.Printf(\"%v\\n\", string(respBodyBytes))\n    }\n}\n```\n\n### Using `fasthttp` client\n\nPosts can be made using [`fasthttp`](https://github.com/valyala/fasthttp).\n\n```go\nimport (\n    \"fmt\"\n    \"github.com/grokify/go-glip\"\n)\n\nfunc sendMessage() {\n    // Can instantiate webhook client with full URL or GUID only\n    url := \"https://hooks.glip.com/webhook/00001111-2222-3333-4444-555566667777\"\n    client, err := glipwebhook.NewGlipWebhookClientFast(url)\n    if err != nil {\n        panic(\"BAD URL\")\n    }\n\n    msg := glipwebhook.GlipWebhookMessage{\n        Body: \"Test Message Body\"}\n\n    req, resp, err := client.PostMessageFast(msg)\n    if err == nil {\n        fmt.Println(string(resp.Body()))\n    }\n    fasthttp.ReleaseRequest(req)\n    fasthttp.ReleaseResponse(resp)\n}\n```\n\nYou can reuse the client for different Webhook URLs or GUIDs as follows:\n\n```go\n// Webhook URL\nres, resp, err := client.PostWebhookFast(url, msg)\n\n// Webhook GUID\nres, resp, err := client.PostWebhookGUIDFast(guid, msg)\n```\n\n [build-status-svg]: https://github.com/grokify/go-glip/actions/workflows/ci.yaml/badge.svg?branch=master\n [build-status-url]: https://github.com/grokify/go-glip/actions/workflows/ci.yaml\n [lint-status-svg]: https://github.com/grokify/go-glip/actions/workflows/lint.yaml/badge.svg?branch=master\n [lint-status-url]: https://github.com/grokify/go-glip/actions/workflows/lint.yaml\n [goreport-svg]: https://goreportcard.com/badge/github.com/grokify/go-glip\n [goreport-url]: https://goreportcard.com/report/github.com/grokify/go-glip\n [docs-godoc-svg]: https://pkg.go.dev/badge/github.com/grokify/go-glip\n [docs-godoc-url]: https://pkg.go.dev/github.com/grokify/go-glip\n [license-svg]: https://img.shields.io/badge/license-MIT-blue.svg\n [license-url]: https://github.com/grokify/go-glip/blob/master/LICENSE\n [chat-svg]: https://img.shields.io/badge/chat-on%20glip-orange.svg\n [chat-url]: https://ringcentral.github.io/join-ringcentral/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrokify%2Fgo-glip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrokify%2Fgo-glip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrokify%2Fgo-glip/lists"}