2017 © Pedro Peláez
 

library qclient

API client for the Das Keyboard Q

image

tjlytle/qclient

API client for the Das Keyboard Q

  • Monday, January 2, 2017
  • by tjlytle
  • Repository
  • 1 Watchers
  • 2 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

PHP Client for Das Keyboard Q

Build Status, (*1)

Currently work in progress. See example for usage., (*2)

Installation

composer require tjlytle/qclient

Client Setup

$token = 'oauth 2 token';
$client = new \QClient\Client($token);

API Support

Currently the client provides access to collections by providing iterable objects. The items are simple containers for the API response providing array access to the data:, (*3)

foreach($client->device_descriptions as $description){
    echo $description['name'];
}

foreach($client->devices as $device):
foreach($client->signals as $signal):

To create a signal, use the collection and the method, as well as a Signal object:, (*4)

$signal = new Signal();
$signal->setName('Sent from PHP Client');
$signal->setPid('DK5QPID');
$signal->setZone('KEY_A');
$signal->setColor('#008000');

$client->signals->post($signal);

To update, use the patch method:, (*5)

$client->signals->patch($signal);

The Versions

02/01 2017

dev-master

9999999-dev

API client for the Das Keyboard Q

  Sources   Download

MIT

The Requires

 

The Development Requires