nexmo-crystal

An attempt towards a wrapper library for Nexmo APIs written in Crystal.

The library aims towards correctness rather than comprehensiveness. Correctness in this sense is about using the compiler to as many poorly formed requests as we can, then testing for well-formed requests at runtime.

Installation

Add this to your application's shard.yml:

dependencies:
  nexmo:
    github: tommorris/nexmo-crystal

Usage

To send an SMS:

require "nexmo"

client = Nexmo::Client.new(api_key: "abc1234", api_secret: "def987654")
client.send_sms(from: "AcmeInc", to: "44700900000", message: "Hello World")

API coverage

Development

  1. Write tests for stuff and put it in specs.
  2. Use a named, defaulted argument for faking API calls rather than mocks and stubs and so on.
  3. Follow the Crystal style guide.
  4. Don't check in binaries or dwarf files.

Contributing

  1. Fork it ( https://github.com/tommorris/nexmo-crystal/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