Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

kmadenski/focustelecom-api-connector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install

composer require kmadenski/fcc-connector

Usage

$connector = new \App\Core\Connector(
    "login.admin",
    "apiKey",
    "domain",
    "50char change",
    "baseUrl"
);

echo $connector->campaignList();

Methods:

// Campaigns list
$connector->campaignList();

// Classifiers list
$campaigns_id = 1;
$connector->classifiersList($campaigns_id);

// Add record
$record = new stdClass();
$record->values['some field'] = "some value";
$record->numbers =  ["555555555"];
$record->emails = ["[email protected]"];
$record->external_id = 999;
$records = [$record];

$connector->addRecords($campaigns_id,$records)

// ... and others -> look at App\Core\Connector class