Skip to content

treastrain/AppStoreConnectWebhook

Repository files navigation

AppStoreConnectWebhook

Type definitions for App Store Connect webhook notification payloads in Swift.

MIT License Platform: macOS|Linux|Windows Swift: 6.1 Swift Package Manager compatible
X (formerly Twitter): @treastrain Swift Build & Test

Usage

import AppStoreConnectWebhook
import Foundation

let payloadJSON = """
    {
        "data": {
            "type": "webhookPingCreated",
            "id": "01234567-abcd-8901-dcba-987654321012",
            "version": 1,
            "attributes": {
                "timestamp": "2025-06-09T10:09:30.123456789Z"
            }
        }
    }
    """

let payload = try AppStoreConnectWebhookPayload(json: payloadJSON)
switch payload.data {
case .webhookPingCreated(let webhookPingCreated):
    webhookPingCreated.id  // "01234567-abcd-8901-dcba-987654321012"
    webhookPingCreated.attributes.timestamp  // 2025-06-09T10:09:30.123Z
// ...
}

How to add to your project

Package dependencies

.package(url: "https://github.com/treastrain/AppStoreConnectWebhook", branch: "main"),

Target dependencies

.product(name: "AppStoreConnectWebhook", package: "AppStoreConnectWebhook"),

License

MIT

About

Type definitions for App Store Connect webhook notification payloads in Swift.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy