Skip to main content

Introduction

Server-side Swift is transforming the landscape of web development by bringing the speed, safety, and modern syntax of Swift to backend programming. The backend of IndiePitcher itself is built with Swift and we provide an official SDK to make it easy to integrate IndiePitcher with your server-side Swift apps.

Official Swift SDK

Integrate IndiePitcher with your server-side Swift apps using our official SDK.
Though it is technically possible, we don’t recommend using the SDK from client iOS/macOS apps. You’re risking your secret API key being exposed. The risk is lower than with client-side JavaScript, but it’s still there. You can easily set up an AWS lambda function to send an email on behalf of your app.

Integrations

Vapor

Create a new file, something like Application+IndiePitcher.swift and paste in following code
This will give you easy access to the SDK methods using application and request.

Example Repository

Explore the example repository to see how to integrame IndiePitcher with Vapor.

Hummingbird

Example Repository

Explore the example repository to see how to integrame IndiePitcher with Hummingbird.

AWS Lambda

We recommend using AWSLambdaRuntime package to build your Lambda functions in Swift.

Example Repository

Explore the example repository to see how to set up a Swift AWS Lambda function that sends emails with IndiePitcher.