inspiredminds / eyepin-api
eyepin API library for PHP.
Fund package maintenance!
fritzmg
1.0.2
2024-01-31 00:12 UTC
Requires
- php: >=8.2
- phpdocumentor/reflection-docblock: ^5.3
- symfony/http-client: ^5.4 || ^6.4 || ^7.0
- symfony/http-client-contracts: ^2.0 || ^3.0
- symfony/property-access: ^5.4 || ^6.4 || ^7.0
- symfony/property-info: ^5.4 || ^6.4 || ^7.0
- symfony/serializer: ^6.4 || ^7.0
Requires (Dev)
- contao/easy-coding-standard: ^6.0
- contao/rector: ^1.0
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);