/** * Constructor for the Yandex.Direct API SOAP client. * @param string $wsdl URI of the WSDL file or <var>NULL</var> if working in * non-WSDL mode * @param array $options the SOAP client options * @param AdsUser $user the user which is responsible for this client * @param string $serviceName the name of the service which is making this call * @param string $serviceNamespace the namespace of the service */ public function __construct($wsdl, array $options, AdsUser $user, $serviceName = NULL, $serviceNamespace = NULL) { $this->CheckOptions($wsdl, $options, $user); foreach ($options as $key => $value) { $this->SetHeaderValue($key, $value); } $oAuthInfo = $user->GetOAuth2Info(); if ($oAuthInfo) { foreach ($oAuthInfo as $key => $value) { $this->SetHeaderValue($key, $value); } } //var_dump($options); parent::__construct($wsdl, $options, $user, $serviceName, $serviceNamespace); }
/** * Constructor for the AdWords API SOAP client. * @param string $wsdl URI of the WSDL file or <var>NULL</var> if working in * non-WSDL mode * @param array $options the SOAP client options * @param AdsUser $user the user which is responsible for this client * @param string $serviceName the name of the service which is making this * call * @param string $serviceNamespace the namespace of the service */ public function __construct($wsdl, array $options, AdsUser $user, $serviceName, $serviceNamespace) { parent::__construct($wsdl, $options, $user, $serviceName, $serviceNamespace); }