Skip to content
Api for Knack service by documentation https://www.knack.com/developer-documentation
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
README.md
composer.json

README.md

# PHP Knack Rest Client

Requirements

  • PHP >= 5.4.9

Installation

  1. Download and Install PHP Composer.

    curl -sS https://getcomposer.org/installer | php
  2. Next, run the Composer command to install the latest version of php knack rest client.

    php composer.phar require darkdiesel/php-knack-rest-client "^1.0.0a"

    or add the following to your composer.json file.

    {
        "require": {
            "darkdiesel/php-knack-rest-client": "^1.0.0a"
        }
    }

    Note: If you are using laravel 5.0 or 5.1(this version dependent on phpdotenv 1.x), then use "1.5.*" version instead.

  3. Then run Composer's install or update commands to complete installation.

    php composer.phar install
  4. After installing, you need to require Composer's autoloader:

    require 'vendor/autoload.php';

Configuration

use array

create Service class with ArrayConfiguration parameter.

use KnackRestApi\Record\RecordService;
use KnackRestApi\Configuration\ArrayConfiguration;

$rs = new RecordService(new ArrayConfiguration(
            array(
                'knackAppId' => 'application_id',
                'knackRestApiKey' => 'rest_api_key',
            )
        ));

Usage

TODO!

You can’t perform that action at this time.