{"id":16095546,"url":"https://github.com/meowgorithm/go-kik","last_synced_at":"2025-04-05T20:14:06.665Z","repository":{"id":57606189,"uuid":"56511491","full_name":"meowgorithm/go-kik","owner":"meowgorithm","description":"Go bindings for the Kik API","archived":false,"fork":false,"pushed_at":"2017-05-30T11:57:38.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-18T19:49:06.624Z","etag":null,"topics":["golang","kik"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/meowgorithm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-18T13:48:31.000Z","updated_at":"2020-08-30T15:59:32.000Z","dependencies_parsed_at":"2022-09-26T20:02:01.380Z","dependency_job_id":null,"html_url":"https://github.com/meowgorithm/go-kik","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/meowgorithm%2Fgo-kik","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meowgorithm%2Fgo-kik/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meowgorithm%2Fgo-kik/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meowgorithm%2Fgo-kik/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meowgorithm","download_url":"https://codeload.github.com/meowgorithm/go-kik/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393573,"owners_count":20931813,"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":["golang","kik"],"created_at":"2024-10-09T17:06:22.775Z","updated_at":"2025-04-05T20:14:06.647Z","avatar_url":"https://github.com/meowgorithm.png","language":"Go","readme":"# Go Kik\n\nBindings for the Kik API. No external dependencies.\n\n## Installation\n\n    go get github.com/meowgorithm/go-kik\n\n## Overview\n\nKik operates over a send-receive system utilizing REST calls for sending and a\nwebhook for receiving. Note that SSL is required on the webhook end.\n\nFor local development you could use something like [Localtunnel][lt] to expose\nyour development machine over SSL.\n\n[lt]: http://localtunnel.me/\n\n## Quick Example\n\n```go\npackage main\n\nimport (\n    \"kik\"\n    \"log\"\n    \"net/http\"\n)\n\nvar (\n    client *kik.Client\n    webhookUrl string // public-facing URL\n)\n\nfunc main() {\n\n    // Client for making API requests\n\n    client = \u0026kik.Client{\n        Username: \"username\",\n        ApiKey:   \"api-key\",\n        Callback: handleMessages,\n        Verbose:  true,\n    }\n\n    // Check Kik config\n\n    if _, err := client.GetConfig(), err != nil {\n        log.Printf(\"Error reading config: %s\", err)\n    }\n\n    // Set Kik config\n\n    config := kik.Config{\n        Callback: \u0026webhookUrl,\n        Features: kik.Features{\n            ReceiveReadReceipts:      false,\n            ReceiveIsTyping:          false,\n            ManuallySendReadReceipts: false,\n            ReceiveDeliveryReceipts:  false,\n        },\n    }\n    if err := client.SetConfig(config); err != nil {\n        log.Printf(\"Error setting config: %s\\n\", err)\n    }\n\n    // Incoming webhook handler for Kik\n\n    http.HandleFunc(\"/\", client.Webhook)\n    http.ListenAndServe(\":8000\", nil)\n}\n\n// Handle incoming messages\n\nfunc handleMessages(p kik.Payload, err error) {\n\n    // Custom keyboard\n\n    k := []kik.Keyboard{\n        kik.Keyboard{\n            Hidden:    false,\n            Type:      kik.Suggested,\n            Responses: []kik.KeyboardResponse{\n                kik.KeyboardResponse{\n                    Type: kik.Text,\n                    Body: \"What a Button\",\n                },\n            },\n        },\n    }\n\n    // Reply to incoming messages\n\n    var m []kik.Message\n    for _, in := range p.Messages {\n        out := Message{\n            ChatId:    in.ChatId,\n            To:        in.From,\n            Body:      \"Hello world!\",\n            Keyboards: k\n        }\n        m = append(m, out)\n    }\n\n    // Send messages\n\n    client.SendMessages(m)\n}\n```\n\n## Author\n\nChristian Rocha \u003cchristian@rocha.is\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeowgorithm%2Fgo-kik","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeowgorithm%2Fgo-kik","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeowgorithm%2Fgo-kik/lists"}