2017 © Pedro Peláez
 

extension apiclient

API client for powerforms

image

powerforms/apiclient

API client for powerforms

  • Monday, February 5, 2018
  • by sukvojte
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Powerforms REST client

Basic usage

// create client with configuration above
$client = new \powerforms\apiclient\Client($baseApiUrl, $apiKey, $apiSecret);

// get all available Forms
$forms = $client->getForms();

// get all data states
$states = $client->getDataStates();

// get data from 1.1.2016 for form #1
$data = $client->getData(1, '2016-01-01'); 

// get count and data from 1.1.2016 to 10.3.2016 for form #1 and #2 where state is OK 
$countData = $client->getDataCount([1,2], '2016-01-01', '2016-03-10',['OK']);
$data = $client->getData([1,2], '2016-01-01', '2016-03-10',['OK']);

Installing via Composer

# Install Composer
curl -sS https://getcomposer.org/installer | php

Next:, (*1)

composer.phar require powerforms/apiclient

And add include to your script:, (*2)

require 'vendor/autoload.php';

The Versions

05/02 2018

dev-master

9999999-dev

API client for powerforms

  Sources   Download

GPL-v3 GPL-3.0-only

The Requires

 

05/02 2018

1.0.1

1.0.1.0

API client for powerforms

  Sources   Download

GPL-3.0-only

The Requires

 

11/03 2016

1.0.0

1.0.0.0

API client for powerforms

  Sources   Download

GPL-v3

The Requires