{"id":21005240,"url":"https://github.com/ikstream/libwebslack","last_synced_at":"2025-12-25T19:49:35.627Z","repository":{"id":77138336,"uuid":"89610236","full_name":"ikstream/libwebslack","owner":"ikstream","description":"C lib for Slack incoming webhooks","archived":false,"fork":false,"pushed_at":"2017-11-21T17:58:35.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-20T10:24:41.728Z","etag":null,"topics":["c","library","slack","slack-webhook"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ikstream.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}},"created_at":"2017-04-27T15:04:17.000Z","updated_at":"2022-03-23T13:48:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"3110456f-6575-49f6-9119-728dd26bbaa3","html_url":"https://github.com/ikstream/libwebslack","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/ikstream%2Flibwebslack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikstream%2Flibwebslack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikstream%2Flibwebslack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikstream%2Flibwebslack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ikstream","download_url":"https://codeload.github.com/ikstream/libwebslack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243428422,"owners_count":20289315,"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":["c","library","slack","slack-webhook"],"created_at":"2024-11-19T08:42:42.495Z","updated_at":"2025-12-25T19:49:35.583Z","avatar_url":"https://github.com/ikstream.png","language":"C","readme":"# __Libwebslack__\n\nlibwebslack provides an interface to send messages to slack\nvia the incomming webhooks system from a C program.\n\n#### Depencies\n`libcurl`\n#### Usage\nTo send messages you first have to initialize the channel,\nthe webhook and username.\n```\n\\\\create a struct per team you want send messages\nstruct team_info *ti = malloc(sizeof(*ti));\n\n\\\\set webhook url\nif (set_webhook_url(ti, \u003cyour webhook here\u003e)) {\n     \\\\error handling\n}\n\n\\\\set the channel you want to post to (max 22 characters)\nif (set_channel(ti, \"#general\")) {\n     \\\\error handling\n}\n\n\\\\set the username you want to use (max 21 characters)\nif (set_username(ti, \"libwebslackbot\")) {\n     \\\\error handling\n}\n\n\\\\set emoji for your message (optional)\nif (set_emoji(ti, \":ghost:\") {\n     \\\\error handling\n}\n\nif (set_message(ti, \"your very important message\")) {\n     \\\\error handling\n}\n\nif (send_message(ti)) {\n     \\\\error handling\n}\n```\n#### Compiler and linker flags\nAs libwebslack uses libcurl, the compiler needs to know:\n`$(pkg-config --libs --cflags libcurl)`\n\n#### TODO\nlibwebslack uses libcurl by now. This __should__ be changed in the\nfuture to be based on standard libs only.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikstream%2Flibwebslack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fikstream%2Flibwebslack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikstream%2Flibwebslack/lists"}