mediabandit/wls-client

Client for the WLS client API

This package's canonical repository appears to be gone and the package has been frozen as a result.

dev-master 2015-01-06 11:58 UTC

This package is not auto-updated.

Last update: 2022-03-14 19:36:40 UTC


README

Basic Usage

Installation

Install with Composer.

Example composer.json:

{
    "name": "MyApplication",
    "require": {
        "mediabandit/wls-client": "dev-master"
    }
}

Usage

require_once '/path/to/wls-client/vendor/autoload.php';

$urlToQuery = '[valid API URL]';

$options = array(
    'publicKey' => '[Your Public Key]',
    'privateKey' => '[Your Private Key]'
);

$client    = new Wls\Client($options);
$signedUrl = $client->signUrl($urlToQuery);

// Query the URL using cURL