This repository has been archived by the owner. It is now read-only.

matrixcr

A Work In Progress matrix.org API wrapper for Crystal

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 '✨ 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
Repository

matrixcr

Owner
Statistic
  • 4
  • 0
  • 0
  • 0
  • 0
  • over 4 years ago
  • June 9, 2020
License

MIT License

Links
Synced at

Thu, 21 Nov 2024 08:51:24 GMT

Languages