Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 1.1 KB

README.md

File metadata and controls

42 lines (32 loc) · 1.1 KB

Splio PHP SDK

PHP wrapper for Splio CRM and router.

Installation

composer config repositories.splio-sdk vcs https://github.com/wamiz/splio-sdk.git
composer require common/splio-sdk:master

Usage

Configuration

$config = array(
    'domain'    =>  's3s.fr',
    'universe'  =>  SPLIO_UNVERSE_NAME,
    'data'      =>  array(
        'key'           => YOUR_API_DATA_KEY,
        'version'       => API_VERSION // 1.9
        'sftp_host'     => REMOTE_SPLIO_FTP_HOST
        'sftp_port'     => REMOTE_SPLIO_FTP_PORT
        'sftp_username' => REMOTE_SPLIO_FTP_USERNAME
        'sftp_password' => REMOTE_SPLIO_FTP_PASSWORD
    ),
    'trigger'   =>  array(
        'key'       => YOUR_API_TRIGGER_KEY,
        'version'   => API_VERSION // 1.9
    ),
    'launch'    =>  array(
        'key'       => YOUR_API_LAUNCH_KEY,
        'version'   => API_VERSION // 1.9
    )
);

$sdk = new SplioSdk($config);

API