Latest 0.1.0
Homepage https://github.com/kiliankoe/pushover
License MIT
Platforms ios 8.0, osx 10.9, watchos 2.0, tvos 9.0
Frameworks Foundation
Authors

📌 Pushover

Travis
Version
License
Platform
Docs
Codecov

Simple little wrapper for the Pushover API. Use it to send push notifications from your tools to your or your user’s devices.

Example

// Create a pushover object with your API token.
let pushover = Pushover(token: "YOUR_TOKEN")

// Send a simple message directly.
pushover.send("Lorem ipsum dolor sit amet.", to: "USER_OR_GROUP_KEY")

// Use `Notification`s to use more of Pushover's features.
var notification = Notification(message: "Lorem ipsum.", to: "USER")
notification.devices(["iPhone"])
notification.url("https://example.com")
notification.urlTitle("Dolor sit amet")
notification.priority(.high)
notification.sound(.intermission)
pushover.send(notification)

// Use the callback to define actions based on error or success cases.
pushover.send(notification) { result in
    // A .success result case means that there were no network, server or decoding errors.
    // The request might still have failed due to a wrong API token, exceeded limits or
    // other problems. Be sure to check the response value for more information.
}

Requirements

You’re going to need an API token, you can register for one here.

Also please read the Being Friendly to our API section in the Pushover API docs.

Installation

Pushover is available through Cocoapods, Carthage/Punic and Swift Package Manager, take your pick.

Copypasta for your Podfile:

pod 'Pushover'

Cartfile:

github "kiliankoe/pushover"

Package.swift:

.Package(url: "https://github.com/kiliankoe/pushover", majorVersion: 0)

Contributors

Kilian Koeltzsch, @kiliankoe

License

Pushover is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "Pushover",
    "version": "0.1.0",
    "summary": "Pushover API wrapper",
    "description": "Simple little wrapper for the Pushover API. Use it to send push notifications from your tools to your or your user's devices.",
    "homepage": "https://github.com/kiliankoe/pushover",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Kilian Koeltzsch": "[email protected]"
    },
    "social_media_url": "https://twitter.com/kiliankoe",
    "platforms": {
        "ios": "8.0",
        "osx": "10.9",
        "watchos": "2.0",
        "tvos": "9.0"
    },
    "source": {
        "git": "https://github.com/kiliankoe/pushover.git",
        "tag": "0.1.0"
    },
    "source_files": "Sources/**/*",
    "frameworks": "Foundation",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This