Skip to content

seven-io/swift-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d0fc3e5 · Jan 5, 2024

History

21 Commits
Jun 13, 2023
Jan 5, 2024
Jan 5, 2024
Jan 5, 2024
Jan 5, 2024
Jun 13, 2023
Jun 13, 2023
Jun 13, 2023

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