Swiftpack.co - Package - vapor-community/telesign-provider

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

  • [x] Messaging
  • [x] PhoneId
  • [x] Score
  • [x] Voice

Github

link
Stars: 6
Help us keep the lights on

Dependencies

Used By

Total: 0

Releases

2.0.4 - Jul 14, 2018

2.0.3 - Jul 14, 2018

2.0.2 - Jul 14, 2018

2.0.1 - Jul 10, 2018

2.0.0 - Jun 25, 2018