Skip to content
This repository has been archived by the owner. It is now read-only.
[UNMAINTAINED] Nexmo REST API client for Crystal
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
spec
src
.gitignore
LICENSE.txt
README.md
shard.yml

README.md

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!")
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.