To access the API functions, you need the API-key in the SoapHeaders. At the right of the page you find the instructions to do this.
Namespace: http://api.tyrenet.nl
SoapHeader object name: AuthHeader
To access the API functions, you need the API-key in the SoapHeaders. At the right of the page you find the instructions to do this.
Namespace: http://api.tyrenet.nl
SoapHeader object name: AuthHeader
AuthHeader
boolean
AuthHeader ( array[string]
Header )
Authorisation Header
array[string]
Header
Array with API-key
Return value boolean
: auth
- <?php
- $client = new SoapClient(
- 'http://api.tyrenet.nl/testservice/ticservices.php?WSDL',
- array(
- 'trace' => 0,
- 'exceptions' => 0
)
);
- $paramHeader = array();
- $paramHeader['API_KEY'] =
'************************************';
- $header = new SoapHeader(
- 'http://api.tyrenet.nl/',
- 'AuthHeader',
- $paramHeader
);
- $client->__setSoapHeaders($header);
- ?>
- <?php
- $client = new SoapClient(
- 'http://api.tyrenet.nl/testservice/ticservices.php?WSDL',
- array(
- 'trace' => 0,
- 'exceptions' => 0
)
);
- $paramHeader = array();
- $paramHeader['API_KEY'] =
'************************************';
- $header = new SoapHeader(
- 'http://api.tyrenet.nl/',
- 'AuthHeader',
- $paramHeader
);
- $client->__setSoapHeaders($header);
- ?>