https://github.com/vapor-community/telesign-provider
A Telesign provider for Vapor.
https://github.com/vapor-community/telesign-provider
sms swift telesign-provider vapor vapor-service
Last synced: 6 months ago
JSON representation
A Telesign provider for Vapor.
- Host: GitHub
- URL: https://github.com/vapor-community/telesign-provider
- Owner: vapor-community
- Created: 2017-07-25T20:57:47.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-11-03T06:26:03.000Z (about 6 years ago)
- Last Synced: 2025-04-28T20:59:33.052Z (6 months ago)
- Topics: sms, swift, telesign-provider, vapor, vapor-service
- Language: Swift
- Size: 104 KB
- Stars: 10
- Watchers: 5
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TelesignProvider


### TelesignProvider is a Vapor wrapper around [TelesignKit](https://github.com/vapor-community/TelesignKit)
## Installation
In your `Package.swift` file, add the following
```swift
.package(url: "https://github.com/vapor-community/telesign-provider.git", from: "3.0.0-beta")
```
Register the provider to your Application in `Configure.swift`
~~~~swift
app.register(TelesignProvider(apiKey: "YOUR_API_KEY", customerId: "YOUR_CUSTOMER_ID"))
~~~~
Now we can interact with the API via the `TelesignClient` that's created on your behalf via the Provider we just registered.
~~~~swift
import Telesign
let telesignClient = app.make(TelesignClient.self)
telesignClient.messaging.send(message: "Hello Vapor!", to: "1234567", messageType: .ARN)
~~~~