nexmo

1.0.0 Latest release Yanked release released
timcraft/nexmo-crystal
1 1

This repo seems to be no longer available at timcraft/nexmo-crystal.

Git synchronization failed . Last successful sync was .

Help find it again! … or have it archived.

nexmo-crystal

Nexmo REST API client for Crystal.

Installation

Add nexmo-crystal as a dependency in shards.yml:

dependencies:
  nexmo:
    github: timcraft/nexmo-crystal.cr
    branch: master

Quick start

Send text messages with Crystal!

require "nexmo"

# For production set NEXMO_API_KEY and NEXMO_API_SECRET
# environment variables and create a client like this:
client = Nexmo::Client.new

# Alternatively for testing and quick scripting you can
# specify the API key and secret directly like this:
client = Nexmo::Client.new(api_key: "xxx", api_secret: "xxx")

client.send_sms(from: "Crystal", to: "1234567890", text: "Hello!")
nexmo:
  github: timcraft/nexmo-crystal
  version: ~> 1.0.0
License MIT
Crystal none

Dependencies 0

Development Dependencies 1

  • webmock master
    {'branch' => 'master', 'github' => 'manastech/webmock.cr'}

Dependents 0

Last synced .
search fire star recently