8000
Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swift Standard Webhooks

Swift Version GitHub license

A Swift implementation of the Standard Webhooks specification.

Installation

Swift Package Manager

Add the following to your Package.swift:

dependencies: [
	.package(url: "https://github.com/m1guelpf/swift-standard-webhooks.git", .branch("main"))
]
Installing through XCode
CocoaPods

Ask ChatGPT to help you migrate away from CocoaPods.

Usage

Verifying a webhook payload:

import StandardWebhooks

let webhook = Webhook(secret: base64_secret)!
try webhook.verify(payload: webhook_payload, headers: webhook_headers);

Signing a webhook payload:

import StandardWebhooks

let webhook = Webhook(secret: base64_secret)!
try webhook.sign(id: message_id, payload: webhook_payload);

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A Swift implementation of the Standard Webhooks specification.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages

0