risototh / e-pass-api
Access Farnell Element 14 products information using Farnell Element 14 ePassAPI
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 1
pkg:composer/risototh/e-pass-api
This package is auto-updated.
Last update: 2025-10-29 03:10:41 UTC
README
Examples:
Returns Product information based on a search by keyword
<?php use Kapustko\Element14\EPassRest\Api; use Kapustko\Element14\EPassRest\Exception\RestApiException; $parameters = [ 'callInfo.apiKey' => '', 'term' => 'any:fuse', 'storeInfo.id' => 'uk.farnell.com', 'resultsSettings.offset' => 0, 'resultsSettings.numberOfResults' => 1, 'callInfo.responseDataFormat' => 'json' ]; try { echo Api::searchByKeyword($parameters); } catch (RestApiException $e) { echo $e->getMessage(); }
Returns Product information based on a search of the element14 / Newark element14 / Farnell element14 order code
<?php use Kapustko\Element14\EPassRest\Api; use Kapustko\Element14\EPassRest\Exception\RestApiException; $parameters = [ 'callInfo.apiKey' => '', 'term' => 'id:1278613', 'storeInfo.id' => 'uk.farnell.com', 'resultsSettings.offset' => 0, 'resultsSettings.numberOfResults' => 1, 'callInfo.responseDataFormat' => 'json' ]; try { echo Api::searchByKeyword($parameters); } catch (RestApiException $e) { echo $e->getMessage(); }
Returns Product information based on a search of the manufacturer part number
<?php use Kapustko\Element14\EPassRest\Api; use Kapustko\Element14\EPassRest\Exception\RestApiException; $parameters = [ 'callInfo.apiKey' => '', 'term' => 'manuPartNum:LM339ADT', 'storeInfo.id' => 'uk.farnell.com', 'resultsSettings.offset' => 0, 'resultsSettings.numberOfResults' => 1, 'callInfo.responseDataFormat' => 'json' ]; try { echo Api::searchByKeyword($parameters); } catch (RestApiException $e) { echo $e->getMessage(); }