dev-master
9999999-devMorseling (morse code API) helper.
BSD
The Requires
- php >=5.3.0
morse morse code morseling morsel
Wallogit.com
2017 © Pedro Peláez
Morseling (morse code API) helper.
This package is made to allow simple communication with the Morsel API., (*1)
With it, you can:, (*2)
Additionally, you should be able to easily fork/modify the code to add additional features, as allowed by the Morsel API., (*3)
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);
Morseling (morse code API) helper.
BSD
morse morse code morseling morsel