smartlook/webapi

There is no license information available for the latest version (v1.0.1) of this package.

Smartlook Web API client for PHP.

v1.0.1 2016-10-17 13:53 UTC

This package is not auto-updated.

Last update: 2024-05-11 17:45:34 UTC


README

Build Status

Smartlook Web API client for PHP.

Installation

The best way to install is using Composer:

$ composer require smartlook/webapi

Usage

$api = new \Smartlook\Webapi\Client();
$api->authenticate(YOUR_API_KEY);
$response = $api->call(API_METHOD, API_PARAMS); // returns array
  • API_METHOD is method name, see methods overview
  • API_PARAMS is array of params
  • $response is always array
  • every response has property ok

Usage with Nette

Register extension in your config.neon:

extensions:
	smartlook: Smartlook\Webapi\WebapiExtension

Add API key to your configs:

smartlook:
	apiKey: YOUR_API_KEY

Then you have api connection as service available by DI.

Examples