MessagebirdKit is a swift package used to communicate with the Messagebird API
MessagebirdKit requires swift 5.5 and macOS 12 Monterey ans supports async await.
To start using MessagebirdKit, in your Package.swift, add the following
.package(url: "https://github.com/vapor-community/messagebird-kit.git", from: "1.0.0")You'll need an HTTPClient and your access key to crerate a MessagebirdClient.
let httpClient = HTTPClient(...)
let messagebird = MessagebirdClient(client: httpClient, accessKey: "test_1234")You now have access to using any associated API on the client.
let response = try await messagebird.sms.send(originator: "Swift",
body: "Get ready for world domination!",
recipients: ["12223334567"])