Coder Social home page Coder Social logo

pushy's People

Contributors

martinlindhe avatar sqmk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

thinkbox fbeke

pushy's Issues

Use users app sound as default

Right now the default sound is set to PushoverSound. There is no way I can set it to the default sound from the android app. According to the api docs:

If no sound parameter is specified, the user's default tone will play. If the user has not chosen a custom sound, the standard Pushover sound will play.

So I guess $this->setSound(new PushoverSound); should be removed from the Message class: https://github.com/sqmk/Pushy/blob/master/library/Pushy/Message.php#L88

Not sure if that alone is enough. Maybe also line 58 in SendMessage should have a check: https://github.com/sqmk/Pushy/blob/master/library/Pushy/Command/SendMessage.php#L58

Probably something like: if ($this->message->getSound()) set sound. This way the sound parameter is not send if it is empty. But maybe it's not needed and only the first change is enough.

Add lowest priority

A new priority level was released a little while ago. This one should be "Lowest" priority with a code of -2.

Initial import

Set up the following:

  • phpunit
  • phpcs
  • composer
  • travis
  • phpdocumentor

Create Sound factory

SoundFactory class should accept a name and return a sound based on that name.

Create Pushy user object

The user object should allow setting and retrieving user key and device name. It should also allow verifying against Pushover.

Create priority objects

Create priority objects. There are 4 types of priorities:

  • Low
  • Normal
  • High
  • Emergency

Emergency priority should be able to accept additional parameters to tack onto a message.

Cancel emergencies

Pushover allows canceling Emergency priority messages. Add a new cancelEmergency convenience method on Client, and a new command to do so.

Fix tabs vs spaces

Sublime managed to add tabs to files when it shouldn't have. Fix these files.

Add client

The client should be responsible for accepting a message, and sending it to pushover. The client may also be responsible for getting read receipts.

Support retrieving read receipts

Pushover API lets you receive a receipt Id from a emergency message. The messenger should be able to retrieve a read receipt from their API within an object.

Create Pushy message object

A message object is needed for setting title, description, device, priority, sound, etc. The messenger library should be able to accept the message for sending on to devices.

Support sending a message

The client should be able to accept a message and pass it to a "send message" command. The command will craft a request message which will then pass to the client's http object for sending, which will then return back to itself for building a custom return value (or exception).

Add Pushover sounds

Pushover has numerous sounds that can be attached to a message that play upon notification.

Each sound should be its own library with a name matching closely to Pushover's.

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.