tagmydoc/leadfox-sdk-php

LeadFox PHP SDK

0.2.1 2023-10-18 14:29 UTC

This package is auto-updated.

Last update: 2024-05-18 15:36:19 UTC


README

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.