Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/imryan/popcornnotify-swift

🍿 Send simple emails and text messages from PopcornNotify.
https://github.com/imryan/popcornnotify-swift

email-sender popcornnotify sms-api

Last synced: 26 days ago
JSON representation

🍿 Send simple emails and text messages from PopcornNotify.

Awesome Lists containing this project

README

        

# 🍿 PopcornNotify

[![CI Status](http://img.shields.io/travis/imryan/PopcornNotify.svg?style=flat)](https://travis-ci.org/imryan/PopcornNotify)
[![Version](https://img.shields.io/cocoapods/v/PopcornNotify.svg?style=flat)](http://cocoapods.org/pods/PopcornNotify)
[![License](https://img.shields.io/cocoapods/l/PopcornNotify.svg?style=flat)](http://cocoapods.org/pods/PopcornNotify)
[![Platform](https://img.shields.io/cocoapods/p/PopcornNotify.svg?style=flat)](http://cocoapods.org/pods/PopcornNotify)

## Example

To run the example project, clone the repo, and run `pod install` from the Example directory first.

## Requirements
* Has no dependencies!

## Installation

PopcornNotify is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:

```ruby
pod 'PopcornNotify'
```

## Usage

```swift
// Setup PopcornNotify with API key
let popcorn = PopcornNotify(withAPIKey: "api:key")

// Notify!
popcorn.notify(recipients: "[email protected]", "2125551234",
message: "Hello, world!", subject: "Hello") { (error) in

if let error = error {
print("Error:", error.localizedDescription)
}
}
```

## Author

Ryan Cohen, [email protected]

## License

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