2017 © Pedro Peláez
 

library thingspeak_php

PHP library for communication with thingspeak.com service.

image

berkas1/thingspeak_php

PHP library for communication with thingspeak.com service.

  • Monday, May 8, 2017
  • by berkas1
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

thingspeak_php is a library which provides a simple way to communicate with thingspeak.com service, (*1)

Requires only php-curl, (*2)

Build Status, (*3)

Installation

composer require berkas1/thingspeak_php, (*4)

Example of use

method setResponseFormat() can set up response format to JSON or XML method getResponse() will return response retrieved from thingspeak.com (JSON or XML), (*5)

All kind of parameters ($params) should match those listed here., (*6)


require __DIR__ . '/vendor/autoload.php'; $ts = new \berkas1\thingspeak_php\Api(channel_id, channel_api_key); // you can set required response format, XML and JSON currently supported $ts->setResponseFormat("xml"); // create a channel (you need to provide user api_key in $params) $ts->createChannel($params)->getResponse(); // update a channel $ts->updateChannel($params)->getResponse(); // get a feed $ts->getFeed($params)->getResponse(); // get a field feed $ts->getFieldFeed($fieldId, $params)->getResponse(); // list public channels $ts->listPublicChannels($params)->getResponse(); // get channel status $ts->getStatus()->getResponse();

The Versions

08/05 2017

dev-master

9999999-dev

PHP library for communication with thingspeak.com service.

  Sources   Download

MIT

The Development Requires

by Avatar berkas1

08/05 2017

1.0.0

1.0.0.0

PHP library for communication with thingspeak.com service.

  Sources   Download

MIT

The Development Requires

by Avatar berkas1