Vapor Telesign Provider
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(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