2017 © Pedro Peláez
 

library morseling

Morseling (morse code API) helper.

image

develpr/morseling

Morseling (morse code API) helper.

  • Saturday, December 21, 2013
  • by develpr
  • Repository
  • 1 Watchers
  • 0 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Morseling API Helper

Purpose

This package is made to allow simple communication with the Morsel API., (*1)

With it, you can:, (*2)

  1. create a new message
  2. get a transmission
  3. update a transmission to be read

Additionally, you should be able to easily fork/modify the code to add additional features, as allowed by the Morsel API., (*3)

Use

Usage is simple:, (*4)

//Create an instance of the Morseling API helper
$morseling = new Develpr\Morseling\Morseling;

(You can find your Morsel id and shared secret at your Morsel account), (*5)

//Set your Morsel ID
$morseling->setId(1);

//Set you shared secret
$morsel->setSecret('bluemyself');

//Now we're all set! Let's get the latest transmission
$transmission = $morsel->getTransmission(false);

if($transmission)
    echo "The latest transmission said " . $transmission->message->text;
else
    echo "no new transmissions!";

Passing in an optional boolean true will automatically mark the transmission as received., (*6)

//Now we're all set! Let's get the latest transmission and mark it as received
$morsel->getTransmission(true);

The Versions

21/12 2013

dev-master

9999999-dev

Morseling (morse code API) helper.

  Sources   Download

BSD

The Requires

  • php >=5.3.0

 

morse morse code morseling morsel