Skip to content
D bindings for Pushover API (pushover.net)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
source
.gitignore
.skeleton.html
CNAME
README
dub.sdl
makedocs.sh
makedocs_cached.sh

README

Pushover Dlang API

Beta bindings for https://pushover.net/api notification API

Generated documentation http://pushover.code.kaleidic.io

"Pushover uses a simple, versioned REST API to receive messages from your application and send them to devices running our device clients. To simplify the user registration process and usage of our API, there are no complicated out-of-band authentication mechanisms or per-call signing libraries required, such as OAuth. HTTP libraries available in just about every language, or even from the command line, can be used without any custom modules or extra dependencies needed. See our FAQ for examples in different programming languages."


Boost-licensed.  Use at your peril.

Example code:

```
unittest
{
    import std.datetime:Clock;

    enum applicationKey = "set me".ApplicationToken;
    enum targetUserKey = "set me".UserKey;
    enum groupKey = "set me".GroupKey;
    enum targetUserMemo ="memo field here";
    
    auto api=PushoverAPI(applicationToken);
    writefln("validate target user: %s",api.validate(targetUserKey));
    writeln("result of adding target user to group:",api.addUserToGroup(targetUserKey,groupKey,null.DeviceName,targetUserMemo));
    PushoverMessage message;

    message=message.setMessage("as the CNBC anchor said, is buying GS here like D&G on sale?")
        .setTitle("Kaleidic Market Alert - GS")
        .setUrl("kaleidic.io")
        .setUrlTitle("GS chart")
        .setPriority(PushoverMessagePriority.high)
        .setTimeStamp(Clock.currTime());
    writefln("%s",message);
    auto ret=api.sendMessage(message,targetUserKey);
    writefln("message status: %s",ret["status"]);
    writefln("message request: %s",ret["request"]);
}

```
You can’t perform that action at this time.