Skip to content

Client PHP for Smartfocus API using Guzzle and Guzzle Service Description

Notifications You must be signed in to change notification settings

L0rD59/smartfocus-api-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Smartfocus PHP Client

Client PHP for Smartfocus API using Guzzle and Guzzle Service Description

Usage

<?php

require_once 'vendor/autoload.php';

$smartfocusClient = new \L0rD59\Smartfocus\Client();

$openConnection = $smartfocusClient->openConnection([
  'username' => 'YOUR_SMARTFOCUS_USERNAME',
  'password' => 'YOUR_SMARTFOCUS_PASSWORD',
  'apiKey' => 'YOUR_SMARTFOCUS_APIKEY',
]);

$members = $smartfocusClient->getMembers([
  'memberUID' => 'EMAIL:[email protected]',
  'token' => $openConnection['result'],
]);

$updateMember = $smartfocusClient->updateMember([
  'memberUID' => 'EMAIL:[email protected]',
  'token' => $openConnection['result'],
  'dynContent' => [['key' => 'TITLE','value' => 'Mr.']]
]);

Please see "Operations" section in smartfocus-api-description.php file for available operations and arguments.

About

Client PHP for Smartfocus API using Guzzle and Guzzle Service Description

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages