{"id":16717377,"url":"https://github.com/leonidas-from-xiv/slacko","last_synced_at":"2025-09-22T07:31:19.818Z","repository":{"id":20973608,"uuid":"24262586","full_name":"Leonidas-from-XIV/slacko","owner":"Leonidas-from-XIV","description":"A neat interface for Slack","archived":false,"fork":false,"pushed_at":"2024-01-26T17:52:34.000Z","size":482,"stargazers_count":82,"open_issues_count":8,"forks_count":11,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-02T02:12:45.729Z","etag":null,"topics":["api","api-client","binding","bot","hacktoberfest","ocaml","slack"],"latest_commit_sha":null,"homepage":"https://leonidas-from-xiv.github.io/slacko","language":"OCaml","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Leonidas-from-XIV.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"COPYING","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":"2014-09-20T12:49:41.000Z","updated_at":"2025-01-12T23:54:15.000Z","dependencies_parsed_at":"2024-05-02T15:21:21.351Z","dependency_job_id":null,"html_url":"https://github.com/Leonidas-from-XIV/slacko","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/Leonidas-from-XIV/slacko","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leonidas-from-XIV%2Fslacko","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leonidas-from-XIV%2Fslacko/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leonidas-from-XIV%2Fslacko/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leonidas-from-XIV%2Fslacko/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Leonidas-from-XIV","download_url":"https://codeload.github.com/Leonidas-from-XIV/slacko/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leonidas-from-XIV%2Fslacko/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276367023,"owners_count":25629964,"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","status":"online","status_checked_at":"2025-09-22T02:00:08.972Z","response_time":79,"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":["api","api-client","binding","bot","hacktoberfest","ocaml","slack"],"created_at":"2024-10-12T21:31:44.096Z","updated_at":"2025-09-22T07:31:19.557Z","avatar_url":"https://github.com/Leonidas-from-XIV.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"Slacko\n======\n\n![Slacko logo](slacko.png) A neat interface for [Slack](https://slack.com/)\n\n[![Build Status](https://img.shields.io/endpoint?url=https%3A%2F%2Fci.ocamllabs.io%2Fbadge%2FLeonidas-from-XIV%2Fslacko%2Fmaster\u0026logo=ocaml)](https://ci.ocamllabs.io/github/Leonidas-from-XIV/slacko) [![Build Status](https://img.shields.io/github/actions/workflow/status/Leonidas-from-XIV/slacko/ci.yaml?label=GitHub%20CI)](https://github.com/Leonidas-from-XIV/slacko/actions/workflows/ci.yaml)\n\nYour company got you Slack and you're all like \"yeah, and now I am forced to\nuse a browser or what?\". Fear no more, because as it turns out Slack has a REST\nAPI that can be accessed.\n\nYeah, scripting Slack via `curl` sucks, so let's do something that sucks less.\nMaybe a bit? How about using an existing\n[integration](https://api.slack.com/community)? They are incomplete or for\nsucky languages? Glad you asked, because I have *just the right thing* for you:\na neat interface to Slack via [OCaml](https://ocaml.org/)!\n\nWhat do you need? OCaml, OPAM and a Slack token. All for free, no asterisks, no\nhidden clauses. Life can be so easy.\n\nInstall that cow!\n-----------------\n\nHuzzah, I got you interested? Lucky you, Slacko can easily be installed via\n[OCaml Package Manager (OPAM)](https://opam.ocaml.org/), so you just write\n\n```sh\n$ opam install slacko\n```\n\nNow wasn't this easy? Bet your ass it was! And you know what? It even gets\nbetter: it also installed you a nifty little executable called `slack-notify`\nwhich you can use to post directly to Slack *from your shell*, no programming\nrequired at all. Actually, once compiled, not even OCaml is required anymore,\neverything is self-contained.\n\nIn case you want to manually install it, you can, too. There's a number of\ndependencies that you have to take care of yourself, for the list you'll have\nto check the [slacko.opam](slacko.opam) file.\n\nThen you can build Slacko by yourself:\n\n```sh\n$ make\n```\n\nHow do I even use this thing?\n-----------------------------\n\nThe workflow is always very simple: you get a token from Slack either manually\nor my querying the OAuth API. Then you can instantly use any API method that\nSlacko supports. If you want, you can look at snapshot of\n[the Slacko docs](http://leonidas-from-xiv.github.io/slacko/) to see what\nfunctions are available (hint: all of them).\n\n\nReady, set, go!\n---------------\n\nNot convinced yet? Check out this neat documentation from `slack-notify` to\nhelp you out.\n\n```\nNAME\n       slack-notify - Writes messages to slack\n\nSYNOPSIS\n       slack-notify [OPTION]... CHANNEL MSG\n\nARGUMENTS\n       CHANNEL\n           Name of the channel to post to\n\n       MSG Message to send\n\nOPTIONS\n       --help[=FMT] (default=pager)\n           Show this help in format FMT (pager, plain or groff).\n\n       --icon-emoji=EMOJI\n           emoji to use as the icon for this message. Overrides icon-url\n\n       --icon-url=URL\n           URL to an image to use as the icon for this message\n\n       -t TOKEN, --token=TOKEN\n           The Slack API access token\n\n       -u USERNAME, --username=USERNAME\n           Name of the bot in the chat\n```\n\nSo what is this token thing? Once you signed up for Slack, you can get a token\nfor every team you are in from [the Slack API docs](https://api.slack.com/).\nClick on the \"get token\" link and you're all set.\n\nBut I do want to code my own stuff!\n-----------------------------------\n\nYou know, Slacko is a nice gal/guy. So you can just plug together whatever you\nwant with it, since it currently implements [100% of the Slack\nAPI](https://api.slack.com/methods)! Well, except for the Real-Time-Messaging\npart, which is on our TODO! How neat is this? And you can use it in your own\ncode without worrying about the license one bit, since the\n[LGPL 3.0](https://www.gnu.org/licenses/lgpl.html) is liberal for re-use,\ncoupled with the\n[OCaml linking exception](http://caml.inria.fr/pub/old_caml_site/ocaml/LICENSE.html).\nFor realz!\n\nSomething's amiss?\n------------------\n\nI know, I know, it is hardly believable that something could possibly be\nmissing from this library. But wonders happen, and if you run into one of these\ncases, just shoot me a pull request.\n\nCredit where credit's due\n-------------------------\n\nThanks go to all the people who wrote\n[CoHTTP](https://github.com/mirage/ocaml-cohttp), a real-world HTTP library\nthat doesn't suck and [Lwt](http://ocsigen.org/lwt/), an oddball library that\nsubconsciously *makes sense*. Also, the fine folks in\n[#ocaml](http://irclog.whitequark.org/ocaml/) on\n[freenode](https://freenode.net/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonidas-from-xiv%2Fslacko","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleonidas-from-xiv%2Fslacko","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonidas-from-xiv%2Fslacko/lists"}