Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 807 Bytes

README.md

File metadata and controls

39 lines (26 loc) · 807 Bytes

spamwatch.cr

Crystal adapter to the SpamWatch API

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      spamwatch:
        github: spamwatch/spamwatch-cr
  2. Run shards install

Usage

require "spamwatch"

token = ENV["SPAMWATCH_TOKEN"]
client = SpamWatch::Client.new(token)

me  = client.get_self
ban = client.get_ban(835061938)

Contributing

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

Contributors