Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mallozup/missile
:rocket: rocketchat-rest-client clojure library :rocket:
https://github.com/mallozup/missile
clojure functional-programming http http-client rest rocketchat
Last synced: 2 months ago
JSON representation
:rocket: rocketchat-rest-client clojure library :rocket:
- Host: GitHub
- URL: https://github.com/mallozup/missile
- Owner: MalloZup
- License: apache-2.0
- Created: 2019-03-30T10:13:08.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-20T19:47:37.000Z (over 5 years ago)
- Last Synced: 2024-10-04T14:41:34.954Z (3 months ago)
- Topics: clojure, functional-programming, http, http-client, rest, rocketchat
- Language: Clojure
- Homepage:
- Size: 3.88 MB
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# missile
rocketchat-rest-client clojure library# Install:
- Add this library to your project (leinigen)
`[missile "0.1.1"]`
(https://clojars.org/missile)
## Quickstart:
### Setup:
You can choose to Initialize the `missile` library with: 1) a file.edn or 2) user-paramter.1) from a file:
`(missile.config/set-config-from-file "path-config-file.edn")` have a look at here for [templatefile](resources/missile.edn)2) from an input parameter:
`(missile.config/set-config-from-input {:username "foo2" :server-url "myserver" :token "foo"})`
# Supported calls ordered by namespace
___
### Chat:- `(missile.chat/sendMessage "fadfjkj3" "autogenerated" )`
`sendMessage [channel-id message]`
send a message to a channel given its id
___
### Channel:https://rocket.chat/docs/developer-guides/rest-api/channels/
- `(missile.channels/info "my-channel-name")`
"Retrieves the information about a channel"- `(missile.channels/list!)`
Get all channel objects from server-name. Return channels json properties, name, id etc. (see upstream doc)___
### Channels non upstream call:- get channel id by name:
`(def channel-id (missile.channels/get-channel-id "rock"))`# High-order values:
- minimalism
- open to community but driven by quality
- patience and listen to contributors
- maintainers are free to join and go## Where is this library used?
- A reminder bot for Rocketchat
https://github.com/MalloZup/fullrocketmetal- Event-driven, async notification for Jenkins:
https://github.com/MalloZup/saint-build# Devel usage:
create a `.missile.edn`
Let the REPL GUIDE YOU