A Telesign provider for Vapor.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Sourcery
Sources/Telesign
Tests
.gitignore
Package.swift
README.md
circle.yml

README.md

Vapor Telesign Provider

Swift Vapor CircleCI

What's Telesign?

Telesign is a Communication Platform as a Service. Allowing you to send SMS messages for your use case, text to voice communications, phone identification to reduce risk/fraud and many other things.

Integrating with your Vapor project

Start by adding the repo to your Package.swift

.package(url: "https://github.com/vapor-community/telesign-provider.git", from: "2.0.2")

Register the config and the provider to your Application

let config = TelesignConfig(apiKey: "myapikey", customerId: "mycustomerId")

services.register(config)

try services.register(TelesignProvider())

app = try Application(services: services)

telesignClient = try app.make(TelesignClient.self)

And you are all set. Interacting with the API is quite easy and adopts the Future syntax used in Vapor 3. Making calls to the api is straight forward.

try telesignClient.messaging.send(message: "Hello Vapor", to: "1234567", messageType: .ARN)

Supports the full API

  • Messaging
  • PhoneId
  • Score
  • Voice