2017 © Pedro Peláez
 

library viewranger-api-client

Client for the ViewRanger API

image

symm/viewranger-api-client

Client for the ViewRanger API

  • Saturday, August 30, 2014
  • by symm
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

ViewRanger API Client

Build Status, (*1)

A PHP client for the ViewRanger Beacon API, (*2)

Get the latest Beacon

``` php require_once('vendor/autoload.php');, (*3)

use Symm\ViewRangerClient\ViewRangerClient;, (*4)

$client = ViewRangerClient::create('YOUR_API_KEY_HERE'); $lastBeacon = $client->getLastBeaconPosition('your-email@address.com', 1234);, (*5)

print $beacon->getLocation(); print $beacon->getHeading(); print $beacon->getSpeed();, (*6)


### Get Beacons between two given timestamps ``` php $start = new \DateTime('2014-08-11'); $end = new \DateTime('2014-08-12'); $beacons = $client->getBeaconPositions('your-email@address.com', 1234, $start, $end); foreach ($beacons as $beacon) { print $beacon->getLocation(); print $beacon->getHeading(); print $beacon->getSpeed(); }

The Versions

30/08 2014

dev-master

9999999-dev

Client for the ViewRanger API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gareth Jones