Skip to content

skosm/liondesk

Repository files navigation

LionDesk API client

Build Status Coverage Status

Prerequisites

  • php v7.0+

Usage Example

$lionDesk = new Skosm\LionDesk\LionDesk('API_KEY', 'USER_KEY');
$result = $lionDesk->echo('message');

Or using method chaining

$lionDesk = new Skosm\LionDesk\LionDesk();
$result = $lionDesk
    ->setApiKey('API_KEY')
    ->setUserKey('USER_KEY')
    ->newSubmission([
        'firstname' => 'User',
        'lastname'  => 'Name',
        'email'     => '[email protected]'
    ]);