inspiredminds/eyepin-api

eyepin API library for PHP.

1.0.2 2024-01-31 00:12 UTC

This package is auto-updated.

Last update: 2024-11-30 02:08:33 UTC


README

eyepin API

PHP library for the eyepin API.

use InspiredMinds\EyepinApi\EyepinApiFactory;
use InspiredMinds\EyepinApi\Model\AddressList;
use InspiredMinds\EyepinApi\Model\Request\AddressInsertRequest;

$api = (new EyepinApiFactory())->createForCredentials('username', 'password');

// Get account info
$accountInfo = $api->getAccountInfo();

// Create address
$addressInsertRequest = new AddressInsertRequest();
$addressInsertRequest->email = 'foobar@example.com';
$addressInsertRequest->status = '1';
$addressInsertRequest->lists[] = new AddressList(123);

$api->createUpdateAddress($addressInsertRequest);