Skip to content

seven-io/swift-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Official Swift Client for the seven.io SMS Gateway API

Installation

Swift Package Manager

Package.swift:

let package = Package(
        dependencies: [
            .package(url: "https://github.com/seven-io/swift-client")
        ]
)

Usage

import SevenClient

let apiKey = "MySevenApiKey"
// alternatively setting apiKey to nil will read SEVEN_API_KEY from environment
// let apiKey = nil
let client = try! SevenClient(apiKey: apiKey)
debugPrint(client.balance())

Tests

swift test

Support

Need help? Feel free to contact us.

MIT