This repository has been archived by the owner. It is now read-only.
matrixcr
matrixcr
A Work In Progress Matrix API wrapper for Crystal
Heavily inspired by discordcr. Code from discordcr is being used in this project LICENSE.
Installation
-
Add the dependency to your
shard.yml
:dependencies: matrixcr: github: GeopJr/matrixcr
-
Run
shards install
Usage
require "matrixcr"
client = Matrix::Client.new(access_token: "2QuhNoIMU2lI5ZZZAx5G8XZ9GlddNVBg02QpYGctxTgnMMWwzPj5GBPUkalZGDIMCpkuXRVJST1HMXpu4V99HFYVN2m1amzx7l2oZ4DeD25-3w9vDZ2Vf1bkYcuKSgjgMWIkS0OaZC3ZDq0ZWlHSRbwZ12SPgSK2Q5pk5XgHIAJycwZWIGhcHB62LBBFAY0lMMRWxMCyyEAca7wy4JMDpBIMaEWtmC0DZDCMBMnAvnQw9ZohBJ0W2lj8E6Zcbo2giAIAh2K")
# Sync
client.run
require "matrixcr"
client = Matrix::Client.new(user: "matrixcr", password: "u4V99HFYVN2m1amz")
puts client.whoami.user_id
#=> "@matrixcr:matrix.org"
Contributing
- Fork it (https://github.com/GeopJr/matrixcr/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (preferably following emojicode)(
git commit -am '✨ Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- GeopJr - creator and maintainer
Repository
matrixcr
Owner
Statistic
- 4
- 0
- 0
- 0
- 0
- over 4 years ago
- June 9, 2020
License
MIT License
Links
Synced at
Sun, 22 Dec 2024 07:37:06 GMT
Languages