Skip to content

convoflo/leadfox-sdk-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeadFox PHP API

A beautiful, extendable API powered by Saloon.

Installation

composer require tagmydoc/leadfox-sdk-php

Usage

use TagMyDoc\LeadFox\LeadFoxClient;

$client = new LeadFoxClient('YOUR_API_KEY', 'YOUR_SECRET_KEY');

// Contacts API
$client->contacts()->all(email: 'example@example.com');
$client->contacts()->get('64400000f00000a0000fffff');
$client->contacts()->create('example@example.com', ['name' => 'John Smith']);
$client->contacts()->update('64400000f00000a0000fffff', ['name' => 'John Smith']);
$client->contacts()->upsert('example@example.com', ['name' => 'John Smith']);
$client->contacts()->delete('64400000f00000a0000fffff');

Credits

License

The MIT License (MIT). Please see License File for more information.