Skip to content
This repository was archived by the owner on Mar 23, 2021. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. Add the dependency to your shard.yml:

    dependencies:
      matrixcr:
        github: GeopJr/matrixcr
  2. 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

  1. Fork it (https://github.com/GeopJr/matrixcr/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (preferably following emojicode)(git commit -am ':sparkles: Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • GeopJr - creator and maintainer

About

A Work In Progress matrix.org API wrapper for Crystal

Resources

Code of conduct

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages