l0rd59 / smartfocus-api-php-client
PHP Client for Smartfocus API
dev-master
2016-05-02 14:56 UTC
Requires
- guzzlehttp/guzzle-services: dev-master
- guzzlehttp/log-subscriber: 1.0.1
This package is not auto-updated.
Last update: 2024-11-09 19:51:06 UTC
README
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:member@mail.com',
'token' => $openConnection['result'],
]);
$updateMember = $smartfocusClient->updateMember([
'memberUID' => 'EMAIL:member@mail.com',
'token' => $openConnection['result'],
'dynContent' => [['key' => 'TITLE','value' => 'Mr.']]
]);
Please see "Operations" section in smartfocus-api-description.php file for available operations and arguments.