Autorisation

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

DOC

AuthHeader

boolean AuthHeader ( array[string] Header )

Authorisation Header

array[string] Header
Array with API-key

Return value boolean: auth

XSD
  • <wsdl:operation name="AuthHeader">
    • <wsdl:input message="tns:AuthHeaderSoapIn"/>
    • <wsdl:output message="tns:AuthHeaderSoapOut"/>
  • </wsdl:operation>
  • <wsdl:message name="AuthHeaderSoapIn">
    • <wsdl:part name="Header" type="tns:array[string]"/>
  • </wsdl:message>
  • <wsdl:message name="AuthHeaderSoapOut">
    • <wsdl:part name="return" type="tns:bool"/>
  • </wsdl:message>
XML
  • <AuthHeader>
    • <API_KEY>************************************</API_KEY>
  • </AuthHeader>
JSON
  • &apikey= ************************************
PHP
  • <?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
  • <?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);
  • ?>