Giter VIP home page Giter VIP logo

prowlin's Introduction

Prowlin

The purpose of Prowlin is to provide a .Net library and command line tool for sending notifictions to iPhone's/iPad's using the Prowl service and app, check it out at http://www.prowlapp.com.

Prowlin consists of two parts.

  1. A .Net library (dll) that can be used from any .Net code

  2. A command line client that uses the library.

Installation

Get the binaries here or get the code and build it in Visual Studio 2010. I use .Net Framework Version 4.

Usage

This blog post shows a sample on how to use Prowlin: http://www.nnihlen.com/blog/archive/2011/06/02/notifications-to-iphone-ipad-using_prowl-and-prowlin-in-net.aspx

Code

  INotification notification = new Prowlin.Notification()
                                 {
                                    Application = "Prowlin.Console",
                                    Description = "Testing",
                                    Event = "Some Event",
                                    Priority = NotificationPriority.High,
                                    Url = "http://www.nnihlen.com/blog"
                                };
  notification.AddApiKey("<your-very-secret-apikey-goes-here>");

  ProwlClient prowlClient = new ProwlClient();
  NotificationResult notificationResult = prowlClient.SendNotification(notification);

  System.Console.WriteLine("Remaing number of messages: {0}", notificationResult.RemainingMessageCount.ToString());

Command Line

  > ProwlinCmd -k one_apikey -e "event X" -a "Application Y"
  > ProwlinCmd -k apikey_one,apikey_two,... -e "event X" -a "Application Y"

  Options:
    -k, -key                APIKEY(s)       Prowl API key, one or many separated by commas
    -a, -application        APPLICATION     Application
    -e, -event              EVENT           Event
    -d, -description        DESCRIPTION     Description
    -p, -priority           PRIORITY        Priority - VERYLOW, MODERATE, NORMAL(default), HIGH, EMERGENCY
    -u, -url                URL             Url
	-v, -verify             VERIFIY         Verification of key used in combination with -k (APIKEY)
                                            and (optional) -p (PROVIDER KEY)
    -r, -retrievetoken      RETRIVE/TOKEN   Get a registration token for use in retrieve/apikey and
                                            the associated URL for the user to approve the request. Use together with -providerkey
    -pro, -providerkey      PROVIDER KEY    ProviderKey  to use in conjunction with -r (retrieve/token)
    -n, -newkey             GET APIKEY      Get new api key  to use in conjunction with -t (token) and
                                            -pro (providerkey)
    -h, -help               HELP            This screen

Dependencies

  • xUnit for unit tests
  • Args for parsing command line arguments
  • .Net framework 4

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.