{"id":15010632,"url":"https://github.com/julienxx/clj-slack","last_synced_at":"2025-04-04T11:16:40.770Z","repository":{"id":14876789,"uuid":"17600317","full_name":"julienXX/clj-slack","owner":"julienXX","description":"Use Slack REST API from Clojure","archived":false,"fork":false,"pushed_at":"2024-02-16T14:08:15.000Z","size":235,"stargazers_count":133,"open_issues_count":4,"forks_count":36,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-10-30T05:58:10.060Z","etag":null,"topics":["client-lib","clj","clojure","slack","slackapi"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/julienXX.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":"2014-03-10T16:50:53.000Z","updated_at":"2024-08-24T23:41:37.000Z","dependencies_parsed_at":"2024-06-19T04:12:31.777Z","dependency_job_id":null,"html_url":"https://github.com/julienXX/clj-slack","commit_stats":{"total_commits":182,"total_committers":26,"mean_commits":7.0,"dds":"0.43956043956043955","last_synced_commit":"2a9b5b1a5bd09ffe429536ab63042ce1899c9c18"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julienXX%2Fclj-slack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julienXX%2Fclj-slack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julienXX%2Fclj-slack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julienXX%2Fclj-slack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/julienXX","download_url":"https://codeload.github.com/julienXX/clj-slack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247166171,"owners_count":20894654,"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":["client-lib","clj","clojure","slack","slackapi"],"created_at":"2024-09-24T19:35:09.751Z","updated_at":"2025-04-04T11:16:40.744Z","avatar_url":"https://github.com/julienXX.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# clj-slack\n\nclj-slack is a Clojure library to talk to the [Slack](http://slack.com) REST API. It supports almost the entire Slack API.\n\n![Build Status](https://travis-ci.org/julienXX/clj-slack.svg?branch=master)\n\n## Documentation\n\nSlack API methods are described [here](https://api.slack.com/methods).\n\nclj-slack documentation is available [here](https://cljdoc.org/d/org.julienxx/clj-slack/0.8.3/doc/readme).\n\n## Usage\n\nThis is on [Clojars](https://clojars.org/org.julienxx/clj-slack) of course. Just add ```[org.julienxx/clj-slack \"0.8.3\"]``` to your ```:dependencies``` in your project.clj file.\n\nGet your access token by creating a new app or [here](https://api.slack.com/custom-integrations/legacy-tokens). If you create a new Slack app, **don't forget to add the relevant scopes to your app**.\n\nYour need to create a connection map like ```{:api-url \"https://slack.com/api\" :token \"YOUR TOKEN\"}``` and pass it as the first argument of every functions in clj-slack. Of course you can change api-url for debugging or testing purposes.\n\nYou can pass [clj-http](https://github.com/dakrone/clj-http) options in the connection map if needed.\n\nclj-slack will throw an Exception if the connection map you're trying to use is not valid.\n\nExample:\n```clojure\n(require 'clj-slack.users)\n(def connection {:api-url \"https://slack.com/api\" :token \"YOUR TOKEN\"})\n(clj-slack.users/list connection)\n```\n\nYou can use optional params described in [Slack API](https://api.slack.com/methods) by passing them through a map.\n```clojure\n(require 'clj-slack.stars)\n(def connection {:api-url \"https://slack.com/api\" :token \"YOUR TOKEN\"})\n(clj-slack.stars/list connection {:count \"2\" :page \"3\"})\n```\n\nUploading a file:\n```clojure\n(require 'clj-slack.files)\n(def connection {:api-url \"https://slack.com/api\" :token \"YOUR TOKEN\"})\n(clj-slack.files/upload connection (clojure.java.io/input-stream \"/path/to/file/file.ext\") {:channels \"CHANNEL_ID\", :title \"This is a file.})\n```\n\n## Testing\n\nIn order to run the tests, you have to set 3 environment variables:\n- `TOKEN` a legacy Slack token\n- `CLIENT_ID` a OAuth client id\n- `CLIENT_SECRET` a OAuth client secret\nthen run `lein test`.\n\n## License\n\nCopyright (C) 2014-2023 Julien Blanchard\n\nDistributed under the Eclipse Public License, the same as Clojure.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulienxx%2Fclj-slack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjulienxx%2Fclj-slack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulienxx%2Fclj-slack/lists"}