An open API service indexing awesome lists of open source software.

https://github.com/pgrimaud/cegid-y2-sdk

CEGID / Y2 - SDK
https://github.com/pgrimaud/cegid-y2-sdk

cegid php sdk

Last synced: 12 months ago
JSON representation

CEGID / Y2 - SDK

Awesome Lists containing this project

README

          

# CEGID / Y2 - SDK

Consume CEGID/Y2's SOAP API.

## Requirements

- PHP >= 5.6
- Package php-soap (ext-soap extension)

## Installation

```
composer require pgrimaud/cegid-y2-sdk
```
## Basic usage

Hello world :

```php
setDatabaseId($dbId);
$helloWorld = new HelloWorld('ZZZ', $retailContext);

try {
$client = new ItemInventoryWcfService($wsdl, [
'login' => $login,
'password' => $password
]);

$call = $client->HelloWorld($helloWorld)->getHelloWorldResult();

print_r($call);

} catch (SoapFault $e) {
echo "SOAP ERROR CALL : " . $e->getMessage() . "\n";
}
```

## License

Licensed under the terms of the MIT License.